public abstract class BaseTempDictionary extends Object implements TempDictionary
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isOrganized |
protected TempDictionarySection |
objects |
protected TempDictionarySection |
predicates |
protected TempDictionarySection |
shared |
protected TempDictionarySection |
subjects |
| Constructor and Description |
|---|
BaseTempDictionary(HDTOptions spec) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty all the strings of the dictionary.
|
protected long |
getGlobalId(long id,
DictionarySectionRole position) |
TempDictionarySection |
getObjects() |
TempDictionarySection |
getPredicates() |
TempDictionarySection |
getShared() |
TempDictionarySection |
getSubjects() |
long |
insert(CharSequence str,
TripleComponentRole position)
Inserts a string in the dictionary in a position
|
boolean |
isOrganized() |
void |
reorganize()
Reorganizes the dictionary (Extract shared SO, sort sections).
|
void |
reorganize(TempTriples triples)
This method is used in the one-pass way of working in which case it
should not be used with a disk-backed dictionary because remapping
requires practically a copy of the dictionary which is very bad...
|
long |
stringToId(CharSequence str,
TripleComponentRole position)
Get the ID of a given String
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendProcessing, startProcessingprotected boolean isOrganized
protected TempDictionarySection subjects
protected TempDictionarySection predicates
protected TempDictionarySection objects
protected TempDictionarySection shared
public BaseTempDictionary(HDTOptions spec)
public long insert(CharSequence str, TripleComponentRole position)
TempDictionaryinsert in interface TempDictionarystr - The string to be insertedposition - TriplePosition to be inserted inpublic void reorganize()
TempDictionaryreorganize in interface TempDictionarypublic void reorganize(TempTriples triples)
reorganize in interface TempDictionarypublic boolean isOrganized()
isOrganized in interface TempDictionarypublic void clear()
TempDictionaryclear in interface TempDictionarypublic TempDictionarySection getSubjects()
getSubjects in interface TempDictionarypublic TempDictionarySection getPredicates()
getPredicates in interface TempDictionarypublic TempDictionarySection getObjects()
getObjects in interface TempDictionarypublic TempDictionarySection getShared()
getShared in interface TempDictionaryprotected long getGlobalId(long id,
DictionarySectionRole position)
public long stringToId(CharSequence str, TripleComponentRole position)
TempDictionarystringToId in interface TempDictionaryCopyright © 2018 DataWeb Research. All rights reserved.