public interface DatabaseIndex extends Closeable
partitions.| Modifier and Type | Method and Description |
|---|---|
LuceneAllDocumentsReader |
allDocumentsReader()
Creates an iterable over all
documents 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.
IOExceptionvoid open() throws IOException
IOExceptionboolean isOpen()
boolean isReadOnly()
boolean exists()
throws IOException
IOExceptionboolean isValid()
void drop() throws IOException
IOExceptionvoid flush()
throws IOException
IOExceptionLuceneAllDocumentsReader allDocumentsReader()
documents in all partitions.org.neo4j.graphdb.ResourceIterator<File> snapshot() throws IOException
IOExceptionWritableIndexSnapshotFileIteratorvoid maybeRefreshBlocking()
throws IOException
IOExceptionList<AbstractIndexPartition> getPartitions()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.