public class RangeTable extends VirtualTable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALIAS
The PostgreSQL alias for the range table.
|
static java.lang.String |
NAME
The name of the range table.
|
columns, compareMode, EXCLUSIVE_LOCK, isHidden, READ_LOCK, TYPE_CACHED, TYPE_MEMORY, WRITE_LOCKAGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
RangeTable(Schema schema,
Expression min,
Expression max)
Create a new range with the given start and end expressions.
|
RangeTable(Schema schema,
Expression min,
Expression max,
Expression step) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetRowCount(SessionLocal session)
Check if the row count can be retrieved quickly.
|
java.util.ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
long |
getMax(SessionLocal session)
Calculate and get the end value of this range.
|
long |
getMaxDataModificationId()
Get the last data modification id.
|
long |
getMin(SessionLocal session)
Calculate and get the start value of this range.
|
long |
getRowCount(SessionLocal session)
Get the row count for this table.
|
long |
getRowCountApproximation(SessionLocal session)
Get the approximated row count for this table.
|
Index |
getScanIndex(SessionLocal session)
Get the scan index to iterate through all rows.
|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
int sqlFlags)
Appends the SQL statement of this object to the specified builder.
|
long |
getStep(SessionLocal session)
Get the increment.
|
TableType |
getTableType()
Get the table type name
|
boolean |
isDeterministic()
Check if the table is deterministic.
|
addIndex, addRow, canDrop, canReference, checkRename, checkSupportAlter, close, getCreateSQL, isInsertable, removeRow, truncateaddConstraint, addDependencies, 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, 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, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, unlock, updateRow, updateRowsgetSchema, getSQLgetComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic static final java.lang.String NAME
public static final java.lang.String ALIAS
public RangeTable(Schema schema, Expression min, Expression max)
schema - the schema (always the main schema)min - the start expressionmax - the end expressionpublic RangeTable(Schema schema, Expression min, Expression max, Expression step)
public java.lang.StringBuilder getSQL(java.lang.StringBuilder builder,
int sqlFlags)
HasSQLgetSQL in interface HasSQLgetSQL in class SchemaObjectbuilder - string buildersqlFlags - formatting flagspublic boolean canGetRowCount(SessionLocal session)
TablecanGetRowCount in class Tablesession - the sessionpublic long getRowCount(SessionLocal session)
TablegetRowCount in class Tablesession - the sessionpublic TableType getTableType()
TablegetTableType in class VirtualTablepublic Index getScanIndex(SessionLocal session)
TablegetScanIndex in class Tablesession - the sessionpublic java.util.ArrayList<Index> getIndexes()
TablegetIndexes in class VirtualTablepublic long getMin(SessionLocal session)
session - the sessionpublic long getMax(SessionLocal session)
session - the sessionpublic long getStep(SessionLocal session)
session - the sessionpublic long getMaxDataModificationId()
TablegetMaxDataModificationId in class Tablepublic long getRowCountApproximation(SessionLocal session)
TablegetRowCountApproximation in class Tablesession - the sessionpublic boolean isDeterministic()
TableisDeterministic in class Table