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 |
| 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 |
|---|---|
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> |
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, setLogicalLogTargetSizepublic 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()
public void start()
public void stop()
stop in interface org.neo4j.kernel.lifecycle.Lifecyclestop in class org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSourcepublic void shutdown()
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.XaDataSourcepublic long getCreationTime()
getCreationTime in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourcepublic long getRandomIdentifier()
getRandomIdentifier in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourcepublic long getCurrentLogVersion()
getCurrentLogVersion in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourcepublic long getLastCommittedTxId()
getLastCommittedTxId in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourcepublic void setLastCommittedTxId(long txId)
setLastCommittedTxId in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourcepublic org.neo4j.kernel.impl.transaction.xaframework.XaContainer getXaContainer()
getXaContainer in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourcepublic org.neo4j.graphdb.ResourceIterator<File> listStoreFiles(boolean includeLogicalLogs) throws IOException
listStoreFiles in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSourceIOExceptionCopyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.