Class StateObjectCollection<T extends StateObject>

java.lang.Object
org.apache.flink.runtime.checkpoint.StateObjectCollection<T>
Type Parameters:
T - type of the contained state objects.
All Implemented Interfaces:
Serializable, Iterable<T>, Collection<T>, StateObject

public class StateObjectCollection<T extends StateObject> extends Object implements Collection<T>, StateObject
This class represents a generic collection for StateObjects. Being a state object itself, it delegates discardState() to all contained state objects and computes getStateSize() as sum of the state sizes of all contained objects.
See Also:
  • Constructor Details

    • StateObjectCollection

      public StateObjectCollection()
      Creates a new StateObjectCollection that is backed by an ArrayList.
    • StateObjectCollection

      public StateObjectCollection(Collection<T> stateObjects)
      Creates a new StateObjectCollection wraps the given collection and delegates to it.
      Parameters:
      stateObjects - collection of state objects to wrap.
  • Method Details