public class NonUniqueHashIndex extends HashIndex
indexColumn
columnIds, columns, indexColumns, indexType, isMultiVersion, table
comment, database, trace
AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE
Constructor and Description |
---|
NonUniqueHashIndex(RegularTable table,
int id,
String indexName,
IndexColumn[] columns,
IndexType indexType) |
Modifier and Type | Method and Description |
---|---|
void |
add(Session session,
Row row)
Add a row to the index.
|
Cursor |
find(Session session,
SearchRow first,
SearchRow last)
Find a row or a list of rows and create a cursor to iterate over the result.
|
long |
getRowCount(Session session)
Get the row count of this table, for the given session.
|
long |
getRowCountApproximation()
Get the approximated row count for this table.
|
void |
remove(Session session,
Row row)
Remove a row from the index.
|
void |
truncate(Session session)
Remove all rows from the index.
|
canGetFirstOrLast, canScan, checkRename, close, findFirstOrLast, getCost, needRebuild, remove
canFindNext, commit, compareRows, find, findNext, getColumnIndex, getColumns, getCreateSQL, getCreateSQLForCopy, getDropSQL, getIndexColumns, getIndexType, getPlanSQL, getRow, getTable, getType, initBaseIndex, isHidden, isRowIdIndex, removeChildrenAndResources, setSortedInsertMode
getSchema, getSQL, initSchemaObjectBase
getChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSchema
getChildren, getComment, getDatabase, getId, getName, getSQL, isTemporary, rename, setComment, setTemporary
public NonUniqueHashIndex(RegularTable table, int id, String indexName, IndexColumn[] columns, IndexType indexType)
public void truncate(Session session)
Index
public void add(Session session, Row row)
Index
public void remove(Session session, Row row)
Index
public Cursor find(Session session, SearchRow first, SearchRow last)
Index
public long getRowCount(Session session)
Index
getRowCount
in interface Index
getRowCount
in class HashIndex
session
- the sessionpublic long getRowCountApproximation()
Index
getRowCountApproximation
in interface Index
getRowCountApproximation
in class HashIndex
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.