|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.impl.transaction.xaframework.XaDataSource
org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource
org.neo4j.index.impl.lucene.LuceneDataSource
public class LuceneDataSource
An XaDataSource optimized for the LuceneIndexImplementation.
This class is public because the XA framework requires it.
| Field Summary | |
|---|---|
static byte[] |
DEFAULT_BRANCH_ID
|
static String |
DEFAULT_NAME
|
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 Summary | |
|---|---|
LuceneDataSource(Map<Object,Object> params)
Constructs this data source. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this data source. |
long |
getCreationTime()
Returns a timestamp when this data source was created. |
long |
getCurrentLogVersion()
Returns the current version of this data source. |
long |
getLastCommittedTxId()
|
long |
getRandomIdentifier()
Returns a random identifier that gets generated when the data source is created. |
XaConnection |
getXaConnection()
Creates a XA connection to the resource this data source represents. |
XaContainer |
getXaContainer()
|
ClosableIterable<File> |
listStoreFiles(boolean includeLogicalLogs)
|
void |
setLastCommittedTxId(long txId)
|
| Methods inherited from class org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource |
|---|
deleteLogicalLog, getFileName, getLogExtractor, getLogicalLog, getLogicalLogLength, getMasterForCommittedTx, getPreparedTransaction, getPreparedTransaction, hasLogicalLog, isLogicalLogKept, keepLogicalLogs, rotateLogicalLog, setAutoRotate, setKeepLogicalLogsIfSpecified, 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 |
| Field Detail |
|---|
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 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
| Constructor Detail |
|---|
public LuceneDataSource(Map<Object,Object> params)
throws InstantiationException
params - XA parameters.
InstantiationException - if the data source couldn't be
instantiated| Method Detail |
|---|
public void close()
XaDataSourcegetXaConnection after
this method has been invoked is illegal.
close in class XaDataSourcepublic XaConnection getXaConnection()
XaDataSource
getXaConnection in class XaDataSourcepublic long getCreationTime()
XaDataSourceCreation time together with random identifier can be used to uniqley identify a data source (since it is possible to have multiple sources of same type).
getCreationTime in class XaDataSourcepublic long getRandomIdentifier()
XaDataSourceCreation time together with the random identifier can be used to uniquely identify a data source (since it is possible to have multiple sources of the same type).
getRandomIdentifier in class XaDataSourcepublic long getCurrentLogVersion()
XaDataSourceXaDataSource.rotateLogicalLog() when XaDataSource.keepLogicalLogs(boolean) is
set to true will result in a log with that version created.
getCurrentLogVersion in class XaDataSourcepublic long getLastCommittedTxId()
getLastCommittedTxId in class XaDataSourcepublic void setLastCommittedTxId(long txId)
setLastCommittedTxId in class XaDataSourcepublic XaContainer getXaContainer()
getXaContainer in class XaDataSource
public ClosableIterable<File> listStoreFiles(boolean includeLogicalLogs)
throws IOException
listStoreFiles in class XaDataSourceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||