public interface DatabaseIndex extends Closeable
partitions
.Modifier and Type | Method and Description |
---|---|
LuceneAllDocumentsReader |
allDocumentsReader()
Creates an iterable over all
document s in all partitions. |
void |
create()
Creates new index.
|
void |
drop()
Close index and deletes all it's partitions.
|
boolean |
exists()
Check lucene index existence within all allocated partitions.
|
void |
flush()
Commits all index partitions.
|
List<AbstractIndexPartition> |
getPartitions()
Get index partitions
|
boolean |
isOpen()
Check if index is open or not
|
boolean |
isReadOnly()
Check if index is opened in read only mode
|
boolean |
isValid()
Verify state of the index.
|
void |
maybeRefreshBlocking()
Refresh all partitions to make newly inserted data visible for readers.
|
void |
open()
Open index with all allocated partitions.
|
org.neo4j.graphdb.ResourceIterator<File> |
snapshot()
Snapshot of all file in all index partitions.
|
void create() throws IOException
Index creation do not automatically open it. To be able to use index please open it first.
IOException
void open() throws IOException
IOException
boolean isOpen()
boolean isReadOnly()
boolean exists() throws IOException
IOException
boolean isValid()
void drop() throws IOException
IOException
void flush() throws IOException
IOException
LuceneAllDocumentsReader allDocumentsReader()
document
s in all partitions.org.neo4j.graphdb.ResourceIterator<File> snapshot() throws IOException
IOException
WritableIndexSnapshotFileIterator
void maybeRefreshBlocking() throws IOException
IOException
List<AbstractIndexPartition> getPartitions()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.