Class MockScannerBase
- java.lang.Object
-
- org.apache.accumulo.core.client.impl.ScannerOptions
-
- org.apache.accumulo.core.client.mock.MockScannerBase
-
- All Implemented Interfaces:
AutoCloseable
,Iterable<Map.Entry<Key,Value>>
,ScannerBase
- Direct Known Subclasses:
MockBatchScanner
,MockScanner
@Deprecated public class MockScannerBase extends ScannerOptions
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
-
-
Field Summary
Fields Modifier and Type Field Description protected Authorizations
auths
Deprecated.protected MockTable
table
Deprecated.-
Fields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
batchTimeOut, classLoaderContext, fetchedColumns, serverSideIteratorList, serverSideIteratorOptions, timeOut
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SortedKeyValueIterator<Key,Value>
createFilter(SortedKeyValueIterator<Key,Value> inner)
Deprecated.Authorizations
getAuthorizations()
Deprecated.Returns the authorizations that have been set on the scannerIterator<Map.Entry<Key,Value>>
iterator()
Deprecated.Returns an iterator over an accumulo table.void
setClassLoaderContext(String context)
Deprecated.Sets the name of the classloader context on this scanner.-
Methods inherited from class org.apache.accumulo.core.client.impl.ScannerOptions
addScanIterator, clearClassLoaderContext, clearColumns, clearSamplerConfiguration, clearScanIterators, close, 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 java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
table
protected final MockTable table
Deprecated.
-
auths
protected final Authorizations auths
Deprecated.
-
-
Method Detail
-
createFilter
public SortedKeyValueIterator<Key,Value> createFilter(SortedKeyValueIterator<Key,Value> inner) throws IOException
Deprecated.- Throws:
IOException
-
iterator
public Iterator<Map.Entry<Key,Value>> 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 classScannerOptions
- Returns:
- an iterator over Key,Value pairs which meet the restrictions set on the scanner
-
getAuthorizations
public Authorizations getAuthorizations()
Deprecated.Description copied from interface:ScannerBase
Returns the authorizations that have been set on the scanner- Specified by:
getAuthorizations
in interfaceScannerBase
- Overrides:
getAuthorizations
in classScannerOptions
- Returns:
- The authorizations set on the scanner instance
-
setClassLoaderContext
public void setClassLoaderContext(String context)
Deprecated.Description copied from interface:ScannerBase
Sets the name of the classloader context on this scanner. See the administration chapter of the user manual for details on how to configure and use classloader contexts.- Specified by:
setClassLoaderContext
in interfaceScannerBase
- Overrides:
setClassLoaderContext
in classScannerOptions
- Parameters:
context
- name of the classloader context
-
-