.add(pets, bird)
).build();
final KijiTableReader myreader = table.openTableReader();
assert myreader instanceof CassandraKijiTableReader;
final CassandraKijiTableReader reader = (CassandraKijiTableReader) myreader;
try {
// Fire up a row scanner!
final KijiRowScanner scanner = reader.getScanner(dataRequest);
try {
checkScannerResults(
alice, bob, cathy, david, scanner);
} finally {
scanner.close();
}
final KijiRowScanner scannerWithStartToken = reader.getScannerWithOptions(
dataRequest, CassandraKijiScannerOptions.withStartToken(Long.MIN_VALUE));
try {
checkScannerResults(
alice, bob, cathy, david, scannerWithStartToken);
} finally {
scannerWithStartToken.close();
}
final KijiRowScanner scannerWithStopToken = reader.getScannerWithOptions(
dataRequest, CassandraKijiScannerOptions.withStopToken(Long.MAX_VALUE));
try {
checkScannerResults(
alice, bob, cathy, david, scannerWithStopToken);
} finally {
scannerWithStopToken.close();
}
final KijiRowScanner scannerWithTokens = reader.getScannerWithOptions(
dataRequest, CassandraKijiScannerOptions.withTokens(Long.MIN_VALUE, Long.MAX_VALUE));
try {
checkScannerResults(
alice, bob, cathy, david, scannerWithTokens);
} finally {
scannerWithTokens.close();
}
} finally {
reader.close();
}
} finally {
table.release();
}
}