Package org.apache.flink.core.memory
Interface DataOutputView
-
- All Superinterfaces:
DataOutput
- All Known Subinterfaces:
SeekableDataOutputView
- All Known Implementing Classes:
AbstractChannelWriterOutputView
,AbstractPagedOutputView
,BinaryHashPartition.BuildSideBuffer
,ChannelWriterOutputView
,CompressedHeaderlessChannelWriterOutputView
,DataOutputSerializer
,DataOutputViewStreamWrapper
,FileChannelOutputView
,HashPartition.BuildSideBuffer
,HeaderlessChannelWriterOutputView
,RandomAccessOutputView
,SerializedUpdateBuffer
,SimpleCollectingOutputView
,SpillingBuffer
@Public public interface DataOutputView extends DataOutput
This interface defines a view over some memory that can be used to sequentially write contents to the memory. The view is typically backed by one or moreMemorySegment
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
skipBytesToWrite(int numBytes)
SkipsnumBytes
bytes memory.void
write(DataInputView source, int numBytes)
CopiesnumBytes
bytes from the source to this view.-
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Method Detail
-
skipBytesToWrite
void skipBytesToWrite(int numBytes) throws IOException
SkipsnumBytes
bytes memory. If some program reads the memory that was skipped over, the results are undefined.- Parameters:
numBytes
- The number of bytes to skip.- Throws:
IOException
- Thrown, if any I/O related problem occurred such that the view could not be advanced to the desired position.
-
write
void write(DataInputView source, int numBytes) throws IOException
CopiesnumBytes
bytes from the source to this view.- Parameters:
source
- The source to copy the bytes from.numBytes
- The number of bytes to copy.- Throws:
IOException
- Thrown, if any I/O related problem occurred, such that either the input view could not be read, or the output could not be written.
-
-