Class MockBatchScanner
java.lang.Object
org.apache.accumulo.core.client.impl.ScannerOptions
org.apache.accumulo.core.client.mock.MockScannerBase
org.apache.accumulo.core.client.mock.MockBatchScanner
- All Implemented Interfaces:
AutoCloseable
,Iterable<Map.Entry<Key,
,Value>> BatchScanner
,ScannerBase
- Direct Known Subclasses:
MockBatchDeleter
Deprecated.
since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
-
Field Summary
Fields inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
auths, table
Fields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
batchTimeout, classLoaderContext, fetchedColumns, retryTimeout, serverSideIteratorList, serverSideIteratorOptions
-
Constructor Summary
ConstructorDescriptionMockBatchScanner
(MockTable mockTable, Authorizations authorizations) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Closes any underlying connections on the scanner.iterator()
Deprecated.Returns an iterator over an accumulo table.void
setRanges
(Collection<Range> ranges) Deprecated.Allows scanning over multiple ranges efficiently.Methods inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
createFilter, getAuthorizations, setClassLoaderContext
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getBatchTimeout, getClassLoaderContext, getFetchedColumns, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setOptions, setSamplerConfiguration, 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.BatchScanner
setTimeout
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.apache.accumulo.core.client.ScannerBase
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, fetchColumn, fetchColumn, fetchColumnFamily, getAuthorizations, getBatchTimeout, getClassLoaderContext, getSamplerConfiguration, getTimeout, removeScanIterator, setBatchTimeout, setClassLoaderContext, setSamplerConfiguration, updateScanIteratorOption
-
Constructor Details
-
MockBatchScanner
Deprecated.
-
-
Method Details
-
setRanges
Deprecated.Description copied from interface:BatchScanner
Allows scanning over multiple ranges efficiently.- Specified by:
setRanges
in interfaceBatchScanner
- Parameters:
ranges
- specifies the non-overlapping ranges to query
-
iterator
Deprecated.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 interfaceIterable<Map.Entry<Key,
Value>> - Specified by:
iterator
in interfaceScannerBase
- Overrides:
iterator
in classMockScannerBase
- Returns:
- an iterator over Key,Value pairs which meet the restrictions set on the scanner
-
close
public void close()Deprecated.Description copied from interface:ScannerBase
Closes any underlying connections on the scanner. This may invalidate any iterators derived from the Scanner, causing them to throw exceptions.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBatchScanner
- Specified by:
close
in interfaceScannerBase
- Overrides:
close
in classorg.apache.accumulo.core.client.impl.ScannerOptions
-