public class LuceneDataSource
extends org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource
XaDataSource
optimized for the LuceneIndexImplementation
.
This class is public because the XA framework requires it.Modifier and Type | Class and Description |
---|---|
static class |
LuceneDataSource.Configuration |
static class |
LuceneDataSource.LuceneCommandReaderFactory |
Modifier and Type | Field and Description |
---|---|
static byte[] |
DEFAULT_BRANCH_ID |
static String |
DEFAULT_NAME |
static long |
INDEX_VERSION |
static org.apache.lucene.analysis.Analyzer |
KEYWORD_ANALYZER |
static org.apache.lucene.analysis.Analyzer |
LOWER_CASE_WHITESPACE_ANALYZER
Default
Analyzer for fulltext parsing. |
static org.apache.lucene.util.Version |
LUCENE_VERSION |
static org.apache.lucene.analysis.Analyzer |
WHITESPACE_ANALYZER |
Constructor and Description |
---|
LuceneDataSource(org.neo4j.kernel.configuration.Config config,
org.neo4j.kernel.impl.index.IndexStore indexStore,
org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction,
org.neo4j.kernel.impl.transaction.xaframework.XaFactory xaFactory,
TransactionManager txManager)
Constructs this data source.
|
Modifier and Type | Method and Description |
---|---|
org.neo4j.kernel.impl.transaction.xaframework.LogBufferFactory |
createLogBufferFactory() |
long |
getCreationTime() |
long |
getCurrentLogVersion() |
long |
getLastCommittedTxId() |
long |
getRandomIdentifier() |
org.neo4j.kernel.impl.transaction.xaframework.XaConnection |
getXaConnection() |
org.neo4j.kernel.impl.transaction.xaframework.XaContainer |
getXaContainer() |
void |
init() |
org.neo4j.graphdb.ResourceIterator<File> |
listLogicalLogs() |
org.neo4j.graphdb.ResourceIterator<File> |
listStoreFiles() |
org.neo4j.graphdb.ResourceIterator<File> |
listStoreFiles(boolean includeLogicalLogs) |
org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> |
nodeIndex(String indexName,
org.neo4j.graphdb.GraphDatabaseService graphDb,
LuceneIndexImplementation luceneIndexImplementation) |
org.neo4j.graphdb.index.RelationshipIndex |
relationshipIndex(String indexName,
org.neo4j.graphdb.GraphDatabaseService gdb,
LuceneIndexImplementation luceneIndexImplementation) |
void |
setLastCommittedTxId(long txId) |
void |
shutdown() |
void |
start() |
void |
stop() |
deleteLogicalLog, getFileName, getLogExtractor, getLogicalLog, getLogicalLogLength, getMasterForCommittedTx, getPreparedTransaction, getPreparedTransaction, hasLogicalLog, rotateLogicalLog, setAutoRotate, setLogicalLogTargetSize
public static final org.apache.lucene.util.Version LUCENE_VERSION
public static final String DEFAULT_NAME
public static final byte[] DEFAULT_BRANCH_ID
public static final long INDEX_VERSION
public static final org.apache.lucene.analysis.Analyzer LOWER_CASE_WHITESPACE_ANALYZER
Analyzer
for fulltext parsing.public static final org.apache.lucene.analysis.Analyzer WHITESPACE_ANALYZER
public static final org.apache.lucene.analysis.Analyzer KEYWORD_ANALYZER
public LuceneDataSource(org.neo4j.kernel.configuration.Config config, org.neo4j.kernel.impl.index.IndexStore indexStore, org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction, org.neo4j.kernel.impl.transaction.xaframework.XaFactory xaFactory, TransactionManager txManager)
InstantiationException
- if the data source couldn't be
instantiatedpublic void init()
init
in interface org.neo4j.kernel.lifecycle.Lifecycle
init
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public void start()
start
in interface org.neo4j.kernel.lifecycle.Lifecycle
start
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public void stop() throws IOException
stop
in interface org.neo4j.kernel.lifecycle.Lifecycle
stop
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
IOException
public void shutdown()
shutdown
in interface org.neo4j.kernel.lifecycle.Lifecycle
shutdown
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> nodeIndex(String indexName, org.neo4j.graphdb.GraphDatabaseService graphDb, LuceneIndexImplementation luceneIndexImplementation)
public org.neo4j.graphdb.index.RelationshipIndex relationshipIndex(String indexName, org.neo4j.graphdb.GraphDatabaseService gdb, LuceneIndexImplementation luceneIndexImplementation)
public org.neo4j.kernel.impl.transaction.xaframework.XaConnection getXaConnection()
getXaConnection
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public long getCreationTime()
getCreationTime
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public long getRandomIdentifier()
getRandomIdentifier
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public long getCurrentLogVersion()
getCurrentLogVersion
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public long getLastCommittedTxId()
getLastCommittedTxId
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public void setLastCommittedTxId(long txId)
setLastCommittedTxId
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public org.neo4j.kernel.impl.transaction.xaframework.XaContainer getXaContainer()
getXaContainer
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
public org.neo4j.graphdb.ResourceIterator<File> listStoreFiles(boolean includeLogicalLogs) throws IOException
listStoreFiles
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
IOException
public org.neo4j.graphdb.ResourceIterator<File> listStoreFiles() throws IOException
listStoreFiles
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
IOException
public org.neo4j.graphdb.ResourceIterator<File> listLogicalLogs() throws IOException
listLogicalLogs
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
IOException
public org.neo4j.kernel.impl.transaction.xaframework.LogBufferFactory createLogBufferFactory()
createLogBufferFactory
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.