storm.trident.testing
Class MockTridentTuple
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Object>
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
| 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 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 |
MockTridentTuple
public MockTridentTuple(List<String> fieldNames,
List<?> values)
MockTridentTuple
public MockTridentTuple(List<String> fieldName,
Object... values)
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.