org.apache.hadoop.hbase.regionserver
Class InternalScan

java.lang.Object
  extended by org.apache.hadoop.hbase.client.Operation
      extended by org.apache.hadoop.hbase.client.OperationWithAttributes
          extended by org.apache.hadoop.hbase.client.Query
              extended by org.apache.hadoop.hbase.client.Scan
                  extended by org.apache.hadoop.hbase.regionserver.InternalScan
All Implemented Interfaces:
Attributes

@InterfaceAudience.LimitedPrivate(value="Coprocesssor")
public class InternalScan
extends Scan

Special scanner, currently used for increment operations to allow additional server-side arguments for Scan operations.

Rather than adding new options/parameters to the public Scan API, this new class has been created.

Supports adding an option to only read from the MemStore with checkOnlyMemStore() or to only read from StoreFiles with checkOnlyStoreFiles().


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.client.Scan
HINT_LOOKAHEAD, SCAN_ATTRIBUTES_METRICS_DATA, SCAN_ATTRIBUTES_METRICS_ENABLE, SCAN_ATTRIBUTES_TABLE_NAME
 
Fields inherited from class org.apache.hadoop.hbase.client.Query
filter
 
Fields inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes
ID_ATRIBUTE
 
Constructor Summary
InternalScan(Get get)
           
InternalScan(Scan scan)
           
 
Method Summary
 void checkOnlyMemStore()
          StoreFiles will not be scanned.
 void checkOnlyStoreFiles()
          MemStore will not be scanned.
 boolean isCheckOnlyMemStore()
          Returns true if only the MemStore should be checked.
 boolean isCheckOnlyStoreFiles()
          Returns true if only StoreFiles should be checked.
 
Methods inherited from class org.apache.hadoop.hbase.client.Scan
addColumn, addFamily, doLoadColumnFamiliesOnDemand, getBatch, getCacheBlocks, getCaching, getFamilies, getFamilyMap, getFilter, getFingerprint, getLoadColumnFamiliesOnDemandValue, getMaxResultSize, getMaxResultsPerColumnFamily, getMaxVersions, getRowOffsetPerColumnFamily, getStartRow, getStopRow, getTimeRange, hasFamilies, hasFilter, isGetScan, isRaw, isReversed, isSmall, numFamilies, setBatch, setCacheBlocks, setCaching, setFamilyMap, setFilter, setLoadColumnFamiliesOnDemand, setMaxResultSize, setMaxResultsPerColumnFamily, setMaxVersions, setMaxVersions, setRaw, setReversed, setRowOffsetPerColumnFamily, setSmall, setStartRow, setStopRow, setTimeRange, setTimeStamp, toMap
 
Methods inherited from class org.apache.hadoop.hbase.client.Query
getACL, getACLStrategy, getAuthorizations, getIsolationLevel, setACL, setACL, setACLStrategy, setAuthorizations, setIsolationLevel
 
Methods inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes
getAttribute, getAttributeSize, getAttributesMap, getId, setAttribute, setId
 
Methods inherited from class org.apache.hadoop.hbase.client.Operation
toJSON, toJSON, toMap, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalScan

public InternalScan(Get get)
Parameters:
get - get to model scan after

InternalScan

public InternalScan(Scan scan)
             throws IOException
Parameters:
scan - - original scan object
Throws:
IOException
Method Detail

checkOnlyMemStore

public void checkOnlyMemStore()
StoreFiles will not be scanned. Only MemStore will be scanned.


checkOnlyStoreFiles

public void checkOnlyStoreFiles()
MemStore will not be scanned. Only StoreFiles will be scanned.


isCheckOnlyMemStore

public boolean isCheckOnlyMemStore()
Returns true if only the MemStore should be checked. False if not.

Returns:
true to only check MemStore

isCheckOnlyStoreFiles

public boolean isCheckOnlyStoreFiles()
Returns true if only StoreFiles should be checked. False if not.

Returns:
true if only check StoreFiles


Copyright © 2015 The Apache Software Foundation. All rights reserved.