Class CoGbkResultSchema
java.lang.Object
org.apache.beam.sdk.transforms.join.CoGbkResultSchema
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCoGbkResultSchema(TupleTagList tupleTagList) Builds a schema from a tuple ofTupleTag<?>s. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the index for the given tuple tag, if the tag is present in this schema, -1 if it isn't.TupleTag<?> getTag(int index) Returns the tuple tag at the given index.Returns the TupleTagList tuple associated with this schema.inthashCode()static CoGbkResultSchemaintsize()Returns the number of columns for this schema.toString()
-
Constructor Details
-
CoGbkResultSchema
Builds a schema from a tuple ofTupleTag<?>s.
-
-
Method Details
-
of
-
getIndex
Returns the index for the given tuple tag, if the tag is present in this schema, -1 if it isn't. -
getTag
Returns the tuple tag at the given index. -
size
public int size()Returns the number of columns for this schema. -
getTupleTagList
Returns the TupleTagList tuple associated with this schema. -
equals
-
hashCode
public int hashCode() -
toString
-