Class Value


  • public class Value
    extends java.lang.Object
    A metastore value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​byte[]> fields  
    • Constructor Summary

      Constructors 
      Constructor Description
      Value()  
      Value​(Value v)  
    • Field Detail

      • fields

        protected java.util.Map<java.lang.String,​byte[]> fields
    • Constructor Detail

      • Value

        public Value()
      • Value

        public Value​(Value v)
    • Method Detail

      • getField

        public byte[] getField​(java.lang.String field)
      • setField

        public Value setField​(java.lang.String field,
                              byte[] data)
      • clearFields

        public Value clearFields()
      • getFields

        public java.util.Set<java.lang.String> getFields()
      • getFieldsMap

        public java.util.Map<java.lang.String,​byte[]> getFieldsMap()
      • project

        public Value project​(java.util.Set<java.lang.String> fields)
        Select parts of fields.
        Parameters:
        fields - Parts of fields
        Returns:
        new value with specified fields
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • merge

        public Value merge​(Value other)
        Merge other value.
        Parameters:
        other - Other Value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object