Class BinaryStoreImportProcessor
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.BinaryStoreImportProcessor
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,DataImportProcessor,CheckpointRecord.SourceFileSizeRecord
public class BinaryStoreImportProcessor extends Object implements DataImportProcessor
Processes binary store files, with the ability to store headers and resume processing.
-
Field Summary
Fields Modifier and Type Field Description static StringSTORED_HEADER_FILE_SUFFIXFields inherited from interface com.illumon.iris.db.tables.dataimport.logtailer.DataImportProcessor
END_OF_DATA_FLAG, TRUNCATED_FLAG -
Method Summary
Modifier and Type Method Description StringgetName()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
-
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
-