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, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic 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–2020 The Apache Software Foundation. All rights reserved.