Package io.debezium.document
Class BinaryValue
java.lang.Object
io.debezium.document.BinaryValue
- All Implemented Interfaces:
Value,Comparable<Value>
A specialization of
Value that represents a binary value.- Author:
- Randall Hauch
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.document.Value
Value.NullHandler, Value.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasArray()byte[]asBytes()asDouble()asFloat()asLong()asNumber()asObject()Get the raw value.asString()clone()Obtain a clone of this value.intconvert()Get a Value representation that will convert attempt to convert values.booleangetType()inthashCode()booleanisArray()booleanbooleanbooleanisBinary()booleanbooleanbooleanisDouble()booleanisFloat()booleanbooleanisLong()booleanisNull()booleanisNumber()booleanisString()toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.document.Value
comparable, ifArray, ifBigDecimal, ifBigInteger, ifBinary, ifBoolean, ifDocument, ifDouble, ifFloat, ifInteger, ifLong, ifNull, ifString, isNotNull
-
Field Details
-
value
private final byte[] value
-
-
Constructor Details
-
BinaryValue
BinaryValue(byte[] value)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Value>
-
getType
-
asObject
Description copied from interface:ValueGet the raw value. -
asString
-
asInteger
-
asLong
-
asBoolean
-
asNumber
-
asBigInteger
- Specified by:
asBigIntegerin interfaceValue
-
asBigDecimal
- Specified by:
asBigDecimalin interfaceValue
-
asFloat
-
asDouble
-
asBytes
public byte[] asBytes() -
asDocument
- Specified by:
asDocumentin interfaceValue
-
asArray
-
isNull
public boolean isNull() -
isString
public boolean isString() -
isBoolean
public boolean isBoolean() -
isInteger
public boolean isInteger() -
isLong
public boolean isLong() -
isFloat
public boolean isFloat() -
isDouble
public boolean isDouble() -
isNumber
public boolean isNumber() -
isBigInteger
public boolean isBigInteger()- Specified by:
isBigIntegerin interfaceValue
-
isBigDecimal
public boolean isBigDecimal()- Specified by:
isBigDecimalin interfaceValue
-
isBinary
public boolean isBinary() -
isDocument
public boolean isDocument()- Specified by:
isDocumentin interfaceValue
-
isArray
public boolean isArray() -
convert
Description copied from interface:ValueGet a Value representation that will convert attempt to convert values. -
clone
Description copied from interface:ValueObtain a clone of this value.
-