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, isHidden, TYPE_CACHED, TYPE_MEMORYcomment, database, trace| 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()
Check if the row count can be retrieved quickly.
|
long |
getMax(Session session)
Calculate and get the end value of this range.
|
long |
getMaxDataModificationId()
Get the last data modification id.
|
long |
getMin(Session session)
Calculate and get the start value of this range.
|
long |
getRowCount(Session session)
Get the row count for this table.
|
long |
getRowCountApproximation()
Get the approximated row count for this table.
|
Index |
getScanIndex(Session session)
Get the scan index to iterate through all rows.
|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
boolean alwaysQuote)
Appends the SQL name of this object (may be quoted) to the specified
builder.
|
long |
getStep(Session 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, getDiskSpaceUsed, getDropSQL, getIndexes, getUniqueIndex, isLockedExclusively, lock, removeRow, truncate, unlockaddConstraint, addDependencies, addDependentView, addSequence, addSynonym, addTrigger, canTruncate, checkDeadlock, checkWritingAllowed, compareValues, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getDependentViews, getIndex, getIndexForColumn, getOnCommitDrop, getOnCommitTruncate, getOnUpdateValue, getPrimaryKey, getRow, getRowIdColumn, getScanIndex, getTemplateRow, getTemplateSimpleRow, getType, hasInsteadOfTrigger, hasSelectTrigger, isGlobalTemporary, isHidden, isLockedExclusivelyBy, isMVStore, isPersistData, isPersistIndexes, isQueryComparable, isTableExpression, isView, lockRow, removeChildrenAndResources, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, updateRow, updateRows, validateConvertUpdateSequencegetSchema, getSQLgetComment, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComment, getDatabase, getId, getName, isTemporary, setComment, setTemporarypublic 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,
boolean alwaysQuote)
DbObjectgetSQL in interface DbObjectgetSQL in class SchemaObjectBasebuilder - string builderalwaysQuote - quote all identifierspublic boolean canGetRowCount()
TablecanGetRowCount in class Tablepublic long getRowCount(Session session)
TablegetRowCount in class Tablesession - the sessionpublic TableType getTableType()
TablegetTableType in class VirtualTablepublic Index getScanIndex(Session session)
TablegetScanIndex in class Tablesession - the sessionpublic long getMin(Session session)
session - the sessionpublic long getMax(Session session)
session - the sessionpublic long getStep(Session session)
session - the sessionpublic long getMaxDataModificationId()
TablegetMaxDataModificationId in class Tablepublic long getRowCountApproximation()
TablegetRowCountApproximation in class Tablepublic boolean isDeterministic()
TableisDeterministic in class Table