Package org.apache.flink.core.memory
Interface DataOutputView
-
- All Superinterfaces:
DataOutput
- All Known Subinterfaces:
SeekableDataOutputView
- All Known Implementing Classes:
DataOutputSerializer,DataOutputViewStreamWrapper
@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 voidskipBytesToWrite(int numBytes)SkipsnumBytesbytes memory.voidwrite(DataInputView source, int numBytes)CopiesnumBytesbytes 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 IOExceptionSkipsnumBytesbytes 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
CopiesnumBytesbytes 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.
-
-