Class TableStreamer
java.lang.Object
com.illumon.iris.db.tables.streaming.TableStreamer
public class TableStreamer extends Object
Utility class to convert Table objects to/from binary messages.
-
Constructor Summary
Constructors Constructor Description TableStreamer()
-
Method Summary
Modifier and Type Method Description static Table
readTableMessage(TableDefinition definition, ByteBuffer byteBuffer)
static void
writeTableMessage(Table table, long offset, int size, com.fishlib.io.streams.CurrentByteBufferSink byteBufferSink, TableDefinition definition)
-
Constructor Details
-
TableStreamer
public TableStreamer()
-
-
Method Details
-
writeTableMessage
public static void writeTableMessage(@NotNull Table table, long offset, int size, @NotNull com.fishlib.io.streams.CurrentByteBufferSink byteBufferSink, @NotNull TableDefinition definition) throws IOException- Throws:
IOException
-
readTableMessage
public static Table readTableMessage(TableDefinition definition, ByteBuffer byteBuffer) throws IOException- Throws:
IOException
-