public class PSFCTempDictionary extends Object implements TempDictionary
| Constructor and Description |
|---|
PSFCTempDictionary(TempDictionary delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty all the strings of the dictionary.
|
void |
close() |
void |
endProcessing()
To be executed at the end of the processing
|
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)
Reorganizes the dictionary (Extract shared SO, sort sections)
and updates the IDs of the triples (used for one-pass way of work).
|
void |
startProcessing()
To be executed at the start of the processing
|
long |
stringToId(CharSequence subject,
TripleComponentRole role)
Get the ID of a given String
|
public PSFCTempDictionary(TempDictionary delegate)
public long stringToId(CharSequence subject, TripleComponentRole role)
TempDictionarystringToId in interface TempDictionarypublic long insert(CharSequence str, TripleComponentRole position)
TempDictionaryinsert in interface TempDictionarystr - The string to be insertedposition - TriplePosition to be inserted inpublic TempDictionarySection getSubjects()
getSubjects in interface TempDictionarypublic TempDictionarySection getPredicates()
getPredicates in interface TempDictionarypublic TempDictionarySection getObjects()
getObjects in interface TempDictionarypublic TempDictionarySection getShared()
getShared in interface TempDictionarypublic void startProcessing()
TempDictionarystartProcessing in interface TempDictionarypublic void endProcessing()
TempDictionaryendProcessing in interface TempDictionarypublic boolean isOrganized()
isOrganized in interface TempDictionarypublic void reorganize()
TempDictionaryreorganize in interface TempDictionarypublic void reorganize(TempTriples triples)
TempDictionaryreorganize in interface TempDictionarypublic void clear()
TempDictionaryclear in interface TempDictionarypublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 DataWeb Research. All rights reserved.