Package org.apache.iotdb.tsfile.utils
Class Binary
- java.lang.Object
-
- org.apache.iotdb.tsfile.utils.Binary
-
- All Implemented Interfaces:
Serializable,Comparable<Binary>
public class Binary extends Object implements Comparable<Binary>, Serializable
Override compareTo() and equals() function to Binary class. This class is used to accept Java String type- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BinaryEMPTY_VALUE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Binary other)booleanequals(Object other)intgetLength()get length.StringgetStringValue(Charset charset)byte[]getValues()inthashCode()voidsetValues(byte[] values)StringtoString()
-
-
-
Field Detail
-
EMPTY_VALUE
public static final Binary EMPTY_VALUE
-
-
Method Detail
-
compareTo
public int compareTo(Binary other)
- Specified by:
compareToin interfaceComparable<Binary>
-
getLength
public int getLength()
get length.- Returns:
- length
-
getValues
public byte[] getValues()
-
setValues
public void setValues(byte[] values)
-
-