| 程序包 | 说明 |
|---|---|
| org.apache.flink.runtime.io.network.buffer | |
| org.apache.flink.runtime.io.network.partition | |
| org.apache.flink.runtime.io.network.partition.consumer |
| 限定符和类型 | 方法和说明 |
|---|---|
Buffer.DataType |
BufferConsumer.getDataType() |
Buffer.DataType |
NetworkBuffer.getDataType() |
Buffer.DataType |
FileRegionBuffer.getDataType() |
Buffer.DataType |
ReadOnlySlicedNetworkBuffer.getDataType() |
Buffer.DataType |
Buffer.getDataType()
Gets the type of data this buffer represents.
|
static Buffer.DataType |
Buffer.DataType.getDataType(AbstractEvent event,
boolean hasPriority) |
static Buffer.DataType |
Buffer.DataType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Buffer.DataType[] |
Buffer.DataType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NetworkBuffer.setDataType(Buffer.DataType dataType) |
void |
FileRegionBuffer.setDataType(Buffer.DataType dataType) |
void |
ReadOnlySlicedNetworkBuffer.setDataType(Buffer.DataType dataType) |
void |
Buffer.setDataType(Buffer.DataType dataType)
Sets the type of data this buffer represents.
|
| 构造器和说明 |
|---|
FileRegionBuffer(FileChannel fileChannel,
long fileChannelPosition,
int bufferSize,
Buffer.DataType dataType,
boolean isCompressed) |
NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment,
BufferRecycler recycler,
Buffer.DataType dataType)
Creates a new buffer instance backed by the given memorySegment with 0 for
the readerIndex and writerIndex.
|
NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment,
BufferRecycler recycler,
Buffer.DataType dataType,
boolean isCompressed,
int size)
Creates a new buffer instance backed by the given memorySegment with 0 for
the readerIndex and size as writerIndex.
|
NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment,
BufferRecycler recycler,
Buffer.DataType dataType,
int size)
Creates a new buffer instance backed by the given memorySegment with 0 for
the readerIndex and size as writerIndex.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Buffer.DataType |
ResultSubpartition.BufferAndBacklog.getNextDataType() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
PartitionSortedBuffer.append(ByteBuffer source,
int targetChannel,
Buffer.DataType dataType) |
boolean |
SortBuffer.append(ByteBuffer source,
int targetChannel,
Buffer.DataType dataType)
Appends data of the specified channel to this
SortBuffer and returns true if all
bytes of the source buffer is copied to this SortBuffer successfully, otherwise if
returns false, nothing will be copied. |
static ResultSubpartition.BufferAndBacklog |
ResultSubpartition.BufferAndBacklog.fromBufferAndLookahead(Buffer current,
Buffer.DataType nextDataType,
int backlog,
int sequenceNumber) |
| 构造器和说明 |
|---|
BufferAndBacklog(Buffer buffer,
int buffersInBacklog,
Buffer.DataType nextDataType,
int sequenceNumber) |
| 构造器和说明 |
|---|
BufferAndAvailability(Buffer buffer,
Buffer.DataType nextDataType,
int buffersInBacklog,
int sequenceNumber) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.