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

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.ScannerOptions
      extended by org.apache.accumulo.core.client.mock.MockScannerBase
All Implemented Interfaces:
Iterable<Map.Entry<Key,Value>>, ScannerBase
Direct Known Subclasses:
MockBatchScanner, MockScanner

public class MockScannerBase
extends ScannerOptions
implements ScannerBase


Field Summary
protected  Authorizations auths
           
protected  MockTable table
           
 
Fields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
fetchedColumns, serverSideIteratorList, serverSideIteratorOptions, timeOut
 
Method Summary
 SortedKeyValueIterator<Key,Value> createFilter(SortedKeyValueIterator<Key,Value> inner)
           
 Iterator<Map.Entry<Key,Value>> iterator()
          Returns an iterator over an accumulo table.
 
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
addScanIterator, clearColumns, clearScanIterators, close, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, getTimeout, removeScanIterator, setOptions, setTimeout, updateScanIteratorOption
 
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
addScanIterator, clearColumns, clearScanIterators, close, fetchColumn, fetchColumnFamily, getTimeout, removeScanIterator, setTimeout, updateScanIteratorOption
 

Field Detail

table

protected final MockTable table

auths

protected final Authorizations auths
Method Detail

createFilter

public SortedKeyValueIterator<Key,Value> createFilter(SortedKeyValueIterator<Key,Value> inner)
                                               throws IOException
Throws:
IOException

iterator

public Iterator<Map.Entry<Key,Value>> iterator()
Description copied from interface: ScannerBase
Returns an iterator over an 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 Iterable<Map.Entry<Key,Value>>
Specified by:
iterator in interface ScannerBase
Overrides:
iterator in class ScannerOptions
Returns:
an iterator over Key,Value pairs which meet the restrictions set on the scanner


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.