Package com.illumon.iris.binarystore
Class AbstractBinaryStoreWriter<R extends Row>
java.lang.Object
com.illumon.iris.binarystore.AbstractBinaryStoreWriter<R>
- All Implemented Interfaces:
Entry,Record,Row,TableWriter<R>
- Direct Known Subclasses:
BinaryStoreWriterV2
public abstract class AbstractBinaryStoreWriter<R extends Row>
extends Object
implements TableWriter<R>
This class provides a common ancestor for V1 and V2 binary store writer to manage output channels.
The extending class is responsible for creating a ByteBuffer that represents the header, and actually writing data
to the file channel using the writeDataBuffer call.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.binarystore.Record
Record.RecordSetter<T extends RecordData> -
Field Summary
Fields inherited from interface com.illumon.iris.binarystore.TableWriter
NULL_SETTER -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the writer.voidflush()Flushes data out.protected voidsetChannelManager(ChannelManager channelManager) booleanTrue if all data types can be written out; false otherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.binarystore.Row
getColumnPartitionValue, setColumnPartitionValueMethods inherited from interface com.illumon.iris.binarystore.TableWriter
flushDeferredRows, getColumnNames, getColumnTypes, getRecordSetter, getRecordSetter, getRecordWriter, getRowWriter, getSetter, getSetter, setFlags, writeDeferredRow, writeRecord, writeRow
-
Method Details
-
setChannelManager
-
close
Description copied from interface:TableWriterCloses the writer.- Specified by:
closein interfaceTableWriter<R extends Row>- Throws:
IOException- problem closing the writer.
-
flush
Description copied from interface:TableWriterFlushes data out.- Specified by:
flushin interfaceTableWriter<R extends Row>- Throws:
IOException- problem flushing data out.
-
supportAllTypes
public boolean supportAllTypes()Description copied from interface:TableWriterTrue if all data types can be written out; false otherwise.- Specified by:
supportAllTypesin interfaceTableWriter<R extends Row>- Returns:
- true if all data types can be written out; false otherwise.
-