Package org.apache.trevni
Class MetaData<T extends MetaData>
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
byte[]>
- Direct Known Subclasses:
ColumnFileMetaData
,ColumnMetaData
Base class for metadata.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(String key) Return true iff a key has any value, false if it is not present.Return the checksum algorithm name.getCodec()
Return the compression codec name.long
Return the value of a metadata property as a long.Return the value of a metadata property as a String.static boolean
isReserved
(String key) Test if a metadata key is reserved.Set a metadata property to a binary value.Set a metadata property to a long value.Set a metadata property to a String value.setChecksum
(String checksum) Set the checksum algorithm name.Set the compression codec name.toString()
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
MetaData
public MetaData()
-
-
Method Details
-
getCodec
Return the compression codec name. -
setCodec
Set the compression codec name. -
getChecksum
Return the checksum algorithm name. -
setChecksum
Set the checksum algorithm name. -
getString
Return the value of a metadata property as a String. -
getLong
Return the value of a metadata property as a long. -
getBoolean
Return true iff a key has any value, false if it is not present. -
set
Set a metadata property to a binary value. -
isReserved
Test if a metadata key is reserved. -
set
Set a metadata property to a String value. -
set
Set a metadata property to a long value. -
toString
- Overrides:
toString
in classAbstractMap<String,
byte[]>
-