TimelineEntities (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.records.timeline, class: TimelineEntities

Package org.apache.hadoop.yarn.api.records.timeline

# Class TimelineEntities

java.lang.Object
org.apache.hadoop.yarn.api.records.timeline.TimelineEntities

@Public @Evolving public class TimelineEntities extends Object
The class that hosts a list of timeline entities.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TimelineEntities()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addEntities(List<TimelineEntity> entities)`
  All a list of entities into the existing entity list
  `void`
  `addEntity(TimelineEntity entity)`
  Add a single entity into the existing entity list
  `List<TimelineEntity>`
  `getEntities()`
  Get a list of entities
  `void`
  `setEntities(List<TimelineEntity> entities)`
  Set the entity list to the given list of entities

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TimelineEntities

    public TimelineEntities()

- ## Method Details

  - ### getEntities

    public List<TimelineEntity> getEntities()
    Get a list of entities
    Returns:
      a list of entities

  - ### addEntity

    public void addEntity(TimelineEntity entity)
    Add a single entity into the existing entity list
    Parameters:
      `entity` - a single entity

  - ### addEntities

    public void addEntities(List<TimelineEntity> entities)
    All a list of entities into the existing entity list
    Parameters:
      `entities` - a list of entities

  - ### setEntities

    public void setEntities(List<TimelineEntity> entities)
    Set the entity list to the given list of entities
    Parameters:
      `entities` - a list of entities