public class CoGbkResultSchema extends Object implements Serializable
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).| Constructor and Description |
|---|
CoGbkResultSchema(TupleTagList tupleTagList)
Builds a schema from a tuple of
TupleTag<?>s. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.util.CloudObject |
asCloudObject() |
boolean |
equals(Object obj) |
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.
|
TupleTag<?> |
getTag(int index)
Returns the tuple tag at the given index.
|
TupleTagList |
getTupleTagList()
Returns the TupleTagList tuple associated with this schema.
|
int |
hashCode() |
static CoGbkResultSchema |
of(List<TupleTag<?>> tags) |
int |
size()
Returns the number of columns for this schema.
|
String |
toString() |
public CoGbkResultSchema(TupleTagList tupleTagList)
TupleTag<?>s.public static CoGbkResultSchema of(List<TupleTag<?>> tags)
public int getIndex(TupleTag<?> tag)
public TupleTag<?> getTag(int index)
public int size()
public TupleTagList getTupleTagList()
public org.apache.beam.sdk.util.CloudObject asCloudObject()