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