public class HDTImpl extends Object implements HDTPrivate
| Modifier and Type | Field and Description |
|---|---|
protected DictionaryPrivate |
dictionary |
protected HeaderPrivate |
header |
protected TriplesPrivate |
triples |
| Constructor and Description |
|---|
HDTImpl(HDTOptions spec) |
protected HeaderPrivate header
protected DictionaryPrivate dictionary
protected TriplesPrivate triples
public HDTImpl(HDTOptions spec)
spec2 - public void populateHeaderStructure(String baseUri)
populateHeaderStructure in interface HDTPrivatepublic void loadFromHDT(InputStream input, ProgressListener listener) throws IOException
HDTPrivateloadFromHDT in interface HDTPrivateinput - InputStream to read fromIOExceptionpublic void loadFromHDT(String hdtFileName, ProgressListener listener) throws IOException
HDTPrivateloadFromHDT in interface HDTPrivateIOExceptionpublic void mapFromHDT(File f, long offset, ProgressListener listener) throws IOException
mapFromHDT in interface HDTPrivateIOExceptionpublic void saveToHDT(OutputStream output, ProgressListener listener) throws IOException
saveToHDT in interface HDTIOExceptionpublic void saveToHDT(String fileName, ProgressListener listener) throws IOException
saveToHDT in interface HDTIOExceptionpublic IteratorTripleString search(CharSequence subject, CharSequence predicate, CharSequence object) throws NotFoundException
search in interface RDFAccessNotFoundExceptionpublic Dictionary getDictionary()
getDictionary in interface HDTpublic Triples getTriples()
getTriples in interface HDTpublic void loadFromParts(HeaderPrivate h, DictionaryPrivate d, TriplesPrivate t)
public void loadFromModifiableHDT(TempHDT modHdt, ProgressListener listener)
public void loadOrCreateIndex(ProgressListener listener)
HDTPrivateloadOrCreateIndex in interface HDTPrivatelistener - A listener to be notified of the progress.public String getBaseURI()
getBaseURI in interface HDTprotected void setTriples(TriplesPrivate triples)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getHDTFileName()
public boolean isClosed()
public boolean isMapped()
Copyright © 2018 DataWeb Research. All rights reserved.