Package org.apache.flink.api.java.tuple
Class Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>
- java.lang.Object
-
- org.apache.flink.api.java.tuple.Tuple
-
- org.apache.flink.api.java.tuple.Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>
-
- Type Parameters:
T0- The type of field 0T1- The type of field 1T2- The type of field 2T3- The type of field 3T4- The type of field 4T5- The type of field 5T6- The type of field 6T7- The type of field 7T8- The type of field 8T9- The type of field 9T10- The type of field 10T11- The type of field 11T12- The type of field 12T13- The type of field 13
- All Implemented Interfaces:
Serializable
@Public public class Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> extends Tuple
A tuple with 14 fields. Tuples are strongly typed; each field may be of a separate type. The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position through thegetField(int)method. The tuple field positions start at zero.Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work with Tuples to reuse objects in order to reduce pressure on the garbage collector.
Warning: If you subclass Tuple14, then be sure to either
- not add any new fields, or
- make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant type. (That is, if you have a "class Foo extends Tuple14", then don't use instances of Foo in a DataStream<Tuple14> / DataSet<Tuple14>, but declare it as DataStream<Foo> / DataSet<Foo>.)
- See Also:
Tuple, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description T0f0Field 0 of the tuple.T1f1Field 1 of the tuple.T10f10Field 10 of the tuple.T11f11Field 11 of the tuple.T12f12Field 12 of the tuple.T13f13Field 13 of the tuple.T2f2Field 2 of the tuple.T3f3Field 3 of the tuple.T4f4Field 4 of the tuple.T5f5Field 5 of the tuple.T6f6Field 6 of the tuple.T7f7Field 7 of the tuple.T8f8Field 8 of the tuple.T9f9Field 9 of the tuple.
-
Constructor Summary
Constructors Constructor Description Tuple14()Creates a new tuple where all fields are null.Tuple14(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13)Creates a new tuple and assigns the given values to the tuple's fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>copy()Shallow tuple copy.booleanequals(Object o)Deep equality for tuples by calling equals() on the tuple members.intgetArity()Gets the number of field in the tuple (the tuple arity).<T> TgetField(int pos)Gets the field at the specified position.inthashCode()static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>
Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>of(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13)Creates a new tuple and assigns the given values to the tuple's fields.<T> voidsetField(T value, int pos)Sets the field at the specified position.voidsetFields(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13)Sets new values to all fields of the tuple.StringtoString()Creates a string representation of the tuple in the form (f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13), where the individual fields are the value returned by callingObject.toString()on that field.-
Methods inherited from class org.apache.flink.api.java.tuple.Tuple
getFieldNotNull, getTupleClass, newInstance
-
-
-
-
Field Detail
-
f0
public T0 f0
Field 0 of the tuple.
-
f1
public T1 f1
Field 1 of the tuple.
-
f2
public T2 f2
Field 2 of the tuple.
-
f3
public T3 f3
Field 3 of the tuple.
-
f4
public T4 f4
Field 4 of the tuple.
-
f5
public T5 f5
Field 5 of the tuple.
-
f6
public T6 f6
Field 6 of the tuple.
-
f7
public T7 f7
Field 7 of the tuple.
-
f8
public T8 f8
Field 8 of the tuple.
-
f9
public T9 f9
Field 9 of the tuple.
-
f10
public T10 f10
Field 10 of the tuple.
-
f11
public T11 f11
Field 11 of the tuple.
-
f12
public T12 f12
Field 12 of the tuple.
-
f13
public T13 f13
Field 13 of the tuple.
-
-
Constructor Detail
-
Tuple14
public Tuple14()
Creates a new tuple where all fields are null.
-
Tuple14
public Tuple14(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13)
Creates a new tuple and assigns the given values to the tuple's fields.- Parameters:
f0- The value for field 0f1- The value for field 1f2- The value for field 2f3- The value for field 3f4- The value for field 4f5- The value for field 5f6- The value for field 6f7- The value for field 7f8- The value for field 8f9- The value for field 9f10- The value for field 10f11- The value for field 11f12- The value for field 12f13- The value for field 13
-
-
Method Detail
-
getArity
public int getArity()
Description copied from class:TupleGets the number of field in the tuple (the tuple arity).
-
getField
public <T> T getField(int pos)
Description copied from class:TupleGets the field at the specified position.
-
setField
public <T> void setField(T value, int pos)Description copied from class:TupleSets the field at the specified position.
-
setFields
public void setFields(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13)
Sets new values to all fields of the tuple.- Parameters:
f0- The value for field 0f1- The value for field 1f2- The value for field 2f3- The value for field 3f4- The value for field 4f5- The value for field 5f6- The value for field 6f7- The value for field 7f8- The value for field 8f9- The value for field 9f10- The value for field 10f11- The value for field 11f12- The value for field 12f13- The value for field 13
-
toString
public String toString()
Creates a string representation of the tuple in the form (f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13), where the individual fields are the value returned by callingObject.toString()on that field.
-
equals
public boolean equals(Object o)
Deep equality for tuples by calling equals() on the tuple members.
-
copy
public Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> copy()
Shallow tuple copy.
-
of
public static <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> of(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5, T6 f6, T7 f7, T8 f8, T9 f9, T10 f10, T11 f11, T12 f12, T13 f13)
Creates a new tuple and assigns the given values to the tuple's fields. This is more convenient than using the constructor, because the compiler can infer the generic type arguments implicitly. For example:Tuple3.of(n, x, s)instead ofnew Tuple3<Integer, Double, String>(n, x, s)
-
-