public class DataChangeDeltaTable extends VirtualConstructedTable
Modifier and Type | Class and Description |
---|---|
static class |
DataChangeDeltaTable.ResultOption
Result option.
|
columns, compareMode, EXCLUSIVE_LOCK, isHidden, READ_LOCK, TYPE_CACHED, TYPE_MEMORY, WRITE_LOCK
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USER
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Constructor and Description |
---|
DataChangeDeltaTable(Schema schema,
SessionLocal session,
DataChangeStatement statement,
DataChangeDeltaTable.ResultOption resultOption) |
Modifier and Type | Method and Description |
---|---|
boolean |
canGetRowCount(SessionLocal session)
Check if the row count can be retrieved quickly.
|
static void |
collectInsertedFinalRow(SessionLocal session,
Table table,
ResultTarget deltaChangeCollector,
DataChangeDeltaTable.ResultOption deltaChangeCollectionMode,
Row newRow)
Collects final row for INSERT operations.
|
ResultInterface |
getResult(SessionLocal session)
Read the rows from the table.
|
long |
getRowCount(SessionLocal session)
Get the row count for this table.
|
long |
getRowCountApproximation(SessionLocal session)
Get the approximated row count for this table.
|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
int sqlFlags)
Appends the SQL statement of this object to the specified builder.
|
boolean |
isDeterministic()
Check if the table is deterministic.
|
getMaxDataModificationId, getScanIndex
addIndex, addRow, canDrop, canReference, checkRename, checkSupportAlter, close, getCreateSQL, getIndexes, getTableType, isInsertable, removeRow, truncate
addConstraint, addDependencies, addDependentMaterializedView, addDependentView, addSequence, addSynonym, addTrigger, canTruncate, checkDeadlock, checkWritingAllowed, compareValues, convertInsertRow, convertUpdateRow, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getDependentMaterializedViews, getDependentViews, getDiskSpaceUsed, getIdentityColumn, getIndex, getIndexForColumn, getMainIndexColumn, getNullRow, getOnCommitDrop, getOnCommitTruncate, getPrimaryKey, getRow, getRowFactory, getRowIdColumn, getScanIndex, getSQLTableType, getTemplateRow, getTemplateSimpleRow, getTriggers, getType, hasSelectTrigger, isGlobalTemporary, isHidden, isLockedExclusively, isLockedExclusivelyBy, isPersistData, isPersistIndexes, isQueryComparable, isRowLockable, isTableExpression, isView, lock, lockRow, removeChildrenAndResources, removeColumnExpressionsDependencies, removeConstraint, removeDependentMaterializedView, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, unlock, updateRow, updateRows
getSchema, getSQL
getComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
public DataChangeDeltaTable(Schema schema, SessionLocal session, DataChangeStatement statement, DataChangeDeltaTable.ResultOption resultOption)
public static void collectInsertedFinalRow(SessionLocal session, Table table, ResultTarget deltaChangeCollector, DataChangeDeltaTable.ResultOption deltaChangeCollectionMode, Row newRow)
session
- the sessiontable
- the tabledeltaChangeCollector
- target resultdeltaChangeCollectionMode
- collection modenewRow
- the inserted rowpublic boolean canGetRowCount(SessionLocal session)
Table
canGetRowCount
in class Table
session
- the sessionpublic long getRowCount(SessionLocal session)
Table
getRowCount
in class Table
session
- the sessionpublic long getRowCountApproximation(SessionLocal session)
Table
getRowCountApproximation
in class Table
session
- the sessionpublic ResultInterface getResult(SessionLocal session)
VirtualConstructedTable
getResult
in class VirtualConstructedTable
session
- the sessionpublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder, int sqlFlags)
HasSQL
getSQL
in interface HasSQL
getSQL
in class SchemaObject
builder
- string buildersqlFlags
- formatting flagspublic boolean isDeterministic()
Table
isDeterministic
in class Table