public class MetaWrapper extends NutchWritable
Constructor and Description |
---|
MetaWrapper() |
MetaWrapper(Metadata metadata,
org.apache.hadoop.io.Writable instance,
org.apache.hadoop.conf.Configuration conf) |
MetaWrapper(org.apache.hadoop.io.Writable instance,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addMeta(String name,
String value)
Add metadata.
|
String |
getMeta(String name)
Get metadata.
|
Metadata |
getMetadata()
Get all metadata.
|
String[] |
getMetaValues(String name)
Get multiple metadata.
|
void |
readFields(DataInput in) |
void |
setMeta(String name,
String value)
Set metadata.
|
void |
write(DataOutput out) |
getTypes
getConf, setConf
public MetaWrapper()
public MetaWrapper(org.apache.hadoop.io.Writable instance, org.apache.hadoop.conf.Configuration conf)
public MetaWrapper(Metadata metadata, org.apache.hadoop.io.Writable instance, org.apache.hadoop.conf.Configuration conf)
public Metadata getMetadata()
public void addMeta(String name, String value)
Metadata.add(String, String)
for more information.name
- metadata namevalue
- metadata valuepublic void setMeta(String name, String value)
Metadata.set(String, String)
for more information.name
- value
- public String getMeta(String name)
Metadata.get(String)
for more information.name
- public String[] getMetaValues(String name)
Metadata.getValues(String)
for more information.name
- public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class GenericWritableConfigurable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.io.GenericWritable
IOException
Copyright © 2014 The Apache Software Foundation