Uses of Interface
org.apache.flink.runtime.io.network.buffer.Buffer
Packages that use Buffer
Package
Description
-
Uses of Buffer in org.apache.flink.runtime.checkpoint.channel
Methods in org.apache.flink.runtime.checkpoint.channel with parameters of type BufferModifier and TypeMethodDescriptionvoidChannelStateWriter.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 BufferModifier and TypeMethodDescriptionvoidChannelStateWriter.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 -
Uses of Buffer in org.apache.flink.runtime.io.disk.iomanager
Methods in org.apache.flink.runtime.io.disk.iomanager with parameters of type BufferModifier and TypeMethodDescriptionbooleanBufferFileChannelReader.readBufferFromFileChannel(Buffer buffer) Reads data from the object's file channel into the given buffer.voidvoidvoidvoidAsynchronousBufferFileWriter.writeBlock(Buffer buffer) Writes the given block asynchronously.Method parameters in org.apache.flink.runtime.io.disk.iomanager with type arguments of type BufferModifier and TypeMethodDescriptionabstract BufferFileReaderIOManager.createBufferFileReader(FileIOChannel.ID channelID, RequestDoneCallback<Buffer> callback) IOManagerAsync.createBufferFileReader(FileIOChannel.ID channelID, RequestDoneCallback<Buffer> callback) Constructor parameters in org.apache.flink.runtime.io.disk.iomanager with type arguments of type BufferModifierConstructorDescriptionprotectedAsynchronousBufferFileReader(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 BufferModifier and TypeMethodDescriptionstatic BufferEventSerializer.toBuffer(AbstractEvent event, boolean hasPriority) Methods in org.apache.flink.runtime.io.network.api.serialization that return types with arguments of type BufferModifier and TypeMethodDescriptionorg.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 BufferModifier and TypeMethodDescriptionstatic 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 BufferModifier and TypeClassDescriptionclassAn implementation ofBufferwhich contains multiple partial buffers for network data communication.classAn implementation ofBufferwhich contains multiple partial buffers for network data communication.classThis class represents a chunk of data in a file channel.classAn implementation ofBufferrepresents a fully filled buffer which contains multiple partial buffers for network data communication.classWrapper for pooledMemorySegmentinstances.final classMinimal 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 BufferMethods in org.apache.flink.runtime.io.network.buffer that return BufferModifier and TypeMethodDescriptionBufferConsumer.build()BufferConsumerWithPartialRecordLength.build()BufferCompressor.compressToIntermediateBuffer(Buffer buffer) Compresses the givenBufferusingBlockCompressor.BufferCompressor.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.BufferDecompressor.decompressToIntermediateBuffer(Buffer buffer) Decompresses the givenBufferusingBlockDecompressor.BufferDecompressor.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.CompositeBuffer.getFullBufferData(org.apache.flink.core.memory.MemorySegment segment) Returns the full buffer data in one piece ofMemorySegment.FileRegionBuffer.readInto(org.apache.flink.core.memory.MemorySegment segment) AbstractCompositeBuffer.readOnlySlice()AbstractCompositeBuffer.readOnlySlice(int index, int length) Buffer.readOnlySlice()Returns a read-only slice of this buffer's readable bytes, i.e. betweengetReaderIndex()andgetSize().Buffer.readOnlySlice(int index, int length) Returns a read-only slice of this buffer.BufferProvider.requestBuffer()Returns aBufferinstance from the buffer provider, if one is available.LocalBufferPool.requestBuffer()AbstractCompositeBuffer.retainBuffer()Buffer.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 BufferMethods in org.apache.flink.runtime.io.network.buffer with parameters of type BufferModifier and TypeMethodDescriptionabstract voidAbstractCompositeBuffer.addPartialBuffer(Buffer buffer) voidCompositeBuffer.addPartialBuffer(Buffer buffer) voidFullyFilledBuffer.addPartialBuffer(Buffer buffer) BufferCompressor.compressToIntermediateBuffer(Buffer buffer) Compresses the givenBufferusingBlockCompressor.BufferCompressor.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.BufferDecompressor.decompressToIntermediateBuffer(Buffer buffer) Decompresses the givenBufferusingBlockDecompressor.BufferDecompressor.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 BufferModifierConstructorDescriptionBufferConsumer(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 BufferModifier and TypeMethodDescriptionstatic 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 BufferModifier and TypeMethodDescriptionResultSubpartition.BufferAndBacklog.buffer()BufferWithSubpartition.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 BufferModifier and TypeMethodDescriptionprotected booleanResultPartition.canBeCompressed(Buffer buffer) Whether the buffer can be compressed or not.ResultSubpartition.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 BufferModifierConstructorDescriptionBufferAndBacklog(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 BufferModifier and TypeMethodDescriptionInputChannel.BufferAndAvailability.buffer()BufferOrEvent.getBuffer()RemoteInputChannel.getNextReceivedBuffer()RemoteInputChannel.requestBuffer()Requests buffer from input channel directly for receiving network data.RecoveredInputChannel.requestBufferBlocking()Methods in org.apache.flink.runtime.io.network.partition.consumer with parameters of type BufferModifier and TypeMethodDescriptionprotected OptionalLongChannelStatePersister.checkForBarrier(Buffer buffer) protected voidChannelStatePersister.maybePersist(Buffer buffer) booleanBufferManager.notifyBufferAvailable(Buffer buffer) The buffer pool notifies this listener of an available floating buffer.voidHandles 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 BufferModifier and TypeMethodDescriptionprotected voidChannelStatePersister.startPersisting(long barrierId, List<Buffer> knownBuffers) Constructors in org.apache.flink.runtime.io.network.partition.consumer with parameters of type BufferModifierConstructorDescriptionBufferAndAvailability(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 BufferModifier and TypeMethodDescriptionstatic 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 BufferModifier and TypeMethodDescriptionstatic 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 BufferModifier and TypeMethodDescriptionstatic 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 BufferModifier and TypeMethodDescriptionPartitionFileWriter.SegmentBufferContext.getBufferAndIndexes()PartitionFileReader.ReadBufferResult.getReadBuffers()Constructor parameters in org.apache.flink.runtime.io.network.partition.hybrid.tiered.file with type arguments of type BufferModifierConstructorDescriptionReadBufferResult(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 BufferModifier and TypeMethodDescriptionNettyPayload.getBuffer()NettyConnectionReader.readBuffer(int subpartitionId, int segmentId) Read a buffer from netty connection.NettyConnectionReaderImpl.readBuffer(int subpartitionId, int segmentId) Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.netty with parameters of type Buffer -
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 BufferModifier and TypeMethodDescriptionTieredStorageConsumerClient.getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId) Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage with parameters of type BufferModifier and TypeMethodDescriptionvoidHashBufferAccumulator.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 BufferModifier and TypeMethodDescriptionvoidBufferAccumulator.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 BufferModifier and TypeMethodDescriptionTierConsumerAgent.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 BufferModifier and TypeMethodDescriptionbooleanTierProducerAgent.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 BufferModifier and TypeMethodDescriptionDiskTierConsumerAgent.getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId) Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.disk with parameters of type BufferModifier and TypeMethodDescriptionbooleanDiskTierProducerAgent.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 BufferModifier and TypeMethodDescriptionMemoryTierConsumerAgent.getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId) Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.memory with parameters of type BufferModifier and TypeMethodDescriptionbooleanMemoryTierProducerAgent.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 BufferModifier and TypeMethodDescriptionRemoteTierConsumerAgent.getNextBuffer(TieredStoragePartitionId partitionId, TieredStorageSubpartitionId subpartitionId, int segmentId) Methods in org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.remote with parameters of type BufferModifier and TypeMethodDescriptionbooleanRemoteTierProducerAgent.tryWrite(TieredStorageSubpartitionId subpartitionId, Buffer buffer, Object bufferOwner, int numRemainingConsecutiveBuffers)