Class DecimalSchema
java.lang.Object
io.dingodb.sdk.common.serial.schema.DecimalSchema
- All Implemented Interfaces:
DingoSchema<String>
-
Field Summary
Fields inherited from interface io.dingodb.sdk.common.serial.schema.DingoSchema
NOTNULL, NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeKeyPrefix(Buf buf) decodeKeyV2(Buf buf) decodeValue(Buf buf) decodeValueV2(Buf buf) voidvoidencodeKeyForUpdate(Buf buf, String data) voidencodeKeyForUpdateV2(Buf buf, String data) voidencodeKeyPrefix(Buf buf, String data) voidencodeKeyV2(Buf buf, String data) voidencodeValue(Buf buf, String data) intencodeValueV2(Buf buf, String data) intgetIndex()intlonglonggetScale()getType()intintbooleanbooleanisKey()voidsetAllowNull(boolean allowNull) voidsetIndex(int index) voidsetIsKey(boolean isKey) voidsetPrecision(long precision) voidsetScale(long scale) voidvoidvoidvoidskipValueV2(Buf buf)
-
Constructor Details
-
DecimalSchema
public DecimalSchema() -
DecimalSchema
public DecimalSchema(int index)
-
-
Method Details
-
getPrecision
public long getPrecision()- Specified by:
getPrecisionin interfaceDingoSchema<String>
-
getScale
public long getScale()- Specified by:
getScalein interfaceDingoSchema<String>
-
setPrecision
public void setPrecision(long precision) - Specified by:
setPrecisionin interfaceDingoSchema<String>
-
setScale
public void setScale(long scale) - Specified by:
setScalein interfaceDingoSchema<String>
-
getType
- Specified by:
getTypein interfaceDingoSchema<String>
-
setIndex
public void setIndex(int index) - Specified by:
setIndexin interfaceDingoSchema<String>
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceDingoSchema<String>
-
setIsKey
public void setIsKey(boolean isKey) - Specified by:
setIsKeyin interfaceDingoSchema<String>
-
isKey
public boolean isKey()- Specified by:
isKeyin interfaceDingoSchema<String>
-
getLength
public int getLength()- Specified by:
getLengthin interfaceDingoSchema<String>
-
getWithNullTagLength
public int getWithNullTagLength()- Specified by:
getWithNullTagLengthin interfaceDingoSchema<String>
-
getValueLengthV2
public int getValueLengthV2()- Specified by:
getValueLengthV2in interfaceDingoSchema<String>
-
setAllowNull
public void setAllowNull(boolean allowNull) - Specified by:
setAllowNullin interfaceDingoSchema<String>
-
isAllowNull
public boolean isAllowNull()- Specified by:
isAllowNullin interfaceDingoSchema<String>
-
encodeKey
- Specified by:
encodeKeyin interfaceDingoSchema<String>
-
encodeKeyV2
- Specified by:
encodeKeyV2in interfaceDingoSchema<String>
-
encodeKeyForUpdate
- Specified by:
encodeKeyForUpdatein interfaceDingoSchema<String>
-
encodeKeyForUpdateV2
- Specified by:
encodeKeyForUpdateV2in interfaceDingoSchema<String>
-
decodeKey
- Specified by:
decodeKeyin interfaceDingoSchema<String>
-
decodeKeyV2
- Specified by:
decodeKeyV2in interfaceDingoSchema<String>
-
decodeKeyPrefix
- Specified by:
decodeKeyPrefixin interfaceDingoSchema<String>
-
skipKey
- Specified by:
skipKeyin interfaceDingoSchema<String>
-
skipKeyV2
- Specified by:
skipKeyV2in interfaceDingoSchema<String>
-
encodeKeyPrefix
- Specified by:
encodeKeyPrefixin interfaceDingoSchema<String>
-
encodeValue
- Specified by:
encodeValuein interfaceDingoSchema<String>
-
encodeValueV2
- Specified by:
encodeValueV2in interfaceDingoSchema<String>
-
decodeValue
- Specified by:
decodeValuein interfaceDingoSchema<String>
-
decodeValueV2
- Specified by:
decodeValueV2in interfaceDingoSchema<String>
-
skipValue
- Specified by:
skipValuein interfaceDingoSchema<String>
-
skipValueV2
- Specified by:
skipValueV2in interfaceDingoSchema<String>
-