MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / generateGroup

Function generateGroup

lib/stream-id-stack.js:193–200  ·  view source on GitHub ↗
(initialValue)

Source from the content-addressed store, hash-verified

191}
192
193function generateGroup(initialValue) {
194 const arr = new Array(groupSize);
195 const upperBound = initialValue + groupSize - 1;
196 for (let i = 0; i < groupSize; i++) {
197 arr[i] = upperBound - i;
198 }
199 return arr;
200}
201
202module.exports = StreamIdStack;

Callers 2

constructorMethod · 0.85
_tryCreateGroupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected