Class TimelineEntityGroupPlugin
java.lang.Object
org.apache.hadoop.yarn.server.timeline.TimelineEntityGroupPlugin
Plugin to map a requested query ( or an Entity/set of Entities ) to a CacheID.
The Cache ID is an identifier to the data set that needs to be queried to
serve the response for the query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Set<org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId>getTimelineEntityGroupId(String entityId, String entityType) Get theTimelineEntityGroupIds for the data sets that need to be scanned to serve the query.abstract Set<org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId>Get theTimelineEntityGroupIds for the data sets that need to be scanned to serve the query.abstract Set<org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId>getTimelineEntityGroupId(String entityType, org.apache.hadoop.yarn.server.timeline.NameValuePair primaryFilter, Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> secondaryFilters) Get theTimelineEntityGroupIds for the data sets that need to be scanned to serve the query.
-
Constructor Details
-
TimelineEntityGroupPlugin
public TimelineEntityGroupPlugin()
-
-
Method Details
-
getTimelineEntityGroupId
public abstract Set<org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId> getTimelineEntityGroupId(String entityType, org.apache.hadoop.yarn.server.timeline.NameValuePair primaryFilter, Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> secondaryFilters) Get theTimelineEntityGroupIds for the data sets that need to be scanned to serve the query.- Parameters:
entityType- Entity Type being queriedprimaryFilter- Primary filter being appliedsecondaryFilters- Secondary filters being applied in the query- Returns:
TimelineEntityGroupId
-
getTimelineEntityGroupId
public abstract Set<org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId> getTimelineEntityGroupId(String entityId, String entityType) Get theTimelineEntityGroupIds for the data sets that need to be scanned to serve the query.- Parameters:
entityType- Entity Type being queriedentityId- Entity Id being requested- Returns:
TimelineEntityGroupId
-
getTimelineEntityGroupId
public abstract Set<org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId> getTimelineEntityGroupId(String entityType, SortedSet<String> entityIds, Set<String> eventTypes) Get theTimelineEntityGroupIds for the data sets that need to be scanned to serve the query.- Parameters:
entityType- Entity Type being queriedentityIds- Entity Ids being requestedeventTypes- Event Types being requested- Returns:
TimelineEntityGroupId
-