Package org.apache.hadoop.hbase.types
Class OrderedInt64
A 
long of 64-bits using a fixed-length encoding. Built on
 OrderedBytes.encodeInt64(PositionedByteRange, long, Order).- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final OrderedInt64Deprecated.since 3.0.0 and will be removed in 4.0.0static final OrderedInt64Deprecated.since 3.0.0 and will be removed in 4.0.0Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBaseorder
- 
Constructor SummaryConstructorsConstructorDescriptionOrderedInt64(Order order) Creates a new 64-bitlongwith a fixed-length encoding.
- 
Method SummaryModifier and TypeMethodDescriptionRead an instance ofTfrom the buffersrc.longRead alongvalue from the buffersrc.intencode(PositionedByteRange dst, Long val) Write instancevalinto bufferdst.Inform consumers over what type thisDataTypeoperates.intencodedLength(Long val) Inform consumers how long the encodedbyte[]will be.intencodeLong(PositionedByteRange dst, long val) Write instancevalinto bufferdst.booleanIndicates whether this instance supports encoding null values.Methods inherited from class org.apache.hadoop.hbase.types.OrderedBytesBasegetOrder, isOrderPreserving, isSkippable, skip
- 
Field Details- 
ASCENDINGDeprecated.since 3.0.0 and will be removed in 4.0.0
- 
DESCENDINGDeprecated.since 3.0.0 and will be removed in 4.0.0
 
- 
- 
Constructor Details- 
OrderedInt64Creates a new 64-bitlongwith a fixed-length encoding.- Parameters:
- order- the- Orderto use
 
 
- 
- 
Method Details- 
isNullableDescription copied from interface:DataTypeIndicates whether this instance supports encoding null values. This depends on the implementation details of the encoding format. AllDataTypes that support null should treat null as comparing less than any non-null value for default sort ordering purposes.- Specified by:
- isNullablein interface- DataType<Long>
- Overrides:
- isNullablein class- OrderedBytesBase<Long>
- Returns:
- truewhen null is supported,- falseotherwise.
 
- 
encodedLengthDescription copied from interface:DataTypeInform consumers how long the encodedbyte[]will be.- Parameters:
- val- The value to check.
- Returns:
- the number of bytes required to encode val.a
 
- 
encodedClassDescription copied from interface:DataTypeInform consumers over what type thisDataTypeoperates. Useful when working with bareDataTypeinstances.
- 
decodeDescription copied from interface:DataTypeRead an instance ofTfrom the buffersrc.- Parameters:
- src- the buffer containing the encoded value.
 
- 
encodeDescription copied from interface:DataTypeWrite instancevalinto bufferdst.- Parameters:
- dst- the buffer containing the encoded value.
- val- the value to encode onto- dst.
- Returns:
- number of bytes written.
 
- 
decodeLongRead alongvalue from the buffersrc.- Parameters:
- src- the- PositionedByteRangeto read the- longfrom
- Returns:
- the longread from the buffer
 
- 
encodeLongWrite instancevalinto bufferdst.- Parameters:
- dst- the- PositionedByteRangeto write to
- val- the value to write to- dst
- Returns:
- the number of bytes written
 
 
-