org.apache.accumulo.core.client.mock
Class MockBatchScanner

java.lang.Object
  extended by org.apache.accumulo.core.client.mock.MockScannerBase
      extended by org.apache.accumulo.core.client.mock.MockBatchScanner
All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<Key,Value>>, BatchScanner, ScannerBase

public class MockBatchScanner
extends MockScannerBase
implements BatchScanner


Field Summary
 
Fields inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
auths, table
 
Constructor Summary
MockBatchScanner(MockTable mockTable, Authorizations authorizations)
           
 
Method Summary
 void close()
          Cleans up and finalizes the scanner
 java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator()
          Returns an iterator over a accumulo table.
 void setRanges(java.util.Collection<Range> ranges)
          Allows scanning over multiple ranges efficiently.
 
Methods inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
clearColumns, clearScanIterators, createFilter, fetchColumn, fetchColumnFamily, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase
clearColumns, clearScanIterators, fetchColumn, fetchColumnFamily, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex
 

Constructor Detail

MockBatchScanner

public MockBatchScanner(MockTable mockTable,
                        Authorizations authorizations)
Method Detail

setRanges

public void setRanges(java.util.Collection<Range> ranges)
Description copied from interface: BatchScanner
Allows scanning over multiple ranges efficiently.

Specified by:
setRanges in interface BatchScanner
Parameters:
ranges - specifies the non-overlapping ranges to query

iterator

public java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator()
Description copied from interface: BatchScanner
Returns an iterator over a accumulo table. This iterator uses the options that are currently set for its lifetime. So setting options will have no effect on existing iterators. Keys returned by the iterator are not guaranteed to be in sorted order.

Specified by:
iterator in interface java.lang.Iterable<java.util.Map.Entry<Key,Value>>
Specified by:
iterator in interface BatchScanner

close

public void close()
Description copied from interface: BatchScanner
Cleans up and finalizes the scanner

Specified by:
close in interface BatchScanner


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.