@Internal
public interface BinaryFormat
MemorySegments.| 限定符和类型 | 字段和说明 |
|---|---|
static long |
HIGHEST_FIRST_BIT
To get the mark in highest bit of long.
|
static long |
HIGHEST_SECOND_TO_EIGHTH_BIT
To get the 7 bits length in second bit to eighth bit out of a long.
|
static int |
MAX_FIX_PART_DATA_SIZE
It decides whether to put data in FixLenPart or VarLenPart.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getOffset()
Gets the start offset of this binary data in the
MemorySegments. |
org.apache.flink.core.memory.MemorySegment[] |
getSegments()
Gets the underlying
MemorySegments this binary format spans. |
int |
getSizeInBytes()
Gets the size in bytes of this binary data.
|
static final int MAX_FIX_PART_DATA_SIZE
BinaryRowData.
If len is less than 8, its binary format is: 1-bit mark(1) = 1, 7-bits len, and 7-bytes data. Data is stored in fix-length part.
If len is greater or equal to 8, its binary format is: 1-bit mark(1) = 0, 31-bits offset to the data, and 4-bytes length of data. Data is stored in variable-length part.
static final long HIGHEST_FIRST_BIT
This is used to decide whether the data is stored in fixed-length part or variable-length
part. see MAX_FIX_PART_DATA_SIZE for more information.
static final long HIGHEST_SECOND_TO_EIGHTH_BIT
This is used to get the length of the data which is stored in this long.
see MAX_FIX_PART_DATA_SIZE for more information.
org.apache.flink.core.memory.MemorySegment[] getSegments()
MemorySegments this binary format spans.int getOffset()
MemorySegments.int getSizeInBytes()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.