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) |
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-2017 Apache Software Foundation. All Rights Reserved.