public class MutationListener extends Object implements IChangeLog
Constructor and Description |
---|
MutationListener() |
Modifier and Type | Method and Description |
---|---|
void |
changeEvent(IChangeRecord record)
Occurs when a statement add or remove is flushed to the indices (but
not yet committed).
|
void |
clear() |
void |
close()
Close any open resources.
|
int |
getNumInserted() |
int |
getNumRemoved() |
int |
getNumUpdated() |
void |
transactionAborted()
Occurs if the current SAIL transaction is aborted.
|
void |
transactionBegin()
Message issued when a new transaction will begin.
|
void |
transactionCommited(long arg0)
Occurs when the current SAIL transaction is committed.
|
void |
transactionPrepare()
Message issued when preparing for a commit.
|
public void clear()
public int getNumInserted()
public int getNumRemoved()
public int getNumUpdated()
public void changeEvent(IChangeRecord record)
IChangeLog
changeEvent
in interface IChangeLog
record
- the IChangeRecord
public void close()
IChangeLog
close
in interface IChangeLog
public void transactionAborted()
IChangeLog
transactionAborted
in interface IChangeLog
public void transactionBegin()
IChangeLog
transactionBegin
in interface IChangeLog
public void transactionCommited(long arg0)
IChangeLog
transactionCommited
in interface IChangeLog
arg0
- The timestamp associated with the commit point.public void transactionPrepare()
IChangeLog
IChangeLog.transactionCommited(long)
or
IChangeLog.transactionAborted()
.
Note: The listener will have observed all updates by the time this message is generated. Thus, this message can be used to validate post-conditions for the transaction.
transactionPrepare
in interface IChangeLog
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.