Class ServerSideScanMetrics
java.lang.Object
org.apache.hadoop.hbase.client.metrics.ServerSideScanMetrics
- Direct Known Subclasses:
ScanMetrics
Provides server side metrics related to scan operations.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-17886).static final String
static final String
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-17886).static final String
private final Map<String,
AtomicLong> Hash to hold the String -> Atomic Long mappings for each metricfinal AtomicLong
final AtomicLong
number of rows filtered during scan RPCfinal AtomicLong
number of rows scanned during scan RPC.static final String
final AtomicLong
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCounter
(String counterName, long delta) protected AtomicLong
createCounter
(String counterName) Create a new counter with the specified namegetCounter
(String counterName) ReturnsAtomicLong
instance for this counter name, null if counter does not exist.Get all of the values since the last time this function was called.getMetricsMap
(boolean reset) Get all of the values.boolean
hasCounter
(String counterName) Returns true if a counter exists with the counterNamevoid
setCounter
(String counterName, long value)
-
Field Details
-
counters
Hash to hold the String -> Atomic Long mappings for each metric -
COUNT_OF_ROWS_SCANNED_KEY_METRIC_NAME
- See Also:
-
COUNT_OF_ROWS_FILTERED_KEY_METRIC_NAME
- See Also:
-
BLOCK_BYTES_SCANNED_KEY_METRIC_NAME
- See Also:
-
FS_READ_TIME_METRIC_NAME
- See Also:
-
COUNT_OF_ROWS_SCANNED_KEY
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-17886). UseCOUNT_OF_ROWS_SCANNED_KEY_METRIC_NAME
.- See Also:
-
COUNT_OF_ROWS_FILTERED_KEY
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-17886). UseCOUNT_OF_ROWS_FILTERED_KEY_METRIC_NAME
.- See Also:
-
countOfRowsFiltered
number of rows filtered during scan RPC -
countOfRowsScanned
number of rows scanned during scan RPC. Not every row scanned will be returned to the client since rows may be filtered. -
countOfBlockBytesScanned
-
fsReadTime
-
-
Constructor Details
-
ServerSideScanMetrics
public ServerSideScanMetrics()
-
-
Method Details
-
createCounter
Create a new counter with the specified name- Returns:
AtomicLong
instance for the counter with counterName
-
setCounter
-
hasCounter
Returns true if a counter exists with the counterName -
getCounter
ReturnsAtomicLong
instance for this counter name, null if counter does not exist. -
addToCounter
-
getMetricsMap
Get all of the values since the last time this function was called. Calling this function will reset all AtomicLongs in the instance back to 0.- Returns:
- A Map of String -> Long for metrics
-
getMetricsMap
Get all of the values. If reset is true, we will reset the all AtomicLongs back to 0.- Parameters:
reset
- whether to reset the AtomicLongs to 0.- Returns:
- A Map of String -> Long for metrics
-