@InterfaceAudience.Public @InterfaceStability.Evolving public class OrderedInt8 extends OrderedBytesBase<Byte>
byte of 8-bits using a fixed-length encoding. Built on
 OrderedBytes.encodeInt8(PositionedByteRange, byte, Order).| Modifier and Type | Field and Description | 
|---|---|
| static OrderedInt8 | ASCENDING | 
| static OrderedInt8 | DESCENDING | 
order| Modifier | Constructor and Description | 
|---|---|
| protected  | OrderedInt8(Order order) | 
| Modifier and Type | Method and Description | 
|---|---|
| Byte | decode(PositionedByteRange src)Read an instance of  Tfrom the buffersrc. | 
| byte | decodeByte(PositionedByteRange src)Read a  bytevalue from the buffersrc. | 
| int | encode(PositionedByteRange dst,
      Byte val)Write instance  valinto bufferdst. | 
| int | encodeByte(PositionedByteRange dst,
          byte val)Write instance  valinto bufferdst. | 
| Class<Byte> | encodedClass()Inform consumers over what type this  DataTypeoperates. | 
| int | encodedLength(Byte val)Inform consumers how long the encoded  byte[]will be. | 
| boolean | isNullable()Indicates whether this instance supports encoding null values. | 
getOrder, isOrderPreserving, isSkippable, skippublic static final OrderedInt8 ASCENDING
public static final OrderedInt8 DESCENDING
protected OrderedInt8(Order order)
public boolean isNullable()
DataTypeDataTypes that support null should treat null as comparing
 less than any non-null value for default sort ordering purposes.isNullable in interface DataType<Byte>isNullable in class OrderedBytesBase<Byte>true when null is supported, false otherwise.public int encodedLength(Byte val)
DataTypebyte[] will be.val - The value to check.val.apublic Class<Byte> encodedClass()
DataTypeDataType operates. Useful
 when working with bare DataType instances.public Byte decode(PositionedByteRange src)
DataTypeT from the buffer src.src - the buffer containing the encoded value.public int encode(PositionedByteRange dst, Byte val)
DataTypeval into buffer dst.dst - the buffer containing the encoded value.val - the value to encode onto dst.public byte decodeByte(PositionedByteRange src)
byte value from the buffer src.public int encodeByte(PositionedByteRange dst, byte val)
val into buffer dst.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.