Class EntityTypeReader
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.reader.AbstractTimelineStorageReader
org.apache.hadoop.yarn.server.timelineservice.storage.reader.EntityTypeReader
Timeline entity reader for listing all available entity types given one
reader context. Right now only supports listing all entity types within one
YARN application.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.timelineservice.storage.reader.AbstractTimelineStorageReader
AbstractTimelineStorageReader.FlowContext -
Constructor Summary
ConstructorsConstructorDescriptionEntityTypeReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) -
Method Summary
Modifier and TypeMethodDescriptionreadEntityTypes(org.apache.hadoop.conf.Configuration hbaseConf, org.apache.hadoop.hbase.client.Connection conn) Reads a set of timeline entity types from the HBase storage for the given context.protected voidValidates the required parameters to read the entities.Methods inherited from class org.apache.hadoop.yarn.server.timelineservice.storage.reader.AbstractTimelineStorageReader
augmentParams, defaultAugmentParams, getContext, lookupFlowContext
-
Constructor Details
-
EntityTypeReader
public EntityTypeReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context)
-
-
Method Details
-
readEntityTypes
public Set<String> readEntityTypes(org.apache.hadoop.conf.Configuration hbaseConf, org.apache.hadoop.hbase.client.Connection conn) throws IOException Reads a set of timeline entity types from the HBase storage for the given context.- Parameters:
hbaseConf- HBase Configuration.conn- HBase Connection.- Returns:
- a set of TimelineEntity objects, with only type field set.
- Throws:
IOException- if any exception is encountered while reading entities.
-
validateParams
protected void validateParams()Description copied from class:AbstractTimelineStorageReaderValidates the required parameters to read the entities.- Specified by:
validateParamsin classAbstractTimelineStorageReader
-