public class RecordDatabaseIndex extends RecordFoundEntries
| Modifier and Type | Field and Description |
|---|---|
String |
name |
protected PropertyList |
pl |
addNewOnesFirst, buffer, database, dispatcher, ids, indexName, indexRecorder, isAllInclusive, mySortID, needCompact, searcher, sortComparer, sortCriteria, sortState, viewsBOOLEAN, BYTE_ARRAY, CREATED_FIELD, DATE, DATE_TIME, DECIMAL, DOUBLE, FIRST_SPECIAL_FIELD, FLAG_SYNCHRONIZED, FLAGS_FIELD, INTEGER, JAVA_OBJECT, LONG, MAX_ID, MODIFIED_BY_FIELD, MODIFIED_FIELD, NAME_FIELD, OBJECT_BYTES_FIELD, OBJECT_TEXT_FIELD, OID_FIELD, OPTION_ERROR_ON_NEED_REINDEX, PLAIN_DATE, PLAIN_TIME, reservedFieldHeaders, reservedFieldIDs, reservedFieldNames, reservedFieldTypes, SORT_DATE_ONLY, SORT_IGNORE_CASE, SORT_TIME_ONLY, SORT_UNKNOWN_IS_GREATER_THAN_KNOWN, SORT_UNKNOWN_IS_LESS_THAN_KNOWN, STRING, TIME, TIMESTAMP| Modifier | Constructor and Description |
|---|---|
protected |
RecordDatabaseIndex(Database database,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compact(Handle h)
Compact the index so that it uses less space.
|
FoundEntries |
getEntries()
Get an ordinary FoundEntries from the entries in the index.
|
String |
getName() |
PropertyList |
getProperties()
Get the PropertyList object associated with this object.
|
boolean |
needsCompacting()
Check if the index could benefit significantly from compacting.
|
int |
size()
Return the number of entries in the index.
|
addEntriesFrom, clearEntries, copyEntriesFrom, doAdd, doChange, doDelete, doErase, doExclude, doInclude, doLoad, doSortMe, doStore, doStoreChange, doUpdate, indexFromFoundEntries, indexOf, readFrom, recordChange, writeToadd, addData, change, checkView, copyStateFrom, delete, deleted, dispatchEvent, erase, exclude, exclude, excludeAll, filterAll, findAll, findAll, findAll, findAll, findFirst, findFirst, findInsertIndex, findLast, findLast, findRange, get, get, get, getCopy, getCurrentState, getData, getData, getDatabase, getEmptyView, getEntrySelector, getEventDispatcher, getFullView, getNew, getNewFoundEntries, getSortComparer, getSortCriteria, getSortEntry, getSubSet, hasChangedSince, include, includeAll, includeExclude, isAllInclusive, isSorted, searchIsCompatibleWithSortState, searchWillFilter, set, setAddNewEntriesFirst, setAllInclusive, setData, setSort, size, sort, sort, sort, sort, sort, sort, sortMe, store, toString, validateEntries, writeAndReturnTrueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addData, change, delete, erase, exclude, exclude, excludeAll, filterAll, findAll, findAll, findAll, findAll, findFirst, findFirst, findInsertIndex, findLast, findLast, findRange, get, get, get, getCopy, getCurrentState, getData, getData, getDatabase, getEmptyView, getEntrySelector, getEventDispatcher, getFullView, getNew, getSortComparer, getSortCriteria, getSortEntry, getSubSet, hasChangedSince, include, includeAll, indexOf, isAllInclusive, isSorted, searchIsCompatibleWithSortState, set, setAddNewEntriesFirst, setAllInclusive, setData, sort, sort, sort, sort, sort, sort, storepublic String name
protected PropertyList pl
public String getName()
public boolean needsCompacting()
throws IOException
IOException - on error.public boolean compact(Handle h) throws IOException
IOExceptionpublic PropertyList getProperties()
HasPropertiespublic FoundEntries getEntries()
public int size()
size in interface FoundEntries