public class FunctionTable extends Table
columns, compareMode, EXTERNAL_TABLE_ENGINE, isHidden, SYSTEM_TABLE, TABLE, TABLE_LINK, TYPE_CACHED, TYPE_MEMORY, VIEWcomment, database, traceAGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE| Constructor and Description |
|---|
FunctionTable(Schema schema,
Session session,
Expression functionExpr,
FunctionCall function) |
| Modifier and Type | Method and Description |
|---|---|
Index |
addIndex(Session session,
String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
String indexComment)
Create an index for this table
|
void |
addRow(Session session,
Row row)
Add a row to the table and all indexes.
|
boolean |
canDrop()
Check if this table can be dropped.
|
boolean |
canGetRowCount()
Check if the row count can be retrieved quickly.
|
boolean |
canReference()
Check if this table can be referenced.
|
void |
checkRename()
Check if this object can be renamed.
|
void |
checkSupportAlter()
Check if this table supports ALTER TABLE.
|
void |
close(Session session)
Close the table object and flush changes.
|
String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
String |
getDropSQL()
Build a SQL statement to drop this object.
|
ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
long |
getMaxDataModificationId()
Get the last data modification id.
|
ResultInterface |
getResult(Session session)
Read the result from the function.
|
ResultSet |
getResultSet(Session session)
Read the result set from the function.
|
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.
|
String |
getSQL()
Get the SQL name of this object (may be quoted).
|
String |
getTableType()
Get the table type name
|
Index |
getUniqueIndex()
Get any unique index for this table if one exists.
|
boolean |
isDeterministic()
Check if the table is deterministic.
|
boolean |
isFast() |
boolean |
isLockedExclusively()
Check if this table is locked exclusively.
|
void |
lock(Session session,
boolean exclusive,
boolean force)
Lock the table for the given session.
|
void |
removeRow(Session session,
Row row)
Remove a row from the table and all indexes.
|
void |
truncate(Session session)
Remove all rows from the table and indexes.
|
void |
unlock(Session s)
Release the lock for this session.
|
addConstraint, addDependencies, addSequence, addTrigger, addView, canTruncate, checkDeadlock, checkWritingAllowed, commit, compareTypeSave, doesColumnExist, dropSingleColumnConstraintsAndIndexes, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getIndexForColumn, getOnCommitDrop, getOnCommitTruncate, getPrimaryKey, getRowIdColumn, getTemplateRow, getTemplateSimpleRow, getType, getViews, hasSelectTrigger, isGlobalTemporary, isHidden, isLockedExclusivelyBy, isPersistData, isPersistIndexes, removeChildrenAndResources, removeConstraint, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeTrigger, removeView, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, updateRows, validateConvertUpdateSequencegetSchema, initSchemaObjectBasegetComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComment, getDatabase, getId, getName, isTemporary, setComment, setTemporarypublic FunctionTable(Schema schema, Session session, Expression functionExpr, FunctionCall function)
public void lock(Session session, boolean exclusive, boolean force)
Tablepublic void close(Session session)
Tablepublic void unlock(Session s)
Tablepublic boolean isLockedExclusively()
TableisLockedExclusively in class Tablepublic Index addIndex(Session session, String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, String indexComment)
Tablepublic void removeRow(Session session, Row row)
Tablepublic void truncate(Session session)
Tablepublic boolean canDrop()
Tablepublic void addRow(Session session, Row row)
Tablepublic void checkSupportAlter()
TablecheckSupportAlter in class Tablepublic String getTableType()
TablegetTableType in class Tablepublic Index getScanIndex(Session session)
TablegetScanIndex in class Tablesession - the sessionpublic ArrayList<Index> getIndexes()
TablegetIndexes in class Tablepublic boolean canGetRowCount()
TablecanGetRowCount in class Tablepublic long getRowCount(Session session)
TablegetRowCount in class Tablesession - the sessionpublic String getCreateSQL()
DbObjectBasegetCreateSQL in interface DbObjectgetCreateSQL in class DbObjectBasepublic String getDropSQL()
DbObjectBasegetDropSQL in interface DbObjectgetDropSQL in class DbObjectBasepublic void checkRename()
DbObjectBasecheckRename in interface DbObjectcheckRename in class DbObjectBasepublic ResultInterface getResult(Session session)
session - the sessionpublic ResultSet getResultSet(Session session)
session - the sessionpublic boolean isFast()
public long getMaxDataModificationId()
TablegetMaxDataModificationId in class Tablepublic Index getUniqueIndex()
TablegetUniqueIndex in class Tablepublic String getSQL()
DbObjectgetSQL in interface DbObjectgetSQL in class SchemaObjectBasepublic long getRowCountApproximation()
TablegetRowCountApproximation in class Tablepublic boolean isDeterministic()
TableisDeterministic in class Tablepublic boolean canReference()
TablecanReference in class TableCopyright © 2012 JBoss by Red Hat. All Rights Reserved.