java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.reader.AbstractTimelineStorageReader
org.apache.hadoop.yarn.server.timelineservice.storage.reader.EntityTypeReader

public final class EntityTypeReader extends AbstractTimelineStorageReader
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.
  • 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: AbstractTimelineStorageReader
      Validates the required parameters to read the entities.
      Specified by:
      validateParams in class AbstractTimelineStorageReader