Class MemoryLogMinerEventProcessor
java.lang.Object
io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor<MemoryTransaction>
io.debezium.connector.oracle.logminer.processor.memory.MemoryLogMinerEventProcessor
- All Implemented Interfaces:
CacheProvider<MemoryTransaction>,LogMinerEventProcessor,AutoCloseable
A
LogMinerEventProcessor that uses the JVM heap to store events as they're being
processed and emitted from Oracle LogMiner.- Author:
- Chris Cranford
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor
AbstractLogMinerEventProcessor.Counters -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LogMinerCache<String, LogMinerEvent> private final LogMinerCache<String, String> private final LogMinerCache<String, String> private final LogMinerCache<String, MemoryTransaction> Fields inherited from class io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor
counters, sqlQueryFields inherited from interface io.debezium.connector.oracle.logminer.processor.CacheProvider
EVENTS_CACHE_NAME, PROCESSED_TRANSACTIONS_CACHE_NAME, SCHEMA_CHANGES_CACHE_NAME, TRANSACTIONS_CACHE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMemoryLogMinerEventProcessor(ChangeEventSource.ChangeEventSourceContext context, OracleConnectorConfig connectorConfig, OracleConnection jdbcConnection, EventDispatcher<OraclePartition, TableId> dispatcher, OraclePartition partition, OracleOffsetContext offsetContext, OracleDatabaseSchema schema, LogMinerStreamingChangeEventSourceMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected MemoryTransactionCreates a new transaction based on the suppliedSTARTevent.Get the LogMiner events cache Key - The event id, in the format oftransactionId-eventSequenceValue - The raw LogMinerEvent object instanceGet the processed transactions cache Key - The unique transaction id Value - The transaction's commit or rollback system change numberGet the Schema Changes cache Key - The system change number of the schema change Value - The table the schema change is related toGet the transaction cache Key - The unique transaction id Value - The transaction instanceMethods inherited from class io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor
abandonTransactionOverEventThreshold, abandonTransactions, addToTransaction, calculateNewStartScn, cleanupAfterTransactionRemovedFromCache, compareStartScn, createQueryStatement, dispatchSchemaChangeEventAndGetTableForNewCapturedTable, displayCacheStatistics, finalizeTransactionCommit, finalizeTransactionRollback, getAbandonedTransactionsCache, getAndRemoveTransactionFromCache, getConfig, getFirstActiveTransactionKey, getLastProcessedScn, getLastProcessedScnChangeTime, getLastScnToAbandon, getLoggedAbandonedTransactionTableNames, getOldestTransactionInCache, getQueryString, getSchema, getTableMetadataDdl, getTransactionCacheMinimumScn, getTransactionEventCount, getTransactionEventIterator, getTransactionIdPrefix, getTransactionKeysWithPrefix, handleCommit, handleCommitNotFoundInBuffer, handleDataEvent, handleLobWrite, handleMissingScn, handleRollback, handleRollbackNotFoundInBuffer, handleSchemaChange, handleSelectLobLocator, handleStart, handleUnsupportedEvent, hasSchemaChangeBeenSeen, isRecentlyProcessed, isTransactionIdWithNoSequence, isTransactionOverEventThreshold, isTransactionUserExcluded, isTrxIdRawValue, oldestTransactionComparison, process, processResults, processRow, purgeCache, reCreateInMemoryCache, removeEventWithRowId, resetTransactionToStart, warnPotentiallyStuckScn
-
Field Details
-
transactionCache
-
eventCache
-
schemaCache
-
processedTransactionsCache
-
-
Constructor Details
-
MemoryLogMinerEventProcessor
public MemoryLogMinerEventProcessor(ChangeEventSource.ChangeEventSourceContext context, OracleConnectorConfig connectorConfig, OracleConnection jdbcConnection, EventDispatcher<OraclePartition, TableId> dispatcher, OraclePartition partition, OracleOffsetContext offsetContext, OracleDatabaseSchema schema, LogMinerStreamingChangeEventSourceMetrics metrics)
-
-
Method Details
-
createTransaction
Description copied from class:AbstractLogMinerEventProcessorCreates a new transaction based on the suppliedSTARTevent.- Specified by:
createTransactionin classAbstractLogMinerEventProcessor<MemoryTransaction>- Parameters:
row- the event row, must not benull- Returns:
- the implementation-specific
Transactioninstance
-
getTransactionCache
Description copied from interface:CacheProviderGet the transaction cache- Key - The unique transaction id
- Value - The transaction instance
- Returns:
- the transaction cache, never
null
-
getEventCache
Description copied from interface:CacheProviderGet the LogMiner events cache- Key - The event id, in the format of
transactionId-eventSequence - Value - The raw LogMinerEvent object instance
- Returns:
- the evnts cache, never
null
- Key - The event id, in the format of
-
getSchemaChangesCache
Description copied from interface:CacheProviderGet the Schema Changes cache- Key - The system change number of the schema change
- Value - The table the schema change is related to
- Returns:
- the schema changes cache, never
null
-
getProcessedTransactionsCache
Description copied from interface:CacheProviderGet the processed transactions cache- Key - The unique transaction id
- Value - The transaction's commit or rollback system change number
- Returns:
- the processed transactions cache, never
null
-
close
- Throws:
Exception
-