Package org.apache.spark.metrics.source
Class HiveCatalogMetrics
Object
org.apache.spark.metrics.source.HiveCatalogMetrics
Metrics for access to the hive external catalog.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidincrementFetchedPartitions(int n) static voidincrementFileCacheHits(int n) static voidincrementFilesDiscovered(int n) static voidincrementHiveClientCalls(int n) static voidstatic com.codahale.metrics.CounterTracks the total number of files served from the file status cache instead of discovered.static com.codahale.metrics.CounterTracks the total number of files discovered off of the filesystem by InMemoryFileIndex.static com.codahale.metrics.CounterTracks the total number of Hive client calls (e.g.static com.codahale.metrics.CounterTracks the total number of Spark jobs launched for parallel file listing.static com.codahale.metrics.CounterTracks the total number of partition metadata entries fetched via the client api.static com.codahale.metrics.MetricRegistrystatic voidreset()Resets the values of all metrics to zero.static String
- 
Constructor Details- 
HiveCatalogMetricspublic HiveCatalogMetrics()
 
- 
- 
Method Details- 
sourceName
- 
metricRegistrypublic static com.codahale.metrics.MetricRegistry metricRegistry()
- 
METRIC_PARTITIONS_FETCHEDpublic static com.codahale.metrics.Counter METRIC_PARTITIONS_FETCHED()Tracks the total number of partition metadata entries fetched via the client api.- Returns:
- (undocumented)
 
- 
METRIC_FILES_DISCOVEREDpublic static com.codahale.metrics.Counter METRIC_FILES_DISCOVERED()Tracks the total number of files discovered off of the filesystem by InMemoryFileIndex.- Returns:
- (undocumented)
 
- 
METRIC_FILE_CACHE_HITSpublic static com.codahale.metrics.Counter METRIC_FILE_CACHE_HITS()Tracks the total number of files served from the file status cache instead of discovered.- Returns:
- (undocumented)
 
- 
METRIC_HIVE_CLIENT_CALLSpublic static com.codahale.metrics.Counter METRIC_HIVE_CLIENT_CALLS()Tracks the total number of Hive client calls (e.g. to lookup a table).- Returns:
- (undocumented)
 
- 
METRIC_PARALLEL_LISTING_JOB_COUNTpublic static com.codahale.metrics.Counter METRIC_PARALLEL_LISTING_JOB_COUNT()Tracks the total number of Spark jobs launched for parallel file listing.- Returns:
- (undocumented)
 
- 
resetpublic static void reset()Resets the values of all metrics to zero. This is useful in tests.
- 
incrementFetchedPartitionspublic static void incrementFetchedPartitions(int n) 
- 
incrementFilesDiscoveredpublic static void incrementFilesDiscovered(int n) 
- 
incrementFileCacheHitspublic static void incrementFileCacheHits(int n) 
- 
incrementHiveClientCallspublic static void incrementHiveClientCalls(int n) 
- 
incrementParallelListingJobCountpublic static void incrementParallelListingJobCount(int n) 
 
-