Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RangeTest {
- public static class Itr extends WrappingIterator {
- boolean queried = false;
- public Key getTopKey() {
- return new Key("C");
- }
- public Value getTopValue() {
- return new Value(new byte[0]);
- }
- public Itr deepCopy(IteratrEnvironment env) {
- Itr i = new Itr();
- i.setSource(this.getSource().deepCopy(env));
- return i;
- }
- }
- public static void main(String[] args) throws Exception {
- Connector c; // do the instaniation stuff for these guys
- BatchScanner bs;
- bs.addScanIterator(new IteratorSetting(50, Itr.class));
- bs.setRanges(Collections.singleton(new Range("A", "B"));
- for(Entry e : bs) System.out.println(e.getKey());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement