public class TupleImpl extends Object implements Tuple
TupleElement
.
This implementation prefers index-based access.
A Tuple instance is constructed by a TupleFactory.
The TupleElemets are shared across all the tuple instances.Modifier and Type | Method and Description |
---|---|
Object |
get(int i) |
<X> X |
get(int i,
Class<X> type) |
Object |
get(String alias) |
<X> X |
get(String alias,
Class<X> type) |
<X> X |
get(TupleElement<X> tupleElement) |
List<TupleElement<?>> |
getElements() |
void |
put(Integer key,
Object value)
Put the value at the given key index.
|
Object[] |
toArray() |
public static Method PUT
public <X> X get(TupleElement<X> tupleElement)
public List<TupleElement<?>> getElements()
getElements
in interface Tuple
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.