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 TypeMethodDescriptionvoid
ensureInitialized
(FullTableLocationKey locationKey) Called when non-import code needs to ensure that an ImportState's internals have been initialized because of their side effects.final void
newRowForKey
(KEY_TYPE key) subclasses must implement this callback, we forward all keys through it.void
onClose()
Called when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in a consistent state.void
Call when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in an inconsistent state.void
onResume
(FullTableLocationKey locationKey) Called when data ingestion is resumed for the location observed by this ImportState.void
void
Methods inherited from class com.illumon.iris.db.tables.dataimport.importstate.TupleKeyedAbstractImportState
newRow, newRow, newRow, newRow, prepareElement, prepareKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ImportState
Call when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in an inconsistent state.- Specified by:
onRelease
in interfaceImportState
-
onClose
public void onClose()Description copied from interface:ImportState
Called when the data ingestion process for the location observed by this ImportState is finished, temporarily or permanently, in a consistent state.- Specified by:
onClose
in interfaceImportState
-
onResume
Description copied from interface:ImportState
Called when data ingestion is resumed for the location observed by this ImportState.- Specified by:
onResume
in interfaceImportState
- Parameters:
locationKey
- The full table location key of the location that has been resumed
-
ensureInitialized
Description copied from interface:ImportState
Called 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 theLiveTableMonitor
lock.- Specified by:
ensureInitialized
in interfaceImportState
- Parameters:
locationKey
- The full table location key of the location whose ImportState is being initialized
-
newRowForKey
Description copied from class:TupleKeyedAbstractImportState
subclasses must implement this callback, we forward all keys through it.- Specified by:
newRowForKey
in classTupleKeyedAbstractImportState<KEY_TYPE>
- Parameters:
key
- immutable key object containing the parameters passed to newRow from listener/importer.
-
getImportDetails
- Specified by:
getImportDetails
in interfaceImportState
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-