public class MetaData<T extends MetaData> extends LinkedHashMap<String,byte[]>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MetaData() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String key)
Return true iff a key has any value, false if it is not present.
|
String |
getChecksum()
Return the checksum algorithm name.
|
String |
getCodec()
Return the compression codec name.
|
long |
getLong(String key)
Return the value of a metadata property as a long.
|
String |
getString(String key)
Return the value of a metadata property as a String.
|
static boolean |
isReserved(String key)
Test if a metadata key is reserved.
|
T |
set(String key,
byte[] value)
Set a metadata property to a binary value.
|
T |
set(String key,
long value)
Set a metadata property to a long value.
|
T |
set(String key,
String value)
Set a metadata property to a String value.
|
T |
setChecksum(String checksum)
Set the checksum algorithm name.
|
T |
setCodec(String codec)
Set the compression codec name.
|
String |
toString() |
clear, containsValue, get, removeEldestEntry
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode
public static final Charset UTF8
public String getCodec()
public String getChecksum()
public long getLong(String key)
public boolean getBoolean(String key)
public static boolean isReserved(String key)
public String toString()
toString
in class AbstractMap<String,byte[]>
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.