Class TimelineEntityReaderFactory
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineEntityReaderFactory
Factory methods for instantiating a timeline entity reader.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityTypeReadercreateEntityTypeReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) Creates a timeline entity type reader that will read all available entity types within the specified context.static TimelineEntityReadercreateMultipleEntitiesReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineEntityFilters filters, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) Creates a timeline entity reader instance for reading set of entities with the specified input and predicates.static TimelineEntityReadercreateSingleEntityReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) Creates a timeline entity reader instance for reading a single entity with the specified input.
-
Method Details
-
createSingleEntityReader
public static TimelineEntityReader createSingleEntityReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) Creates a timeline entity reader instance for reading a single entity with the specified input.- Parameters:
context- Reader context which defines the scope in which query has to be made.dataToRetrieve- Data to retrieve for each entity.- Returns:
- An implementation of TimelineEntityReader object depending on entity type.
-
createMultipleEntitiesReader
public static TimelineEntityReader createMultipleEntitiesReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineEntityFilters filters, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) Creates a timeline entity reader instance for reading set of entities with the specified input and predicates.- Parameters:
context- Reader context which defines the scope in which query has to be made.filters- Filters which limit the entities returned.dataToRetrieve- Data to retrieve for each entity.- Returns:
- An implementation of TimelineEntityReader object depending on entity type.
-
createEntityTypeReader
public static EntityTypeReader createEntityTypeReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) Creates a timeline entity type reader that will read all available entity types within the specified context.- Parameters:
context- Reader context which defines the scope in which query has to be made. Limited to application level only.- Returns:
- an EntityTypeReader object
-