backtype.storm.tuple
Class Fields
java.lang.Object
backtype.storm.tuple.Fields
- All Implemented Interfaces:
- Serializable, Iterable<String>
public class Fields
- extends Object
- implements Iterable<String>, Serializable
- See Also:
- Serialized Form
Fields
public Fields(String... fields)
Fields
public Fields(List<String> fields)
select
public List<Object> select(Fields selector,
List<Object> tuple)
toList
public List<String> toList()
size
public int size()
get
public String get(int index)
iterator
public Iterator<String> iterator()
- Specified by:
iterator in interface Iterable<String>
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.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.