voldemort.server.protocol.admin
Class FullScanFetchKeysRequestHandler

java.lang.Object
  extended by voldemort.server.protocol.admin.FetchStreamRequestHandler
      extended by voldemort.server.protocol.admin.FullScanFetchStreamRequestHandler
          extended by voldemort.server.protocol.admin.FullScanFetchKeysRequestHandler
All Implemented Interfaces:
StreamRequestHandler

public class FullScanFetchKeysRequestHandler
extends FullScanFetchStreamRequestHandler

Fetches keys by scanning entire storage engine in storage-order.


Nested Class Summary
 
Nested classes/interfaces inherited from interface voldemort.server.protocol.StreamRequestHandler
StreamRequestHandler.StreamRequestDirection, StreamRequestHandler.StreamRequestHandlerState
 
Field Summary
 
Fields inherited from class voldemort.server.protocol.admin.FullScanFetchStreamRequestHandler
keyIterator, partitionFetches, partitionsToFetch
 
Fields inherited from class voldemort.server.protocol.admin.FetchStreamRequestHandler
errorCodeMapper, fetched, fetchOrphaned, filter, initialCluster, isJmxEnabled, logger, nodeId, operation, partitionIds, recordsPerPartition, request, scanned, startTimeMs, storageEngine, storeDef, storeInstance, streamStats, throttler
 
Fields inherited from interface voldemort.server.protocol.StreamRequestHandler
STAT_RECORDS_INTERVAL
 
Constructor Summary
FullScanFetchKeysRequestHandler(VAdminProto.FetchPartitionEntriesRequest request, MetadataStore metadataStore, ErrorCodeMapper errorCodeMapper, VoldemortConfig voldemortConfig, StoreRepository storeRepository, NetworkClassLoader networkClassLoader)
           
 
Method Summary
 StreamRequestHandler.StreamRequestHandlerState handleRequest(java.io.DataInputStream inputStream, java.io.DataOutputStream outputStream)
          Handles a "segment" of a streaming request.
 
Methods inherited from class voldemort.server.protocol.admin.FullScanFetchStreamRequestHandler
accountForFetchedKey, close, determineRequestHandlerState, fetchedEnoughForAllPartitions, isItemAccepted, isKeyNeeded
 
Methods inherited from class voldemort.server.protocol.admin.FetchStreamRequestHandler
accountForScanProgress, getDirection, handleError, progressInfoMessage, reportStorageOpTime, sendMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullScanFetchKeysRequestHandler

public FullScanFetchKeysRequestHandler(VAdminProto.FetchPartitionEntriesRequest request,
                                       MetadataStore metadataStore,
                                       ErrorCodeMapper errorCodeMapper,
                                       VoldemortConfig voldemortConfig,
                                       StoreRepository storeRepository,
                                       NetworkClassLoader networkClassLoader)
Method Detail

handleRequest

public StreamRequestHandler.StreamRequestHandlerState handleRequest(java.io.DataInputStream inputStream,
                                                                    java.io.DataOutputStream outputStream)
                                                             throws java.io.IOException
Description copied from interface: StreamRequestHandler
Handles a "segment" of a streaming request.

Returns:
StreamRequestHandler.StreamRequestHandlerState
Throws:
java.io.IOException


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu