Package org.apache.storm.tuple
Class Fields
- java.lang.Object
-
- org.apache.storm.tuple.Fields
-
- All Implemented Interfaces:
Serializable
,Iterable<String>
public class Fields extends Object implements Iterable<String>, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String field)
Returns true if this contains the specified name of the field.int
fieldIndex(String field)
Returns the position of the specified field.String
get(int index)
org.apache.heron.api.tuple.Fields
getDelegate()
Iterator<String>
iterator()
List<Object>
select(Fields selector, List<Object> tuple)
int
size()
List<String>
toList()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
size
public int size()
-
get
public String get(int index)
-
fieldIndex
public int fieldIndex(String field)
Returns the position of the specified field.
-
contains
public boolean contains(String field)
Returns true if this contains the specified name of the field.
-
getDelegate
public org.apache.heron.api.tuple.Fields getDelegate()
-
-