Class InternalScan
java.lang.Object
org.apache.hadoop.hbase.client.Operation
org.apache.hadoop.hbase.client.OperationWithAttributes
org.apache.hadoop.hbase.client.Query
org.apache.hadoop.hbase.client.Scan
org.apache.hadoop.hbase.regionserver.InternalScan
- All Implemented Interfaces:
Attributes
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()
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.Scan
Scan.ReadType
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.client.Scan
DEFAULT_HBASE_CLIENT_SCANNER_ASYNC_PREFETCH, HBASE_CLIENT_SCANNER_ASYNC_PREFETCH, SCAN_ATTRIBUTES_METRICS_DATA, SCAN_ATTRIBUTES_METRICS_ENABLE, SCAN_ATTRIBUTES_TABLE_NAME
Fields inherited from class org.apache.hadoop.hbase.client.Query
colFamTimeRangeMap, consistency, filter, loadColumnFamiliesOnDemand, targetReplicaId
Fields inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes
ID_ATRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
StoreFiles will not be scanned.void
MemStore will not be scanned.boolean
Returns true if only the MemStore should be checked.boolean
Returns true if only StoreFiles should be checked.Methods inherited from class org.apache.hadoop.hbase.client.Scan
addColumn, addFamily, createScanFromCursor, getAllowPartialResults, getBatch, getCacheBlocks, getCaching, getFamilies, getFamilyMap, getFilter, getFingerprint, getLimit, getMaxResultSize, getMaxResultsPerColumnFamily, getMaxVersions, getReadType, getRowOffsetPerColumnFamily, getScanMetrics, getStartRow, getStopRow, getTimeRange, hasFamilies, hasFilter, includeStartRow, includeStopRow, isAsyncPrefetch, isGetScan, isNeedCursorResult, isRaw, isReversed, isScanMetricsEnabled, isSmall, numFamilies, readAllVersions, readVersions, setACL, setACL, setAllowPartialResults, setAsyncPrefetch, setAttribute, setAuthorizations, setBatch, setCacheBlocks, setCaching, setColumnFamilyTimeRange, setConsistency, setFamilyMap, setFilter, setId, setIsolationLevel, setLimit, setLoadColumnFamiliesOnDemand, setMaxResultSize, setMaxResultsPerColumnFamily, setMaxVersions, setMaxVersions, setNeedCursorResult, setOneRowLimit, setPriority, setRaw, setReadType, setReplicaId, setReversed, setRowOffsetPerColumnFamily, setRowPrefixFilter, setScanMetricsEnabled, setSmall, setStartRow, setStartStopRowForPrefixScan, setStopRow, setTimeRange, setTimestamp, setTimeStamp, toMap, withStartRow, withStartRow, withStopRow, withStopRow
Methods inherited from class org.apache.hadoop.hbase.client.Query
doLoadColumnFamiliesOnDemand, getACL, getAuthorizations, getColumnFamilyTimeRange, getConsistency, getIsolationLevel, getLoadColumnFamiliesOnDemandValue, getReplicaId
Methods inherited from class org.apache.hadoop.hbase.client.OperationWithAttributes
getAttribute, getAttributeSize, getAttributesMap, getId, getPriority
-
Field Details
-
memOnly
-
filesOnly
-
-
Constructor Details
-
InternalScan
- Parameters:
get
- get to model scan after
-
InternalScan
- Parameters:
scan
- - original scan object- Throws:
IOException
-
-
Method Details
-
checkOnlyMemStore
StoreFiles will not be scanned. Only MemStore will be scanned. -
checkOnlyStoreFiles
MemStore will not be scanned. Only StoreFiles will be scanned. -
isCheckOnlyMemStore
Returns true if only the MemStore should be checked. False if not.- Returns:
- true to only check MemStore
-
isCheckOnlyStoreFiles
Returns true if only StoreFiles should be checked. False if not.- Returns:
- true if only check StoreFiles
-