Package io.debezium.document
Class BinaryValue
- java.lang.Object
-
- io.debezium.document.BinaryValue
-
- All Implemented Interfaces:
Value,Comparable<Value>
@Immutable final class BinaryValue extends Object implements Value
A specialization ofValuethat 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 Modifier and Type Field Description private byte[]value
-
Constructor Summary
Constructors Constructor Description BinaryValue(byte[] value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayasArray()BigDecimalasBigDecimal()BigIntegerasBigInteger()BooleanasBoolean()byte[]asBytes()DocumentasDocument()DoubleasDouble()FloatasFloat()IntegerasInteger()LongasLong()NumberasNumber()ObjectasObject()Get the raw value.StringasString()Valueclone()Obtain a clone of this value.intcompareTo(Value that)Valueconvert()Get a Value representation that will convert attempt to convert values.booleanequals(Object obj)Value.TypegetType()inthashCode()booleanisArray()booleanisBigDecimal()booleanisBigInteger()booleanisBinary()booleanisBoolean()booleanisDocument()booleanisDouble()booleanisFloat()booleanisInteger()booleanisLong()booleanisNull()booleanisNumber()booleanisString()StringtoString()-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.debezium.document.Value
comparable, ifArray, ifBigDecimal, ifBigInteger, ifBinary, ifBoolean, ifDocument, ifDouble, ifFloat, ifInteger, ifLong, ifNull, ifString, isNotNull
-
-
-
-
Method Detail
-
compareTo
public int compareTo(Value that)
- Specified by:
compareToin interfaceComparable<Value>
-
getType
public Value.Type getType()
-
asBigInteger
public BigInteger asBigInteger()
- Specified by:
asBigIntegerin interfaceValue
-
asBigDecimal
public BigDecimal asBigDecimal()
- Specified by:
asBigDecimalin interfaceValue
-
asDocument
public Document asDocument()
- Specified by:
asDocumentin interfaceValue
-
isBigInteger
public boolean isBigInteger()
- Specified by:
isBigIntegerin interfaceValue
-
isBigDecimal
public boolean isBigDecimal()
- Specified by:
isBigDecimalin interfaceValue
-
isDocument
public boolean isDocument()
- Specified by:
isDocumentin interfaceValue
-
convert
public Value convert()
Description copied from interface:ValueGet a Value representation that will convert attempt to convert values.
-
-