Class BinarySection
- java.lang.Object
-
- org.apache.flink.table.data.binary.BinarySection
-
- All Implemented Interfaces:
BinaryFormat
- Direct Known Subclasses:
BinaryArrayData,BinaryMapData,BinaryRowData,NestedRowData
@Internal public class BinarySection extends Object implements BinaryFormat
A basic implementation ofBinaryFormatwhich describe a section of memory.
-
-
Field Summary
Fields Modifier and Type Field Description protected intoffsetprotected org.apache.flink.core.memory.MemorySegment[]segmentsprotected intsizeInBytes-
Fields 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
Constructors Constructor Description BinarySection()BinarySection(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetOffset()Gets the start offset of this binary data in theMemorySegments.org.apache.flink.core.memory.MemorySegment[]getSegments()Gets the underlyingMemorySegments this binary format spans.intgetSizeInBytes()Gets the size in bytes of this binary data.inthashCode()voidpointTo(org.apache.flink.core.memory.MemorySegment[] segments, int offset, int sizeInBytes)voidpointTo(org.apache.flink.core.memory.MemorySegment segment, int offset, int sizeInBytes)
-
-
-
Method Detail
-
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
-
-