Package org.apache.iotdb.pipe.api.type
Class Binary
java.lang.Object
org.apache.iotdb.pipe.api.type.Binary
- All Implemented Interfaces:
Serializable,Comparable<Binary>
Override compareTo() and equals() function to Binary class. This class is used to accept Java
String type
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
STRING_ENCODING
- See Also:
-
STRING_CHARSET
-
-
Constructor Details
-
Binary
public Binary(byte[] v) if the bytes v is modified, the modification is visible to this binary. -
Binary
-
-
Method Details
-
valueOf
-
compareTo
- Specified by:
compareToin interfaceComparable<Binary>
-
equals
-
hashCode
public int hashCode() -
getLength
public int getLength()Get length of values. Returns -1 if values is null.- Returns:
- length
-
isNull
public boolean isNull() -
getStringValue
-
getTextEncodingType
-
toString
-
getValues
public byte[] getValues() -
stringToBytes
convert string to byte array using UTF-8 encoding.- Parameters:
str- input string- Returns:
- byte array
-