Class ImportStatePartitionIndex<KEY_TYPE>
java.lang.Object
com.illumon.iris.db.tables.dataimport.importstate.TupleKeyedAbstractImportState<KEY_TYPE>
com.illumon.iris.db.tables.dataimport.logtailer.ImportStatePartitionIndex<KEY_TYPE>
- All Implemented Interfaces:
ImportState,Externalizable,Serializable
public class ImportStatePartitionIndex<KEY_TYPE>
extends TupleKeyedAbstractImportState<KEY_TYPE>
implements Externalizable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidensureInitialized(FullTableLocationKey locationKey) Called when non-import code needs to ensure that an ImportState's internals have been initialized because of their side effects.final voidnewRowForKey(KEY_TYPE key) subclasses must implement this callback, we forward all keys through it.voidonClose()Called when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in a consistent state.voidCall when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in an inconsistent state.voidonResume(FullTableLocationKey locationKey) Called when data ingestion is resumed for the location observed by this ImportState.voidvoidMethods inherited from class com.illumon.iris.db.tables.dataimport.importstate.TupleKeyedAbstractImportState
newRow, newRow, newRow, newRow, prepareElement, prepareKeyMethods 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.ImportState
onFlush, onTruncate
-
Constructor Details
-
ImportStatePartitionIndex
public ImportStatePartitionIndex() -
ImportStatePartitionIndex
-
-
Method Details
-
onRelease
public void onRelease()Description copied from interface:ImportStateCall when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in an inconsistent state.- Specified by:
onReleasein interfaceImportState
-
onClose
public void onClose()Description copied from interface:ImportStateCalled when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in a consistent state.- Specified by:
onClosein interfaceImportState
-
onResume
Description copied from interface:ImportStateCalled when data ingestion is resumed for the location observed by this ImportState.- Specified by:
onResumein interfaceImportState- Parameters:
locationKey- The full table location key of the location that has been resumed
-
ensureInitialized
Description copied from interface:ImportStateCalled when non-import code needs to ensure that an ImportState's internals have been initialized because of their side effects. Must not interfere with concurrent data ingestion in the same process. Generally should be treated as a query operation, and the caller should hold theLiveTableMonitorlock.- Specified by:
ensureInitializedin interfaceImportState- Parameters:
locationKey- The full table location key of the location whose ImportState is being initialized
-
newRowForKey
Description copied from class:TupleKeyedAbstractImportStatesubclasses must implement this callback, we forward all keys through it.- Specified by:
newRowForKeyin classTupleKeyedAbstractImportState<KEY_TYPE>- Parameters:
key- immutable key object containing the parameters passed to newRow from listener/importer.
-
getImportDetails
- Specified by:
getImportDetailsin interfaceImportState
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-