storm.trident.testing
Class MockTridentTuple

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Object>
              extended by storm.trident.testing.MockTridentTuple
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess, TridentTuple

public class MockTridentTuple
extends ArrayList<Object>
implements TridentTuple

A tuple intended for use in testing.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface storm.trident.tuple.TridentTuple
TridentTuple.Factory
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MockTridentTuple(List<String> fieldNames, List<?> values)
           
MockTridentTuple(List<String> fieldName, Object... values)
           
 
Method Summary
 byte[] getBinary(int i)
           
 byte[] getBinaryByField(String field)
           
 Boolean getBoolean(int i)
           
 Boolean getBooleanByField(String field)
           
 Byte getByte(int i)
           
 Byte getByteByField(String field)
           
 Double getDouble(int i)
           
 Double getDoubleByField(String field)
           
 Float getFloat(int i)
           
 Float getFloatByField(String field)
           
 Integer getInteger(int i)
           
 Integer getIntegerByField(String field)
           
 Long getLong(int i)
           
 Long getLongByField(String field)
           
 Short getShort(int i)
           
 Short getShortByField(String field)
           
 String getString(int i)
           
 String getStringByField(String field)
           
 Object getValue(int i)
           
 Object getValueByField(String field)
           
 List<Object> getValues()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

MockTridentTuple

public MockTridentTuple(List<String> fieldNames,
                        List<?> values)

MockTridentTuple

public MockTridentTuple(List<String> fieldName,
                        Object... values)
Method Detail

getValues

public List<Object> getValues()
Specified by:
getValues in interface TridentTuple

getValue

public Object getValue(int i)
Specified by:
getValue in interface TridentTuple

getString

public String getString(int i)
Specified by:
getString in interface TridentTuple

getInteger

public Integer getInteger(int i)
Specified by:
getInteger in interface TridentTuple

getLong

public Long getLong(int i)
Specified by:
getLong in interface TridentTuple

getBoolean

public Boolean getBoolean(int i)
Specified by:
getBoolean in interface TridentTuple

getShort

public Short getShort(int i)
Specified by:
getShort in interface TridentTuple

getByte

public Byte getByte(int i)
Specified by:
getByte in interface TridentTuple

getDouble

public Double getDouble(int i)
Specified by:
getDouble in interface TridentTuple

getFloat

public Float getFloat(int i)
Specified by:
getFloat in interface TridentTuple

getBinary

public byte[] getBinary(int i)
Specified by:
getBinary in interface TridentTuple

getValueByField

public Object getValueByField(String field)
Specified by:
getValueByField in interface TridentTuple

getStringByField

public String getStringByField(String field)
Specified by:
getStringByField in interface TridentTuple

getIntegerByField

public Integer getIntegerByField(String field)
Specified by:
getIntegerByField in interface TridentTuple

getLongByField

public Long getLongByField(String field)
Specified by:
getLongByField in interface TridentTuple

getBooleanByField

public Boolean getBooleanByField(String field)
Specified by:
getBooleanByField in interface TridentTuple

getShortByField

public Short getShortByField(String field)
Specified by:
getShortByField in interface TridentTuple

getByteByField

public Byte getByteByField(String field)
Specified by:
getByteByField in interface TridentTuple

getDoubleByField

public Double getDoubleByField(String field)
Specified by:
getDoubleByField in interface TridentTuple

getFloatByField

public Float getFloatByField(String field)
Specified by:
getFloatByField in interface TridentTuple

getBinaryByField

public byte[] getBinaryByField(String field)
Specified by:
getBinaryByField in interface TridentTuple


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.