Class CoGbkResultSchema

  • All Implemented Interfaces:
    java.io.Serializable

    public class CoGbkResultSchema
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Constructor Detail

      • CoGbkResultSchema

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

      • 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 java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object