Package org.apache.druid.data.input
Class StringTuple
- java.lang.Object
-
- org.apache.druid.data.input.StringTuple
-
- All Implemented Interfaces:
Comparable<StringTuple>
public class StringTuple extends Object implements Comparable<StringTuple>
Represents a tuple of String values, typically used to represent (single-valued) dimension values for an InputRow.
-
-
Constructor Summary
Constructors Constructor Description StringTuple(String[] values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(StringTuple that)static StringTuplecreate(String... values)booleanequals(Object o)static StringfirstOrNull(StringTuple tuple)Gets the first String from the given StringTuple if the tuple is non-null and non-empty, null otherwise.Stringget(int index)inthashCode()intsize()String[]toArray()StringtoString()
-
-
-
Constructor Detail
-
StringTuple
public StringTuple(String[] values)
-
-
Method Detail
-
create
public static StringTuple create(String... values)
-
firstOrNull
public static String firstOrNull(StringTuple tuple)
Gets the first String from the given StringTuple if the tuple is non-null and non-empty, null otherwise.
-
get
public String get(int index)
-
size
public int size()
-
toArray
public String[] toArray()
-
compareTo
public int compareTo(StringTuple that)
- Specified by:
compareToin interfaceComparable<StringTuple>
-
-