- All Superinterfaces:
org.apache.jena.atlas.lib.Closeable,Iterable<org.apache.jena.dboe.base.record.Record>,org.apache.jena.atlas.lib.Sync
- All Known Subinterfaces:
RangeIndex
- All Known Implementing Classes:
IndexLogger,IndexMap,IndexWrapper,RangeIndexLogger,RangeIndexWrapper
public interface Index
extends Iterable<org.apache.jena.dboe.base.record.Record>, org.apache.jena.atlas.lib.Sync, org.apache.jena.atlas.lib.Closeable
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Perform checks on this indexvoidclear()Clear the indexvoidclose()Close the index - can not be used again through this objectbooleancontains(org.apache.jena.dboe.base.record.Record record) Return whether the index contains the record or not.booleandelete(org.apache.jena.dboe.base.record.Record record) Delete a record - Return true if a record was actually removedorg.apache.jena.dboe.base.record.Recordfind(org.apache.jena.dboe.base.record.Record record) Find one record - and return the record actually in the index (may have a value part)org.apache.jena.dboe.base.record.RecordFactoryGet the Record factory associated with this indexbooleaninsert(org.apache.jena.dboe.base.record.Record record) Insert a record - return true if an insertion was actually neededbooleanisEmpty()Answer whether the index is empty or not.Iterator<org.apache.jena.dboe.base.record.Record>iterator()Iterate over the whole indexlongsize()Return size if known else return -1 : does not count the persistent storageMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.jena.atlas.lib.Sync
sync
-
Method Details
-
find
org.apache.jena.dboe.base.record.Record find(org.apache.jena.dboe.base.record.Record record) Find one record - and return the record actually in the index (may have a value part) -
contains
boolean contains(org.apache.jena.dboe.base.record.Record record) Return whether the index contains the record or not. -
insert
boolean insert(org.apache.jena.dboe.base.record.Record record) Insert a record - return true if an insertion was actually needed -
delete
boolean delete(org.apache.jena.dboe.base.record.Record record) Delete a record - Return true if a record was actually removed -
iterator
Iterator<org.apache.jena.dboe.base.record.Record> iterator()Iterate over the whole index -
getRecordFactory
org.apache.jena.dboe.base.record.RecordFactory 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:
closein interfaceorg.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
-