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, tableFields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
batchTimeout, classLoaderContext, fetchedColumns, retryTimeout, serverSideIteratorList, serverSideIteratorOptions -
Constructor Summary
ConstructorsConstructorDescriptionMockBatchScanner(MockTable mockTable, Authorizations authorizations) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Closes any underlying connections on the scanner.iterator()Deprecated.Returns an iterator over an accumulo table.voidsetRanges(Collection<Range> ranges) Deprecated.Allows scanning over multiple ranges efficiently.Methods inherited from class org.apache.accumulo.core.client.mock.MockScannerBase
createFilter, getAuthorizations, setClassLoaderContextMethods 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, updateScanIteratorOptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.accumulo.core.client.BatchScanner
setTimeoutMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:BatchScannerAllows scanning over multiple ranges efficiently.- Specified by:
setRangesin interfaceBatchScanner- Parameters:
ranges- specifies the non-overlapping ranges to query
-
iterator
Deprecated.Description copied from interface:ScannerBaseReturns 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:
iteratorin interfaceIterable<Map.Entry<Key,Value>> - Specified by:
iteratorin interfaceScannerBase- Overrides:
iteratorin 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:ScannerBaseCloses any underlying connections on the scanner. This may invalidate any iterators derived from the Scanner, causing them to throw exceptions.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBatchScanner- Specified by:
closein interfaceScannerBase- Overrides:
closein classorg.apache.accumulo.core.client.impl.ScannerOptions
-