public interface Index extends Iterable<Record>, org.apache.jena.atlas.lib.Sync, org.apache.jena.atlas.lib.Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
bulkChanges(Stream<IndexChange> changes)
Bulk changes as given by a stream of changes.
|
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
|
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
|
long |
size()
Return size if known else return -1 : does not count the persistent storage
|
forEach, spliteratorsyncRecord find(Record record)
boolean contains(Record record)
boolean insert(Record record)
boolean delete(Record record)
default void bulkChanges(Stream<IndexChange> changes)
changes - RecordFactory getRecordFactory()
void close()
close in interface org.apache.jena.atlas.lib.Closeableboolean isEmpty()
void clear()
void check()
long size()
Licensed under the Apache License, Version 2.0