public class Tuple extends Object implements Cloneable, MapWriter
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
boolean |
EOF
When EOF field is true the Tuple marks the end of the stream.
|
boolean |
EXCEPTION |
Map<String,String> |
fieldLabels |
List<String> |
fieldNames |
Map |
fields |
Modifier and Type | Method and Description |
---|---|
Tuple |
clone() |
Object |
get(Object key) |
Boolean |
getBool(Object key) |
List<Boolean> |
getBools(Object key) |
Date |
getDate(Object key) |
List<Date> |
getDates(Object key) |
Double |
getDouble(Object key) |
List<Double> |
getDoubles(Object key) |
String |
getException() |
Long |
getLong(Object key) |
List<Long> |
getLongs(Object key) |
Map |
getMap() |
List<Map> |
getMaps(Object key) |
Map<String,Map> |
getMetrics() |
String |
getString(Object key) |
List<String> |
getStrings(Object key) |
void |
merge(Tuple other) |
void |
put(Object key,
Object value) |
void |
remove(Object key) |
void |
setMaps(Object key,
List<Map> maps) |
void |
setMetrics(Map<String,Map> metrics) |
void |
writeMap(MapWriter.EntryWriter ew) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
public boolean EOF
public boolean EXCEPTION
public Map fields
public Tuple()
public Tuple(Map fields)
public void remove(Object key)
public String getException()
public Map getMap()
public void merge(Tuple other)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.