public class MetaWrapper extends NutchWritable
| Constructor and Description |
|---|
MetaWrapper() |
MetaWrapper(Metadata metadata,
Writable instance,
Configuration conf) |
MetaWrapper(Writable instance,
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) |
getTypesgetConf, setConfget, set, toStringpublic MetaWrapper()
public MetaWrapper(Writable instance, Configuration conf)
public MetaWrapper(Metadata metadata, Writable instance, 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 WritablereadFields in class GenericWritableConfigurableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface Writablewrite in class GenericWritableIOExceptionCopyright © 2021 The Apache Software Foundation