public class LuceneStatistics extends Object implements IndexStatistics
| Constructor and Description |
|---|
LuceneStatistics(ServiceContextContainer ServiceContextCont)
A constructor which sets the EPR of the calling Service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases reserved resources.
|
String |
createMergedStatistics(List<String> RS_EPRs)
Creates a new statistics file, and merges additional statistics files
into it.
|
String |
createStatistics()
Creates a statistics file and stores it in a ResultSet.
|
void |
openIndex(String baseIndexDir,
String indexName)
Opens the index for the statistics operation.
|
void |
updateIndex()
Updates the index.
|
public LuceneStatistics(ServiceContextContainer ServiceContextCont)
dlContextIdentifier - - the EPR of the calling Service.public void openIndex(String baseIndexDir, String indexName) throws IndexException
openIndex in interface IndexStatisticsbaseIndexDir - the base index storage directoryindexName - name of the indexIndexException - -
an error opening the indexpublic void updateIndex()
throws IndexException
updateIndex in interface IndexStatisticsIndexException - -
an error updating the indexpublic String createStatistics() throws IndexException
createStatistics in interface IndexStatisticsIndexException - Unable to create the statistics filepublic String createMergedStatistics(List<String> RS_EPRs) throws IndexException
createMergedStatistics in interface IndexStatisticsRS_EPRs - IndexException - -
an error creating merged statisticspublic void close()
throws IndexException
close in interface IndexStatisticsIndexException - -
an error closing the IndexStatistics isntanceCopyright © 2014. All Rights Reserved.