@Override
public RowQuery<byte[], byte[]> createRowQuery() {
RangeBuilder rangeBldr = new RangeBuilder().setStart(from).setEnd(to);
if(batchSize != null)
rangeBldr = rangeBldr.setLimit(batchSize);
ByteBufferRange range = rangeBldr.build();
return createBasicRowQuery(rowKey, info1, range);
}
@Override
public RowQuery<byte[], byte[]> createRowQueryReverse() {
RangeBuilder rangeBldr = new RangeBuilder().setStart(to).setEnd(from).setReversed(true);
if(batchSize != null)
rangeBldr = rangeBldr.setLimit(batchSize);
ByteBufferRange range = rangeBldr.build();
return createBasicRowQuery(rowKey, info1, range);
}
};