org.neo4j.index.impl.lucene
Class LuceneDataSource
java.lang.Object
org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource
org.neo4j.index.impl.lucene.LuceneDataSource
public class LuceneDataSource
- extends org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource
An XaDataSource
optimized for the LuceneIndexImplementation
.
This class is public because the XA framework requires it.
Methods inherited from class org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource |
applyLog, deleteLogicalLog, getCommittedTransaction, getCommittedTransaction, getFileName, getLogicalLog, getLogicalLogLength, getMasterForCommittedTx, getPreparedTransaction, getPreparedTransaction, hasLogicalLog, isLogicalLogKept, keepLogicalLogs, makeBackupSlave, rotateLogicalLog, setAutoRotate, setLogicalLogAtCreationTime, setLogicalLogTargetSize |
Methods inherited from class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource |
applyCommittedTransaction, applyPreparedTransaction, getBranchId, getName, setBranchId, setName, setRecovered, shouldKeepLog |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LUCENE_VERSION
public static final org.apache.lucene.util.Version LUCENE_VERSION
DEFAULT_NAME
public static final String DEFAULT_NAME
- See Also:
- Constant Field Values
DEFAULT_BRANCH_ID
public static final byte[] DEFAULT_BRANCH_ID
LOWER_CASE_WHITESPACE_ANALYZER
public static final org.apache.lucene.analysis.Analyzer LOWER_CASE_WHITESPACE_ANALYZER
- Default
Analyzer
for fulltext parsing.
WHITESPACE_ANALYZER
public static final org.apache.lucene.analysis.Analyzer WHITESPACE_ANALYZER
KEYWORD_ANALYZER
public static final org.apache.lucene.analysis.Analyzer KEYWORD_ANALYZER
LuceneDataSource
public LuceneDataSource(Map<Object,Object> params)
throws InstantiationException
- Constructs this data source.
- Parameters:
params
- XA parameters.
- Throws:
InstantiationException
- if the data source couldn't be
instantiated
close
public void close()
- Specified by:
close
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
getXaConnection
public org.neo4j.kernel.impl.transaction.xaframework.XaConnection getXaConnection()
- Specified by:
getXaConnection
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
getCreationTime
public long getCreationTime()
- Overrides:
getCreationTime
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
getRandomIdentifier
public long getRandomIdentifier()
- Overrides:
getRandomIdentifier
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
getCurrentLogVersion
public long getCurrentLogVersion()
- Overrides:
getCurrentLogVersion
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
getLastCommittedTxId
public long getLastCommittedTxId()
- Overrides:
getLastCommittedTxId
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
setLastCommittedTxId
public void setLastCommittedTxId(long txId)
- Overrides:
setLastCommittedTxId
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
getXaContainer
public org.neo4j.kernel.impl.transaction.xaframework.XaContainer getXaContainer()
- Overrides:
getXaContainer
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
listStoreFiles
public ClosableIterable<File> listStoreFiles()
throws IOException
- Overrides:
listStoreFiles
in class org.neo4j.kernel.impl.transaction.xaframework.XaDataSource
- Throws:
IOException
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.