Package org.apache.flink.core.memory
Interface MemorySegmentWritable
-
- All Known Implementing Classes:
AbstractChannelWriterOutputView
,AbstractPagedOutputView
,BinaryHashPartition.BuildSideBuffer
,ChannelWriterOutputView
,CompressedHeaderlessChannelWriterOutputView
,DataOutputSerializer
,FileChannelOutputView
,HashPartition.BuildSideBuffer
,HeaderlessChannelWriterOutputView
,RandomAccessOutputView
,SerializedUpdateBuffer
,SimpleCollectingOutputView
,SpillingBuffer
@Internal public interface MemorySegmentWritable
Provides the interface for write(Segment).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(MemorySegment segment, int off, int len)
Writeslen
bytes from memory segmentsegment
starting at offsetoff
, in order, to the output.
-
-
-
Method Detail
-
write
void write(MemorySegment segment, int off, int len) throws IOException
Writeslen
bytes from memory segmentsegment
starting at offsetoff
, in order, to the output.- Parameters:
segment
- memory segment to copy the bytes from.off
- the start offset in the memory segment.len
- The number of bytes to copy.- Throws:
IOException
- if an I/O error occurs.
-
-