RECORD - Writable record to be serialized along with stageNamepublic class TaggedWritable<RECORD extends Writable> extends Object implements WritableComparable<TaggedWritable<RECORD>>, Configurable
| Constructor and Description |
|---|
TaggedWritable() |
TaggedWritable(String stageName,
RECORD record) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TaggedWritable o) |
boolean |
equals(Object o) |
Configuration |
getConf() |
RECORD |
getRecord() |
String |
getStageName() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setConf(Configuration conf) |
void |
setRecord(RECORD record) |
void |
setStageName(String stageName) |
void |
write(DataOutput out) |
public String getStageName()
public RECORD getRecord()
public void setStageName(String stageName)
public void setRecord(RECORD record)
public int compareTo(TaggedWritable o)
compareTo in interface Comparable<TaggedWritable<RECORD extends Writable>>public void write(DataOutput out) throws IOException
write in interface WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface WritableIOExceptionpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface ConfigurableCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.