private List<KeySlice> getKeySlice(ByteBuffer startKey, ByteBuffer endKey, SliceQuery columnSlice, int count) throws BackendException { return getRangeSlices(new org.apache.cassandra.thrift.KeyRange().setStart_key(startKey).setEnd_key(endKey).setCount(count), columnSlice); }
private <T extends Token> List<KeySlice> getTokenSlice(T startToken, T endToken, SliceQuery sliceQuery, int count) throws BackendException { String st = sanitizeBrokenByteToken(startToken); String et = sanitizeBrokenByteToken(endToken); org.apache.cassandra.thrift.KeyRange kr = new org.apache.cassandra.thrift.KeyRange().setStart_token(st).setEnd_token(et).setCount(count); return getRangeSlices(kr, sliceQuery); }
private List<byte[]> getRows(byte[] rangeStart) { KeyRange keyRange = new KeyRange().setStart_key(rangeStart).setEnd_key(new byte[0]).setCount(batchHint); SlicePredicate slicePredicate = SlicePredicates.create(SlicePredicates.Range.ALL, SlicePredicates.Limit.ZERO); List<KeySlice> rows = rowGetter.getRows("getCandidateCellsForSweeping", keyRange, slicePredicate); return rows.stream().map(KeySlice::getKey).collect(Collectors.toList()); }
private List<byte[]> getRows(byte[] rangeStart) { KeyRange keyRange = new KeyRange().setStart_key(rangeStart).setEnd_key(new byte[0]).setCount(batchHint); SlicePredicate slicePredicate = SlicePredicates.create(SlicePredicates.Range.ALL, SlicePredicates.Limit.ZERO); List<KeySlice> rows = rowGetter.getRows("getCandidateCellsForSweeping", keyRange, slicePredicate); return rows.stream().map(KeySlice::getKey).collect(Collectors.toList()); }
static KeyRange keyRangeStartRow(byte[] startRowKey, int count) { KeyRange keyRange = new KeyRange(); keyRange.setStart_key(startRowKey == null ? EMPTY_BYTES : startRowKey); keyRange.setEnd_key(EMPTY_BYTES); keyRange.setCount(count); return keyRange; }
/** * Create a KeyRange that selects a single row with the given key. * * @param rowKey Row key as a byte[]. * @return KeyRange that starts and ends with the given key. */ static KeyRange keyRangeSingleRow(byte[] rowKey) { KeyRange keyRange = new KeyRange(); keyRange.setStart_key(rowKey); keyRange.setEnd_key(rowKey); keyRange.setCount(1); return keyRange; } // keyRangeSingleRow
/** * Create a KeyRange that selects a single row with the given key. * * @param rowKey Row key as a byte[]. * @return KeyRange that starts and ends with the given key. */ static KeyRange keyRangeSingleRow(byte[] rowKey) { KeyRange keyRange = new KeyRange(); keyRange.setStart_key(rowKey); keyRange.setEnd_key(rowKey); keyRange.setCount(1); return keyRange; } // keyRangeSingleRow
/** * Create a KeyRange that begins at the given row key. * * @param startRowKey Starting row key as a byte[]. * @return KeyRange that starts at the given row, open-ended. */ static KeyRange keyRangeStartRow(byte[] startRowKey) { KeyRange keyRange = new KeyRange(); keyRange.setStart_key(startRowKey); keyRange.setEnd_key(EMPTY_BYTE_BUFFER); keyRange.setCount(MAX_ROWS_BATCH_SIZE); return keyRange; } // keyRangeStartRow
/** * Create a KeyRange that begins at the given row key. * * @param startRowKey Starting row key as a byte[]. * @return KeyRange that starts at the given row, open-ended. */ static KeyRange keyRangeStartRow(byte[] startRowKey) { KeyRange keyRange = new KeyRange(); keyRange.setStart_key(startRowKey); keyRange.setEnd_key(EMPTY_BYTE_BUFFER); keyRange.setCount(MAX_ROWS_BATCH_SIZE); return keyRange; } // keyRangeStartRow
private List<KeySlice> getKeySlice(ByteBuffer startKey, ByteBuffer endKey, SliceQuery columnSlice, int count) throws BackendException { return getRangeSlices(new org.apache.cassandra.thrift.KeyRange().setStart_key(startKey).setEnd_key(endKey).setCount(count), columnSlice); }
.setEnd_key(new byte[] {}).setCount(recordcount);
.setEnd_key(new byte[] {}).setCount(recordcount);
private List<KeySlice> getKeySlice(ByteBuffer startKey, ByteBuffer endKey, SliceQuery columnSlice, int count) throws BackendException { return getRangeSlices(new org.apache.cassandra.thrift.KeyRange().setStart_key(startKey).setEnd_key(endKey).setCount(count), columnSlice); }
.setEnd_key(new byte[] {}).setCount(recordcount);
private <T extends Token> List<KeySlice> getTokenSlice(T startToken, T endToken, SliceQuery sliceQuery, int count) throws BackendException { String st = sanitizeBrokenByteToken(startToken); String et = sanitizeBrokenByteToken(endToken); org.apache.cassandra.thrift.KeyRange kr = new org.apache.cassandra.thrift.KeyRange().setStart_token(st).setEnd_token(et).setCount(count); return getRangeSlices(kr, sliceQuery); }
private <T extends Token<?>> List<KeySlice> getTokenSlice(T startToken, T endToken, SliceQuery sliceQuery, int count) throws BackendException { String st = sanitizeBrokenByteToken(startToken); String et = sanitizeBrokenByteToken(endToken); org.apache.cassandra.thrift.KeyRange kr = new org.apache.cassandra.thrift.KeyRange().setStart_token(st).setEnd_token(et).setCount(count); return getRangeSlices(kr, sliceQuery); }
unsetCount(); } else { setCount((Integer)value);
unsetCount(); } else { setCount((Integer)value);
unsetCount(); } else { setCount((Integer)value);
.setCount(query.getBlockSize()) .setStart_token(startToken) .setEnd_token(endToken);