public class TempHDTImpl extends Object implements TempHDT
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseUri |
protected TempDictionary |
dictionary |
protected Header |
header |
protected boolean |
isOrganized |
protected ModeOfLoading |
modeOfLoading |
protected long |
rawsize |
protected TempTriples |
triples |
| Constructor and Description |
|---|
TempHDTImpl(HDTOptions spec,
String baseUri,
ModeOfLoading modeOfLoading) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
String |
getBaseURI() |
TempDictionary |
getDictionary() |
Header |
getHeader() |
long |
getRawSize() |
TempTriples |
getTriples() |
void |
insert(CharSequence subject,
CharSequence predicate,
CharSequence object) |
boolean |
isOrganized() |
void |
reorganizeDictionary(ProgressListener listener)
This method should be used before reorganizing triples!
It reorganizes the dictionary and updates it's ID's
(usually done just by calling reorganize method of
dictionary)
|
void |
reorganizeTriples(ProgressListener listener)
It sorts the triples and removes duplicates.
|
protected final Header header
protected final TempDictionary dictionary
protected final TempTriples triples
protected final String baseUri
protected ModeOfLoading modeOfLoading
protected boolean isOrganized
protected long rawsize
public TempHDTImpl(HDTOptions spec, String baseUri, ModeOfLoading modeOfLoading)
public TempDictionary getDictionary()
getDictionary in interface TempHDTpublic TempTriples getTriples()
getTriples in interface TempHDTpublic void insert(CharSequence subject, CharSequence predicate, CharSequence object)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getBaseURI()
getBaseURI in interface TempHDTpublic void reorganizeDictionary(ProgressListener listener)
TempHDTreorganizeDictionary in interface TempHDTpublic void reorganizeTriples(ProgressListener listener)
TempHDTreorganizeTriples in interface TempHDTpublic boolean isOrganized()
isOrganized in interface TempHDTpublic long getRawSize()
Copyright © 2018 DataWeb Research. All rights reserved.