org.apache.accumulo.core.client.impl
Class TabletServerBatchReaderIterator

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.TabletServerBatchReaderIterator
All Implemented Interfaces:
Iterator<Map.Entry<Key,Value>>

public class TabletServerBatchReaderIterator
extends Object
implements Iterator<Map.Entry<Key,Value>>


Nested Class Summary
static interface TabletServerBatchReaderIterator.ResultReceiver
           
 
Constructor Summary
TabletServerBatchReaderIterator(Instance instance, Credentials credentials, String table, Authorizations authorizations, ArrayList<Range> ranges, int numThreads, ExecutorService queryThreadPool, ScannerOptions scannerOptions, long timeout)
           
 
Method Summary
static void doLookup(Instance instance, Credentials credentials, String server, Map<KeyExtent,List<Range>> requested, Map<KeyExtent,List<Range>> failures, Map<KeyExtent,List<Range>> unscanned, TabletServerBatchReaderIterator.ResultReceiver receiver, List<Column> columns, ScannerOptions options, Authorizations authorizations, AccumuloConfiguration conf)
           
 boolean hasNext()
           
 Map.Entry<Key,Value> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabletServerBatchReaderIterator

public TabletServerBatchReaderIterator(Instance instance,
                                       Credentials credentials,
                                       String table,
                                       Authorizations authorizations,
                                       ArrayList<Range> ranges,
                                       int numThreads,
                                       ExecutorService queryThreadPool,
                                       ScannerOptions scannerOptions,
                                       long timeout)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Map.Entry<Key,Value>>

next

public Map.Entry<Key,Value> next()
Specified by:
next in interface Iterator<Map.Entry<Key,Value>>

remove

public void remove()
Specified by:
remove in interface Iterator<Map.Entry<Key,Value>>

doLookup

public static void doLookup(Instance instance,
                            Credentials credentials,
                            String server,
                            Map<KeyExtent,List<Range>> requested,
                            Map<KeyExtent,List<Range>> failures,
                            Map<KeyExtent,List<Range>> unscanned,
                            TabletServerBatchReaderIterator.ResultReceiver receiver,
                            List<Column> columns,
                            ScannerOptions options,
                            Authorizations authorizations,
                            AccumuloConfiguration conf)
                     throws IOException,
                            AccumuloSecurityException,
                            AccumuloServerException
Throws:
IOException
AccumuloSecurityException
AccumuloServerException


Copyright © 2015 Apache Accumulo Project. All rights reserved.