- All Superinterfaces:
org.apache.jena.atlas.lib.Closeable, Iterable<Record>, org.apache.jena.atlas.lib.Sync
- All Known Subinterfaces:
RangeIndex
- All Known Implementing Classes:
BPlusTree, ExtHash, IndexLogger, IndexMap, IndexWrapper, RangeIndexLogger, RangeIndexWrapper
public interface Index
extends Iterable<Record>, org.apache.jena.atlas.lib.Sync, org.apache.jena.atlas.lib.Closeable
-
Method Summary
boolean
Add a record - return true if an insertion was actually needed
void
Perform checks on this index
void
void
Close the index - can not be used again through this object
boolean
Return whether the index contains the record or not.
boolean
Find one record - and return the record actually in the index (may have a value part)
Get the Record factory associated with this index
boolean
Answer whether the index is empty or not.
Iterate over the whole index
long
Return size if known else return -1 : does not count the persistent storage
Methods inherited from interface org.apache.jena.atlas.lib.Sync
sync
-
Method Details
-
find
Find one record - and return the record actually in the index (may have a value part)
-
contains
boolean contains(Record record)
Return whether the index contains the record or not.
-
add
Add a record - return true if an insertion was actually needed
-
delete
Delete a record. Return true if a record was actually removed
-
-
getRecordFactory
Get the Record factory associated with this index
-
close
void close()
Close the index - can not be used again through this object
- Specified by:
close in interface org.apache.jena.atlas.lib.Closeable
-
isEmpty
boolean isEmpty()
Answer whether the index is empty or not. May return false for unknown or meaningless
-
clear
void clear()
Clear the index
-
check
void check()
Perform checks on this index
-
size
long size()
Return size if known else return -1 : does not count the persistent storage