Class BinaryStoreImportProcessor
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.BinaryStoreImportProcessor
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,DataImportProcessor,CheckpointRecord.SourceFileSizeRecord
Processes binary store files, with the ability to store headers and resume processing.
-
Field Summary
FieldsFields inherited from interface com.illumon.iris.db.tables.dataimport.logtailer.DataImportProcessor
END_OF_DATA_FLAG, TRUNCATED_FLAG -
Method Summary
Modifier and TypeMethodDescriptiondefault com.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) getName()longgetSize()booleanisDirty()Does this import processor contain inconsistent state that should prevent checkpointing?voidonNewFile(FilePosition filePosition) Notify the import processor that a new file is available.intprocessContent(ByteBuffer dataBuffer, long bufferSentTimestamp) Request that the import processor consume data from the supplied buffer, the first byte of which is associated with the supplied filePosition.voidsetContext(DataImportStreamContext newContext) After truncating a partition, a new context might be required to update checkpoints and file writers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.dataimport.logtailer.DataImportProcessor
shouldBeginTransaction, shouldEndTransaction
-
Field Details
-
STORED_HEADER_FILE_SUFFIX
- See Also:
-
-
Method Details
-
setContext
Description copied from interface:DataImportProcessorAfter truncating a partition, a new context might be required to update checkpoints and file writers.- Specified by:
setContextin interfaceDataImportProcessor- Parameters:
newContext- The replacement DataImportStreamContext
-
isDirty
public boolean isDirty()Description copied from interface:DataImportProcessorDoes this import processor contain inconsistent state that should prevent checkpointing?- Specified by:
isDirtyin interfaceDataImportProcessor- Returns:
- Whether this import processor contains inconsistent state that should prevent checkpointing
-
getName
-
getSize
public long getSize() -
onNewFile
Description copied from interface:DataImportProcessorNotify the import processor that a new file is available.- Specified by:
onNewFilein interfaceDataImportProcessor- Parameters:
filePosition- The new file's initial position
-
processContent
Description copied from interface:DataImportProcessorRequest that the import processor consume data from the supplied buffer, the first byte of which is associated with the supplied filePosition.- Specified by:
processContentin interfaceDataImportProcessor- Parameters:
dataBuffer- The data to process- Returns:
- the reason flags for returning from the method
-
append
default com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput) - Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-