org.apache.accumulo.core.client.impl
Class TabletServerBatchReader

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

public class TabletServerBatchReader
extends ScannerOptions
implements BatchScanner


Field Summary
 
Fields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
fetchedColumns, serverSideIteratorList, serverSideIteratorOptions
 
Constructor Summary
TabletServerBatchReader(Instance instance, AuthInfo credentials, String table, Authorizations authorizations, int numQueryThreads)
           
 
Method Summary
 void close()
          Cleans up and finalizes the scanner
 Iterator<Map.Entry<Key,Value>> iterator()
          Returns an iterator over an accumulo table.
 void setRanges(Collection<Range> ranges)
          Allows scanning over multiple ranges efficiently.
 
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setOptions, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, 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, fetchColumn, fetchColumnFamily, removeScanIterator, setColumnFamilyRegex, setColumnQualifierRegex, setRowRegex, setScanIteratorOption, setScanIterators, setupRegex, setValueRegex, updateScanIteratorOption
 

Constructor Detail

TabletServerBatchReader

public TabletServerBatchReader(Instance instance,
                               AuthInfo credentials,
                               String table,
                               Authorizations authorizations,
                               int numQueryThreads)
Method Detail

close

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

Specified by:
close in interface BatchScanner

setRanges

public void setRanges(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 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 © 2014 The Apache Software Foundation. All Rights Reserved.