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 org.apache.accumulo.core.client.impl.ScannerOptions
Deprecated.
since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Authorizations
    Deprecated.
     
    protected final MockTable
    Deprecated.
     

    Fields inherited from class org.apache.accumulo.core.client.impl.ScannerOptions

    batchTimeout, classLoaderContext, fetchedColumns, retryTimeout, serverSideIteratorList, serverSideIteratorOptions
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.accumulo.core.iterators.SortedKeyValueIterator<Key,Value>
    createFilter(org.apache.accumulo.core.iterators.SortedKeyValueIterator<Key,Value> inner)
    Deprecated.
     
    Deprecated.
    Returns the authorizations that have been set on the scanner
    Deprecated.
    Returns an iterator over an accumulo table.
    void
    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 Details

  • Method Details

    • createFilter

      public org.apache.accumulo.core.iterators.SortedKeyValueIterator<Key,Value> createFilter(org.apache.accumulo.core.iterators.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 interface Iterable<Map.Entry<Key,Value>>
      Specified by:
      iterator in interface ScannerBase
      Overrides:
      iterator in class org.apache.accumulo.core.client.impl.ScannerOptions
      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 interface ScannerBase
      Overrides:
      getAuthorizations in class org.apache.accumulo.core.client.impl.ScannerOptions
      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 interface ScannerBase
      Overrides:
      setClassLoaderContext in class org.apache.accumulo.core.client.impl.ScannerOptions
      Parameters:
      context - name of the classloader context