public interface Dictionary extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
getNobjects()
Returns the number of objects in the dictionary.
|
long |
getNpredicates()
Returns the number of predicates in the dictionary.
|
long |
getNshared()
Returns the number of subjects/objects in the dictionary.
|
long |
getNsubjects()
Returns the number of subjects in the dictionary.
|
long |
getNumberOfElements()
Returns the number of elements in the dictionary
|
DictionarySection |
getObjects() |
DictionarySection |
getPredicates() |
DictionarySection |
getShared() |
DictionarySection |
getSubjects() |
String |
getType()
Returns the type of the dictionary (the way it is written onto file/held in memory)
|
CharSequence |
idToString(long id,
TripleComponentRole position)
Returns the string for a given id
|
void |
populateHeader(Header header,
String rootNode)
Fills the header with information from the dictionary
|
long |
size()
Return the combined size of the sections of the dictionary (in bytes)
|
long |
stringToId(CharSequence str,
TripleComponentRole position)
Returns the id for a given string
|
CharSequence idToString(long id, TripleComponentRole position)
id
- The id to convert to stringposition
- TriplePosition of the id in the dictionarylong stringToId(CharSequence str, TripleComponentRole position)
str
- The string to convert to idposition
- TriplePosition of the string in the dictionarylong getNumberOfElements()
long size()
long getNsubjects()
long getNpredicates()
long getNobjects()
long getNshared()
DictionarySection getSubjects()
DictionarySection getPredicates()
DictionarySection getObjects()
DictionarySection getShared()
void populateHeader(Header header, String rootNode)
String getType()
Copyright © 2020 DataWeb Research. All rights reserved.