Package org.apache.bookkeeper.metastore
Class Value
- java.lang.Object
-
- org.apache.bookkeeper.metastore.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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value
clearFields()
boolean
equals(java.lang.Object o)
byte[]
getField(java.lang.String field)
java.util.Set<java.lang.String>
getFields()
java.util.Map<java.lang.String,byte[]>
getFieldsMap()
int
hashCode()
Value
merge(Value other)
Merge other value.Value
project(java.util.Set<java.lang.String> fields)
Select parts of fields.Value
setField(java.lang.String field, byte[] data)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-