Class CoGbkResultSchema

java.lang.Object
org.apache.beam.sdk.transforms.join.CoGbkResultSchema
All Implemented Interfaces:
Serializable

public class CoGbkResultSchema extends Object implements Serializable
A schema for the results of a CoGroupByKey. This maintains the full set of TupleTags for the results of a CoGroupByKey and facilitates mapping between TupleTags and RawUnionValue tags (which are used as secondary keys in the CoGroupByKey).
See Also:
  • Constructor Details

    • CoGbkResultSchema

      public CoGbkResultSchema(TupleTagList tupleTagList)
      Builds a schema from a tuple of TupleTag<?>s.
  • Method Details

    • of

      public static CoGbkResultSchema of(List<TupleTag<?>> tags)
    • getIndex

      public int getIndex(TupleTag<?> tag)
      Returns the index for the given tuple tag, if the tag is present in this schema, -1 if it isn't.
    • getTag

      public TupleTag<?> getTag(int index)
      Returns the tuple tag at the given index.
    • size

      public int size()
      Returns the number of columns for this schema.
    • getTupleTagList

      public TupleTagList getTupleTagList()
      Returns the TupleTagList tuple associated with this schema.
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object