public class RecordFoundEntries extends FoundEntriesObject
addNewOnesFirst, buffer, database, dispatcher, ids, indexName, indexRecorder, isAllInclusive, mySortID, needCompact, searcher, sortComparer, sortCriteria, sortState, views
BOOLEAN, 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 |
RecordFoundEntries(Database database) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEntriesFrom(FoundEntriesObject from,
int start,
int length) |
protected void |
clearEntries() |
protected void |
copyEntriesFrom(FoundEntriesObject from,
int start,
int length) |
protected int |
doAdd(DatabaseEntryObject entry) |
protected int |
doChange(int index,
DatabaseEntryObject entry) |
protected void |
doDelete(int index,
DatabaseEntryObject entry) |
protected void |
doErase(int index,
DatabaseEntryObject entry) |
protected void |
doExclude(int index) |
protected int |
doInclude(DatabaseEntryObject entry) |
protected void |
doLoad(int index,
DatabaseEntryObject data) |
protected boolean |
doSortMe(Handle h,
Comparer comparer) |
protected int |
doStore(int index,
DatabaseEntryObject entry) |
protected int |
doStoreChange(int index,
DatabaseEntryObject entry,
boolean isStore) |
protected void |
doUpdate(int index,
DatabaseEntryObject entry) |
protected void |
indexFromFoundEntries(FoundEntries entries) |
int |
indexOf(DatabaseEntry entry)
Return the index of the entry in the FoundEntries object.
|
protected boolean |
readFrom(InputStream stream,
Handle h,
int size) |
protected void |
recordChange(int oldIndex,
int newIndex,
DatabaseEntry e)
If new Index is -1 the entry at oldIndex was deleted and the entry e will be null.
|
protected boolean |
writeTo(OutputStream stream,
Handle h)
Write the FoundEntries to an OutputStream and put in the returnValue of the Handle,
an ewe.sys.Long object holding the number of bytes written.
|
add, 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, writeAndReturnTrue
protected RecordFoundEntries(Database database)
protected void copyEntriesFrom(FoundEntriesObject from, int start, int length)
copyEntriesFrom
in class FoundEntriesObject
protected void clearEntries()
clearEntries
in class FoundEntriesObject
protected void addEntriesFrom(FoundEntriesObject from, int start, int length)
addEntriesFrom
in class FoundEntriesObject
protected int doChange(int index, DatabaseEntryObject entry) throws IOException
doChange
in class FoundEntriesObject
IOException
protected int doStore(int index, DatabaseEntryObject entry) throws IOException
doStore
in class FoundEntriesObject
IOException
protected int doStoreChange(int index, DatabaseEntryObject entry, boolean isStore) throws IOException
IOException
protected int doAdd(DatabaseEntryObject entry) throws IOException
doAdd
in class FoundEntriesObject
IOException
protected void doDelete(int index, DatabaseEntryObject entry) throws IOException
doDelete
in class FoundEntriesObject
IOException
protected void doErase(int index, DatabaseEntryObject entry) throws IOException
doErase
in class FoundEntriesObject
IOException
protected int doInclude(DatabaseEntryObject entry) throws IllegalArgumentException, IOException
doInclude
in class FoundEntriesObject
IllegalArgumentException
IOException
protected void doUpdate(int index, DatabaseEntryObject entry) throws IOException
doUpdate
in class FoundEntriesObject
IOException
protected void doExclude(int index)
doExclude
in class FoundEntriesObject
protected void doLoad(int index, DatabaseEntryObject data) throws IOException
doLoad
in class FoundEntriesObject
IOException
public int indexOf(DatabaseEntry entry)
FoundEntries
entry
- the entry to look for.protected boolean doSortMe(Handle h, Comparer comparer) throws IOException
doSortMe
in class FoundEntriesObject
IOException
protected void recordChange(int oldIndex, int newIndex, DatabaseEntry e) throws IOException
FoundEntriesObject
recordChange
in class FoundEntriesObject
IOException
protected boolean writeTo(OutputStream stream, Handle h) throws IOException
writeTo
in class FoundEntriesObject
IOException
protected boolean readFrom(InputStream stream, Handle h, int size) throws IOException
readFrom
in class FoundEntriesObject
IOException
protected void indexFromFoundEntries(FoundEntries entries)
indexFromFoundEntries
in class FoundEntriesObject