backtype.storm.tuple
Class Fields

java.lang.Object
  extended by backtype.storm.tuple.Fields
All Implemented Interfaces:
Serializable, Iterable<String>

public class Fields
extends Object
implements Iterable<String>, Serializable

See Also:
Serialized Form

Constructor Summary
Fields(List<String> fields)
           
Fields(String... fields)
           
 
Method Summary
 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)
           
 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
 

Constructor Detail

Fields

public Fields(String... fields)

Fields

public Fields(List<String> fields)
Method Detail

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.