Class MetaData<T extends MetaData>

All Implemented Interfaces:
Serializable, Cloneable, Map<String,byte[]>
Direct Known Subclasses:
ColumnFileMetaData, ColumnMetaData

public class MetaData<T extends MetaData> extends LinkedHashMap<String,byte[]>
Base class for metadata.
See Also:
  • Constructor Details

    • MetaData

      public MetaData()
  • Method Details

    • getCodec

      public String getCodec()
      Return the compression codec name.
    • setCodec

      public T setCodec(String codec)
      Set the compression codec name.
    • getChecksum

      public String getChecksum()
      Return the checksum algorithm name.
    • setChecksum

      public T setChecksum(String checksum)
      Set the checksum algorithm name.
    • getString

      public String getString(String key)
      Return the value of a metadata property as a String.
    • getLong

      public long getLong(String key)
      Return the value of a metadata property as a long.
    • getBoolean

      public boolean getBoolean(String key)
      Return true iff a key has any value, false if it is not present.
    • set

      public T set(String key, byte[] value)
      Set a metadata property to a binary value.
    • isReserved

      public static boolean isReserved(String key)
      Test if a metadata key is reserved.
    • set

      public T set(String key, String value)
      Set a metadata property to a String value.
    • set

      public T set(String key, long value)
      Set a metadata property to a long value.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractMap<String,byte[]>