Package | Description |
---|---|
jgloss.dictionary |
Dictionary interfaces and implementations.
|
jgloss.dictionary.filebased |
Modifier and Type | Method and Description |
---|---|
boolean |
IndexBuilder.addEntry(int location,
int length,
DictionaryEntryField field)
Add an entry to the index structure.
|
boolean |
BinarySearchIndexBuilder.addEntry(int location,
int length,
DictionaryEntryField field) |
void |
IndexedDictionary.buildIndex()
Rebuild the index or add missing index data to an already existing index file.
|
int |
Indexable.compare(ByteBuffer data,
int position)
Compare the data in a buffer to an index entry.
|
int |
Indexable.compare(int pos1,
int pos2)
Compares two index entries.
|
void |
IndexContainer.createIndex(int indexType,
ByteBuffer data)
Add index data for a particular index type to the container.
|
void |
IndexContainer.deleteIndex(int indexType)
Delete the index data of a particular index type from the container.
|
void |
IndexBuilder.endBuildIndex(boolean commit)
End the index build.
|
void |
BinarySearchIndexBuilder.endBuildIndex(boolean commit) |
void |
IndexContainer.endEditing()
Switch the index container from
edit mode to access mode. |
protected int |
BinarySearchIndex.findMatch(Indexable dictionary,
ByteBuffer expression)
Returns the index of an index entry which matches the expression.
|
protected int |
BinarySearchIndex.findMatch(Indexable dictionary,
ByteBuffer expression,
int match,
boolean first)
Searches the index backwards/forwards from a matching entry to the
first/last match of an expression.
|
Indexable.CharData |
Indexable.getChar(int position,
Indexable.CharData outResult)
Decode the character at a given position in the indexable data.
|
Index.Iterator |
Index.getEntryPositions(Indexable dictionary,
ByteBuffer expression,
Object[] parameters)
Returns an iterator over index entries matching certain criteria.
|
Index.Iterator |
BinarySearchIndex.getEntryPositions(Indexable dictionary,
ByteBuffer expression,
Object[] parameters) |
ByteBuffer |
IndexContainer.getIndexData(int indexType)
Fetch the index data for a particular index type for read access.
|
boolean |
IndexedDictionary.loadIndex()
Load the index for the dictionary.
|
protected void |
BinarySearchIndexBuilder.quicksortIndex(int left,
int right,
IntBuffer index)
Sorts a part of the index array using randomized quicksort.
|
void |
Index.setContainer(IndexContainer container)
Sets the index container from which the index data is read.
|
void |
BinarySearchIndex.setContainer(IndexContainer container) |
void |
IndexBuilder.startBuildIndex(IndexContainer container,
Indexable dictionary)
Begin building a new index.
|
void |
BinarySearchIndexBuilder.startBuildIndex(IndexContainer _container,
Indexable _dictionary) |
Modifier and Type | Method and Description |
---|---|
void |
FileBasedDictionary.buildIndex() |
int |
FileBasedDictionary.compare(ByteBuffer data,
int position) |
int |
FileBasedDictionary.compare(int pos1,
int pos2) |
void |
FileIndexContainer.createIndex(int indexType,
ByteBuffer data) |
void |
FileIndexContainer.deleteIndex(int indexType) |
void |
FileIndexContainer.endEditing() |
Indexable.CharData |
FileBasedDictionary.getChar(int position,
Indexable.CharData result) |
ByteBuffer |
FileIndexContainer.getIndexData(int indexType) |
boolean |
FileBasedDictionary.loadIndex() |
Constructor and Description |
---|
FileIndexContainer(File _indexfile,
boolean _editMode)
Create a new file index container or open an existing file in edit or access mode.
|
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.