Uses of Interface
org.apache.flink.runtime.io.network.buffer.Buffer
-
-
Uses of Buffer in org.apache.flink.runtime.checkpoint.channel
Methods in org.apache.flink.runtime.checkpoint.channel with parameters of type Buffer Modifier and Type Method Description voidChannelStateWriter. addOutputData(long checkpointId, ResultSubpartitionInfo info, int startSeqNum, Buffer... data)Add in-flight buffers from theResultSubpartition.voidChannelStateWriter.NoOpChannelStateWriter. addOutputData(long checkpointId, ResultSubpartitionInfo info, int startSeqNum, Buffer... data)voidChannelStateWriterImpl. addOutputData(long checkpointId, ResultSubpartitionInfo info, int startSeqNum, Buffer... data)Method parameters in org.apache.flink.runtime.checkpoint.channel with type arguments of type Buffer Modifier and Type Method Description voidChannelStateWriter. addInputData(long checkpointId, InputChannelInfo info, int startSeqNum, org.apache.flink.util.CloseableIterator<Buffer> data)Add in-flight buffers from theInputChannel.voidChannelStateWriter.NoOpChannelStateWriter. addInputData(long checkpointId, InputChannelInfo info, int startSeqNum, org.apache.flink.util.CloseableIterator<Buffer> data)voidChannelStateWriterImpl. addInputData(long checkpointId, InputChannelInfo info, int startSeqNum, org.apache.flink.util.CloseableIterator<Buffer> iterator)voidChannelStateWriter. addOutputDataFuture(long checkpointId, ResultSubpartitionInfo info, int startSeqNum, CompletableFuture<List<Buffer>> data)Add in-flight bufferFuture from theResultSubpartition.voidChannelStateWriter.NoOpChannelStateWriter. addOutputDataFuture(long checkpointId, ResultSubpartitionInfo info, int startSeqNum, CompletableFuture<List<Buffer>> data)voidChannelStateWriterImpl. addOutputDataFuture(long checkpointId, ResultSubpartitionInfo info, int startSeqNum, CompletableFuture<List<Buffer>> dataFuture) -
Uses of Buffer in org.apache.flink.runtime.io.disk
Methods in org.apache.flink.runtime.io.disk that return Buffer Modifier and Type Method Description BufferFileBasedBufferIterator. next() -
Uses of Buffer in org.apache.flink.runtime.io.disk.iomanager
Methods in org.apache.flink.runtime.io.disk.iomanager with parameters of type Buffer Modifier and Type Method Description booleanBufferFileChannelReader. readBufferFromFileChannel(Buffer buffer)Reads data from the object's file channel into the given buffer.voidAsynchronousBufferFileReader. readInto(Buffer buffer)voidBufferFileReader. readInto(Buffer buffer)voidSynchronousBufferFileReader. readInto(Buffer buffer)voidAsynchronousBufferFileWriter. writeBlock(Buffer buffer)Writes the given block asynchronously.Method parameters in org.apache.flink.runtime.io.disk.iomanager with type arguments of type Buffer Modifier and Type Method Description abstract BufferFileReaderIOManager. createBufferFileReader(FileIOChannel.ID channelID, RequestDoneCallback<Buffer> callback)BufferFileReaderIOManagerAsync. createBufferFileReader(FileIOChannel.ID channelID, RequestDoneCallback<Buffer> callback)Constructor parameters in org.apache.flink.runtime.io.disk.iomanager with type arguments of type Buffer Constructor Description AsynchronousBufferFileReader(FileIOChannel.ID channelID, RequestQueue<org.apache.flink.runtime.io.disk.iomanager.ReadRequest> requestQueue, RequestDoneCallback<Buffer> callback) -
Uses of Buffer in org.apache.flink.runtime.io.network.api.serialization
Methods in org.apache.flink.runtime.io.network.api.serialization that return Buffer Modifier and Type Method Description static BufferEventSerializer. toBuffer(AbstractEvent event, boolean hasPriority)Methods in org.apache.flink.runtime.io.network.api.serialization that return types with arguments of type Buffer Modifier and Type Method Description org.apache.flink.util.CloseableIterator<Buffer>RecordDeserializer. getUnconsumedBuffer()Gets the unconsumed buffer which needs to be persisted in unaligned checkpoint scenario.org.apache.flink.util.CloseableIterator<Buffer>SpillingAdaptiveSpanningRecordDeserializer. getUnconsumedBuffer()Methods in org.apache.flink.runtime.io.network.api.serialization with parameters of type Buffer Modifier and Type Method Description static AbstractEventEventSerializer. fromBuffer(Buffer buffer, ClassLoader classLoader)voidRecordDeserializer. setNextBuffer(Buffer buffer)voidSpillingAdaptiveSpanningRecordDeserializer. setNextBuffer(Buffer buffer) -
Uses of Buffer in org.apache.flink.runtime.io.network.buffer
Classes in org.apache.flink.runtime.io.network.buffer that implement Buffer Modifier and Type Class Description classAbstractCompositeBufferAn implementation ofBufferwhich contains multiple partial buffers for network data communication.classCompositeBufferAn implementation ofBufferwhich contains multiple partial buffers for network data communication.classFileRegionBufferThis class represents a chunk of data in a file channel.classFullyFilledBufferAn implementation ofBufferrepresents a fully filled buffer which contains multiple partial buffers for network data communication.classNetworkBufferWrapper for pooledMemorySegmentinstances.classReadOnlySlicedNetworkBufferMinimal best-effort read-only slicedBufferimplementation wrapping aNetworkBuffer's sub-region based on io.netty.buffer.SlicedByteBuf and io.netty.buffer.ReadOnlyByteBuf.Fields in org.apache.flink.runtime.io.network.buffer with type parameters of type Buffer Modifier and Type Field Description protected List<Buffer>AbstractCompositeBuffer. partialBuffersMethods in org.apache.flink.runtime.io.network.buffer that return Buffer Modifier and Type Method Description BufferBufferConsumer. build()BufferBufferConsumerWithPartialRecordLength. build()BufferBufferCompressor. compressToIntermediateBuffer(Buffer buffer)Compresses the givenBufferusingBlockCompressor.BufferBufferCompressor. compressToOriginalBuffer(Buffer buffer)The difference between this method andBufferCompressor.compressToIntermediateBuffer(Buffer)is that this method will copy the compressed data back to the inputBufferstarting from offset 0.BufferBufferDecompressor. decompressToIntermediateBuffer(Buffer buffer)Decompresses the givenBufferusingBlockDecompressor.BufferBufferDecompressor. decompressToOriginalBuffer(Buffer buffer)The difference between this method andBufferDecompressor.decompressToIntermediateBuffer(Buffer)is that this method copies the decompressed data to the inputBufferstarting from offset 0.BufferCompositeBuffer. getFullBufferData(org.apache.flink.core.memory.MemorySegment segment)Returns the full buffer data in one piece ofMemorySegment.BufferFileRegionBuffer. readInto(org.apache.flink.core.memory.MemorySegment segment)BufferAbstractCompositeBuffer. readOnlySlice()BufferAbstractCompositeBuffer. readOnlySlice(int index, int length)BufferBuffer. readOnlySlice()Returns a read-only slice of this buffer's readable bytes, i.e. betweengetReaderIndex()andgetSize().BufferBuffer. readOnlySlice(int index, int length)Returns a read-only slice of this buffer.BufferBufferProvider. requestBuffer()Returns aBufferinstance from the buffer provider, if one is available.BufferLocalBufferPool. requestBuffer()BufferAbstractCompositeBuffer. retainBuffer()BufferBuffer. retainBuffer()Retains this buffer for further use, increasing the reference counter by 1.Methods in org.apache.flink.runtime.io.network.buffer that return types with arguments of type Buffer Modifier and Type Method Description List<Buffer>AbstractCompositeBuffer. getPartialBuffers()Methods in org.apache.flink.runtime.io.network.buffer with parameters of type Buffer Modifier and Type Method Description abstract voidAbstractCompositeBuffer. addPartialBuffer(Buffer buffer)voidCompositeBuffer. addPartialBuffer(Buffer buffer)voidFullyFilledBuffer. addPartialBuffer(Buffer buffer)BufferBufferCompressor. compressToIntermediateBuffer(Buffer buffer)Compresses the givenBufferusingBlockCompressor.BufferBufferCompressor. compressToOriginalBuffer(Buffer buffer)The difference between this method andBufferCompressor.compressToIntermediateBuffer(Buffer)is that this method will copy the compressed data back to the inputBufferstarting from offset 0.BufferBufferDecompressor. decompressToIntermediateBuffer(Buffer buffer)Decompresses the givenBufferusingBlockDecompressor.BufferBufferDecompressor. decompressToOriginalBuffer(Buffer buffer)The difference between this method andBufferDecompressor.decompressToIntermediateBuffer(Buffer)is that this method copies the decompressed data to the inputBufferstarting from offset 0.booleanBufferListener. notifyBufferAvailable(Buffer buffer)Notification callback if a buffer is recycled and becomes available in buffer pool.Constructors in org.apache.flink.runtime.io.network.buffer with parameters of type Buffer Constructor Description BufferConsumer(Buffer buffer, int size)ConstructsBufferConsumerinstance with static content of a certain size.BufferConsumer(Buffer buffer, org.apache.flink.runtime.io.network.buffer.BufferBuilder.PositionMarker currentWriterPosition, int currentReaderPosition) -
Uses of Buffer in org.apache.flink.runtime.io.network.logger
Methods in org.apache.flink.runtime.io.network.logger with parameters of type Buffer Modifier and Type Method Description static voidNetworkActionsLogger. traceInput(String action, Buffer buffer, String taskName, InputChannelInfo channelInfo, ChannelStatePersister channelStatePersister, int sequenceNumber)static voidNetworkActionsLogger. traceOutput(String action, Buffer buffer, String taskName, ResultSubpartitionInfo channelInfo)static voidNetworkActionsLogger. tracePersist(String action, Buffer buffer, Object channelInfo, long checkpointId)static voidNetworkActionsLogger. traceRecover(String action, Buffer buffer, String taskName, InputChannelInfo channelInfo) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition
Methods in org.apache.flink.runtime.io.network.partition that return Buffer Modifier and Type Method Description BufferResultSubpartition.BufferAndBacklog. buffer()BufferBufferWithSubpartition. getBuffer()static BufferBufferReaderWriterUtil. readFromByteChannel(FileChannel channel, ByteBuffer headerBuffer, org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler bufferRecycler)Methods in org.apache.flink.runtime.io.network.partition with parameters of type Buffer Modifier and Type Method Description protected booleanResultPartition. canBeCompressed(Buffer buffer)Whether the buffer can be compressed or not.static ResultSubpartition.BufferAndBacklogResultSubpartition.BufferAndBacklog. fromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber)static voidBufferReaderWriterUtil. setByteChannelBufferHeader(Buffer buffer, ByteBuffer header)Constructors in org.apache.flink.runtime.io.network.partition with parameters of type Buffer Constructor Description BufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber)BufferWithSubpartition(Buffer buffer, int subpartitionIndex) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.consumer
Methods in org.apache.flink.runtime.io.network.partition.consumer that return Buffer Modifier and Type Method Description BufferInputChannel.BufferAndAvailability. buffer()BufferBufferOrEvent. getBuffer()BufferRemoteInputChannel. getNextReceivedBuffer()BufferRemoteInputChannel. requestBuffer()Requests buffer from input channel directly for receiving network data.BufferRecoveredInputChannel. requestBufferBlocking()Methods in org.apache.flink.runtime.io.network.partition.consumer with parameters of type Buffer Modifier and Type Method Description protected OptionalLongChannelStatePersister. checkForBarrier(Buffer buffer)protected voidChannelStatePersister. maybePersist(Buffer buffer)booleanBufferManager. notifyBufferAvailable(Buffer buffer)The buffer pool notifies this listener of an available floating buffer.voidRemoteInputChannel. onBuffer(Buffer buffer, int sequenceNumber, int backlog, int subpartitionId)Handles the input buffer.voidRecoveredInputChannel. onRecoveredStateBuffer(Buffer buffer)protected AbstractEventChannelStatePersister. parseEvent(Buffer buffer)Parses the buffer as an event and returns theCheckpointBarrierif the event is indeed a barrier or returns null in all other cases.Method parameters in org.apache.flink.runtime.io.network.partition.consumer with type arguments of type Buffer Modifier and Type Method Description protected voidChannelStatePersister. startPersisting(long barrierId, List<Buffer> knownBuffers)Constructors in org.apache.flink.runtime.io.network.partition.consumer with parameters of type Buffer Constructor Description BufferAndAvailability(Buffer buffer, Buffer.DataType nextDataType, int buffersInBacklog, int sequenceNumber)BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo)BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo, boolean moreAvailable, boolean morePriorityEvents) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.common
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.common that return Buffer Modifier and Type Method Description static BufferTieredStorageUtils. compressBufferIfPossible(Buffer buffer, BufferCompressor bufferCompressor)Try compress buffer if possible.Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.common with parameters of type Buffer Modifier and Type Method Description static booleanTieredStorageUtils. canBeCompressed(Buffer buffer, BufferCompressor bufferCompressor)Whether the buffer can be compressed or not.static BufferTieredStorageUtils. compressBufferIfPossible(Buffer buffer, BufferCompressor bufferCompressor)Try compress buffer if possible.Method parameters in org.apache.flink.runtime.io.network.partition.hybrid.tiered.common with type arguments of type Buffer Modifier and Type Method Description static ByteBuffer[]TieredStorageUtils. generateBufferWithHeaders(List<org.apache.flink.api.java.tuple.Tuple2<Buffer,Integer>> bufferWithIndexes) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.file
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.file that return types with arguments of type Buffer Modifier and Type Method Description List<org.apache.flink.api.java.tuple.Tuple2<Buffer,Integer>>PartitionFileWriter.SegmentBufferContext. getBufferAndIndexes()List<Buffer>PartitionFileReader.ReadBufferResult. getReadBuffers()Constructor parameters in org.apache.flink.runtime.io.network.partition.hybrid.tiered.file with type arguments of type Buffer Constructor Description ReadBufferResult(List<Buffer> readBuffers, boolean continuousReadSuggested, PartitionFileReader.ReadProgress readProgress)SegmentBufferContext(int segmentId, List<org.apache.flink.api.java.tuple.Tuple2<Buffer,Integer>> bufferAndIndexes, boolean segmentFinished) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.netty
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.netty that return types with arguments of type Buffer Modifier and Type Method Description Optional<Buffer>NettyPayload. getBuffer()Optional<Buffer>NettyConnectionReader. readBuffer(int subpartitionId, int segmentId)Read a buffer from netty connection.Optional<Buffer>NettyConnectionReaderImpl. readBuffer(int subpartitionId, int segmentId)Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.netty with parameters of type Buffer Modifier and Type Method Description static NettyPayloadNettyPayload. newBuffer(Buffer buffer, int bufferIndex, int subpartitionId) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage that return types with arguments of type Buffer Modifier and Type Method Description Optional<Buffer>TieredStorageConsumerClient. getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId)Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage with parameters of type Buffer Modifier and Type Method Description voidHashBufferAccumulator. flushAccumulatedBuffers(TieredStorageSubpartitionId subpartitionId, Buffer accumulatedBuffer, int numRemainingConsecutiveBuffers)voidHashSubpartitionBufferAccumulatorContext. flushAccumulatedBuffers(TieredStorageSubpartitionId subpartitionId, Buffer accumulatedBuffer, int numRemainingConsecutiveBuffers)Flush the accumulatedBuffers of the subpartition.voidTieredStorageMemoryManager. transferBufferOwnership(Object oldOwner, Object newOwner, Buffer buffer)Notify the memory manager that transferring one buffer's ownership from the old owner to the new owner.voidTieredStorageMemoryManagerImpl. transferBufferOwnership(Object oldOwner, Object newOwner, Buffer buffer)Method parameters in org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage with type arguments of type Buffer Modifier and Type Method Description voidBufferAccumulator. setup(org.apache.flink.util.function.TriConsumer<TieredStorageSubpartitionId,Buffer,Integer> bufferFlusher)Setup the accumulator.voidHashBufferAccumulator. setup(org.apache.flink.util.function.TriConsumer<TieredStorageSubpartitionId,Buffer,Integer> accumulatedBufferFlusher)voidSortBufferAccumulator. setup(org.apache.flink.util.function.TriConsumer<TieredStorageSubpartitionId,Buffer,Integer> bufferFlusher) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier that return types with arguments of type Buffer Modifier and Type Method Description Optional<Buffer>TierConsumerAgent. getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId)Get buffer from the consumer agent.Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier with parameters of type Buffer Modifier and Type Method Description booleanTierProducerAgent. tryWrite(TieredStorageSubpartitionId subpartitionId, Buffer finishedBuffer, Object bufferOwner, int numRemainingConsecutiveBuffers)Writes the finishedBufferto the consumer. -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.disk
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.disk that return types with arguments of type Buffer Modifier and Type Method Description Optional<Buffer>DiskTierConsumerAgent. getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId)Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.disk with parameters of type Buffer Modifier and Type Method Description booleanDiskTierProducerAgent. tryWrite(TieredStorageSubpartitionId subpartitionId, Buffer finishedBuffer, Object bufferOwner, int numRemainingConsecutiveBuffers) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.memory
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.memory that return types with arguments of type Buffer Modifier and Type Method Description Optional<Buffer>MemoryTierConsumerAgent. getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId)Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.memory with parameters of type Buffer Modifier and Type Method Description booleanMemoryTierProducerAgent. tryWrite(TieredStorageSubpartitionId subpartitionId, Buffer finishedBuffer, Object bufferOwner, int numRemainingConsecutiveBuffers) -
Uses of Buffer in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.remote
Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.remote that return types with arguments of type Buffer Modifier and Type Method Description Optional<Buffer>RemoteTierConsumerAgent. getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId)Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.remote with parameters of type Buffer Modifier and Type Method Description booleanRemoteTierProducerAgent. tryWrite(TieredStorageSubpartitionId subpartitionId, Buffer buffer, Object bufferOwner, int numRemainingConsecutiveBuffers)
-