Package org.apache.flink.api.java.tuple
Class Tuple0
- java.lang.Object
-
- org.apache.flink.api.java.tuple.Tuple
-
- org.apache.flink.api.java.tuple.Tuple0
-
- All Implemented Interfaces:
Serializable
@Public public class Tuple0 extends Tuple
A tuple with 0 fields.The Tuple0 is a soft singleton, i.e., there is a "singleton" instance, but it does not prevent creation of additional instances.
- See Also:
Tuple
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tuple0()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tuple0
copy()
Shallow tuple copy.boolean
equals(Object o)
Deep equality for tuples by calling equals() on the tuple members.int
getArity()
Gets the number of field in the tuple (the tuple arity).<T> T
getField(int pos)
Gets the field at the specified position.int
hashCode()
<T> void
setField(T value, int pos)
Sets the field at the specified position.String
toString()
Creates a string representation of the tuple in the form "()".-
Methods inherited from class org.apache.flink.api.java.tuple.Tuple
getFieldNotNull, getTupleClass, newInstance
-
-
-
-
Field Detail
-
INSTANCE
public static final Tuple0 INSTANCE
-
-
Method Detail
-
getArity
public int getArity()
Description copied from class:Tuple
Gets the number of field in the tuple (the tuple arity).
-
getField
public <T> T getField(int pos)
Description copied from class:Tuple
Gets the field at the specified position.
-
setField
public <T> void setField(T value, int pos)
Description copied from class:Tuple
Sets the field at the specified position.
-
copy
public Tuple0 copy()
Shallow tuple copy.
-
toString
public String toString()
Creates a string representation of the tuple in the form "()".
-
equals
public boolean equals(Object o)
Deep equality for tuples by calling equals() on the tuple members.
-
-