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 public class MockBatchScanner extends MockScannerBase implements BatchScanner
Deprecated.
since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
  • Constructor Details

  • Method Details

    • setRanges

      public void setRanges(Collection<Range> ranges)
      Deprecated.
      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()
      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 MockScannerBase
      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 interface AutoCloseable
      Specified by:
      close in interface BatchScanner
      Specified by:
      close in interface ScannerBase
      Overrides:
      close in class org.apache.accumulo.core.client.impl.ScannerOptions