public class NonUniqueHashIndex extends HashIndex
indexColumncolumnIds, columns, indexColumns, indexType, isMultiVersion, tablecomment, database, traceAGGREGATE, 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, removecanFindNext, commit, compareRows, find, findNext, getColumnIndex, getColumns, getCreateSQL, getCreateSQLForCopy, getDropSQL, getIndexColumns, getIndexType, getPlanSQL, getRow, getTable, getType, initBaseIndex, isHidden, isRowIdIndex, removeChildrenAndResources, setSortedInsertModegetSchema, getSQL, initSchemaObjectBasegetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSchemagetChildren, getComment, getDatabase, getId, getName, getSQL, isTemporary, rename, setComment, setTemporarypublic NonUniqueHashIndex(RegularTable table, int id, String indexName, IndexColumn[] columns, IndexType indexType)
public void truncate(Session session)
Indexpublic void add(Session session, Row row)
Indexpublic void remove(Session session, Row row)
Indexpublic Cursor find(Session session, SearchRow first, SearchRow last)
Indexpublic long getRowCount(Session session)
IndexgetRowCount in interface IndexgetRowCount in class HashIndexsession - the sessionpublic long getRowCountApproximation()
IndexgetRowCountApproximation in interface IndexgetRowCountApproximation in class HashIndexCopyright © 2012 JBoss by Red Hat. All Rights Reserved.