org.apache.accumulo.core.client.impl
Class TabletServerBatchReader
java.lang.Object
org.apache.accumulo.core.client.impl.ScannerOptions
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 |
static org.apache.log4j.Logger |
log
|
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions |
addScanIterator, clearColumns, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getFetchedColumns, getTimeout, removeScanIterator, setOptions, setTimeout, updateScanIteratorOption |
log
public static final org.apache.log4j.Logger log
TabletServerBatchReader
public TabletServerBatchReader(Instance instance,
Credentials credentials,
String table,
Authorizations authorizations,
int numQueryThreads)
close
public void close()
- Description copied from interface:
ScannerBase
- Closes any underlying connections on the scanner
- Specified by:
close
in interface BatchScanner
- Specified by:
close
in interface ScannerBase
- Overrides:
close
in class ScannerOptions
finalize
protected void finalize()
- Warning: do not rely upon finalize to close this class. Finalize is not guaranteed to be called.
- Overrides:
finalize
in class Object
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 © 2015 Apache Accumulo Project. All rights reserved.