public class RangeIndexWrapper extends Object implements RangeIndex
| Constructor and Description |
|---|
RangeIndexWrapper(RangeIndex rIdx) |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Perform checks on this index
|
void |
clear()
Clear the index
|
void |
close()
Close the index - can not be used again through this object
|
boolean |
contains(Record record)
Return whether the index contains the record or not.
|
boolean |
delete(Record record)
Delete a record - Return true if a record was actually removed
|
Record |
find(Record record)
Find one record - and return the record actually in the index (may have a value part)
|
RecordFactory |
getRecordFactory()
Get the Record factory associated with this index
|
RangeIndex |
getWrapped() |
boolean |
insert(Record record)
Insert a record - return true if an insertion was actually needed
|
boolean |
isEmpty()
Answer whether the index is empty or not.
|
Iterator<Record> |
iterator()
Iterate over the whole index
|
Iterator<Record> |
iterator(Record minRec,
Record maxRec)
Return records between min (inclusive) and max (exclusive), based on the record keys
|
<X> Iterator<X> |
iterator(Record minRec,
Record maxRec,
RecordMapper<X> mapper) |
Record |
maxKey()
Return the record containing the greatest key - may or may not have the associated value
|
Record |
minKey()
Return the record containing the least key - may or may not have the associated value
|
long |
size()
Return size if known else return -1 : does not count the persistent storage
|
void |
sync() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkChangesforEach, spliteratorpublic RangeIndexWrapper(RangeIndex rIdx)
public Record find(Record record)
Indexpublic boolean contains(Record record)
Indexpublic Record minKey()
RangeIndexminKey in interface RangeIndexpublic Record maxKey()
RangeIndexmaxKey in interface RangeIndexpublic boolean insert(Record record)
Indexpublic boolean delete(Record record)
Indexpublic Iterator<Record> iterator()
Indexpublic Iterator<Record> iterator(Record minRec, Record maxRec)
RangeIndexiterator in interface RangeIndexpublic <X> Iterator<X> iterator(Record minRec, Record maxRec, RecordMapper<X> mapper)
iterator in interface RangeIndexpublic boolean isEmpty()
Indexpublic void clear()
Indexpublic void sync()
sync in interface org.apache.jena.atlas.lib.Syncpublic void close()
Indexclose in interface org.apache.jena.atlas.lib.Closeableclose in interface Indexpublic RangeIndex getWrapped()
public RecordFactory getRecordFactory()
IndexgetRecordFactory in interface Indexpublic void check()
IndexLicensed under the Apache License, Version 2.0