Class BinarySection
java.lang.Object
org.apache.flink.table.data.binary.BinarySection
- All Implemented Interfaces:
BinaryFormat
- Direct Known Subclasses:
BinaryArrayData,BinaryMapData,BinaryRowData,NestedRowData
A basic implementation of
BinaryFormat which describe a section of memory.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected org.apache.flink.core.memory.MemorySegment[]protected intFields inherited from interface org.apache.flink.table.data.binary.BinaryFormat
HIGHEST_FIRST_BIT, HIGHEST_SECOND_TO_EIGHTH_BIT, MAX_FIX_PART_DATA_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBinarySection(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the start offset of this binary data in theMemorySegments.org.apache.flink.core.memory.MemorySegment[]Gets the underlyingMemorySegments this binary format spans.intGets the size in bytes of this binary data.inthashCode()voidpointTo(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes) final voidpointTo(org.apache.flink.core.memory.MemorySegment segment, int offset, int sizeInBytes)
-
Field Details
-
segments
protected org.apache.flink.core.memory.MemorySegment[] segments -
offset
protected int offset -
sizeInBytes
protected int sizeInBytes
-
-
Constructor Details
-
BinarySection
public BinarySection() -
BinarySection
public BinarySection(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes)
-
-
Method Details
-
pointTo
public final void pointTo(org.apache.flink.core.memory.MemorySegment segment, int offset, int sizeInBytes) -
pointTo
public void pointTo(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes) -
getSegments
public org.apache.flink.core.memory.MemorySegment[] getSegments()Description copied from interface:BinaryFormatGets the underlyingMemorySegments this binary format spans.- Specified by:
getSegmentsin interfaceBinaryFormat
-
getOffset
public int getOffset()Description copied from interface:BinaryFormatGets the start offset of this binary data in theMemorySegments.- Specified by:
getOffsetin interfaceBinaryFormat
-
getSizeInBytes
public int getSizeInBytes()Description copied from interface:BinaryFormatGets the size in bytes of this binary data.- Specified by:
getSizeInBytesin interfaceBinaryFormat
-
equals
-
hashCode
public int hashCode()
-