public class BitmapTriples extends Object implements TriplesPrivate
| Modifier and Type | Field and Description |
|---|---|
protected AdjacencyList |
adjIndex |
protected AdjacencyList |
adjY |
protected AdjacencyList |
adjZ |
protected Bitmap |
bitmapIndexZ |
protected Bitmap |
bitmapY |
protected Bitmap |
bitmapZ |
protected Sequence |
indexZ |
protected TripleComponentOrder |
order |
protected Sequence |
predicateCount |
PredicateIndex |
predicateIndex |
protected Sequence |
seqY |
protected Sequence |
seqZ |
| Constructor and Description |
|---|
BitmapTriples() |
BitmapTriples(HDTOptions spec) |
BitmapTriples(Sequence seqY,
Sequence seqZ,
Bitmap bitY,
Bitmap bitZ,
TripleComponentOrder order) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
generateIndex(ProgressListener listener)
Generates the associated Index
|
Bitmap |
getBitmapY() |
Bitmap |
getBitmapZ() |
Sequence |
getIndexZ() |
long |
getNumberOfElements() |
TripleComponentOrder |
getOrder() |
Sequence |
getPredicateCount() |
Sequence |
getSeqY() |
Sequence |
getSeqZ() |
String |
getType() |
void |
load(InputStream input,
ControlInfo ci,
ProgressListener listener)
Loads the structure from an InputStream
|
void |
load(IteratorTripleID it,
ProgressListener listener) |
void |
load(TempTriples triples,
ProgressListener listener)
Loads triples from another Triples Structure
|
void |
loadIndex(InputStream input,
ControlInfo ci,
ProgressListener listener)
Loads the associated Index from an InputStream
|
void |
mapFromFile(CountInputStream input,
File f,
ProgressListener listener) |
void |
mapIndex(CountInputStream input,
File f,
ControlInfo ci,
ProgressListener listener)
Loads the associated Index from an InputStream
|
void |
populateHeader(Header header,
String rootNode) |
void |
save(OutputStream output,
ControlInfo ci,
ProgressListener listener)
Serializes the triples to an OutputStream
|
void |
saveIndex(OutputStream output,
ControlInfo ci,
ProgressListener listener)
Saves the associated Index to an OutputStream
|
IteratorTripleID |
search(TripleID pattern) |
IteratorTripleID |
searchAll() |
long |
size() |
protected TripleComponentOrder order
protected Sequence seqY
protected Sequence seqZ
protected Sequence indexZ
protected Sequence predicateCount
protected Bitmap bitmapY
protected Bitmap bitmapZ
protected Bitmap bitmapIndexZ
protected AdjacencyList adjY
protected AdjacencyList adjZ
protected AdjacencyList adjIndex
public PredicateIndex predicateIndex
public BitmapTriples()
public BitmapTriples(HDTOptions spec)
public BitmapTriples(Sequence seqY, Sequence seqZ, Bitmap bitY, Bitmap bitZ, TripleComponentOrder order)
public Sequence getPredicateCount()
public void load(IteratorTripleID it, ProgressListener listener)
public void load(TempTriples triples, ProgressListener listener)
TriplesPrivateload in interface TriplesPrivatetriples - The TempTriples input to load frompublic IteratorTripleID search(TripleID pattern)
public IteratorTripleID searchAll()
public long getNumberOfElements()
getNumberOfElements in interface Triplespublic void save(OutputStream output, ControlInfo ci, ProgressListener listener) throws IOException
TriplesPrivatesave in interface TriplesPrivateoutput - The OutputStream to save the triples toIOExceptionpublic void load(InputStream input, ControlInfo ci, ProgressListener listener) throws IOException
TriplesPrivateload in interface TriplesPrivateinput - The InputStream to load the file fromIOExceptionpublic void mapFromFile(CountInputStream input, File f, ProgressListener listener) throws IOException
mapFromFile in interface TriplesPrivateIOExceptionpublic void generateIndex(ProgressListener listener)
TriplesPrivategenerateIndex in interface TriplesPrivatepublic void populateHeader(Header header, String rootNode)
populateHeader in interface Triplespublic void saveIndex(OutputStream output, ControlInfo ci, ProgressListener listener) throws IOException
TriplesPrivatesaveIndex in interface TriplesPrivateoutput - The OutputStream to save the indexIOExceptionpublic void loadIndex(InputStream input, ControlInfo ci, ProgressListener listener) throws IOException
TriplesPrivateloadIndex in interface TriplesPrivateinput - The InputStream to load the index fromIOExceptionpublic void mapIndex(CountInputStream input, File f, ControlInfo ci, ProgressListener listener) throws IOException
TriplesPrivatemapIndex in interface TriplesPrivateinput - The InputStream to load the index fromIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic TripleComponentOrder getOrder()
public Sequence getIndexZ()
public Sequence getSeqY()
public Sequence getSeqZ()
public Bitmap getBitmapY()
public Bitmap getBitmapZ()
Copyright © 2018 DataWeb Research. All rights reserved.