|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.lucenewrapper.LuceneStatistics
public class LuceneStatistics
Used for creating per term statistics from Lucene indexes.
| Constructor Summary | |
|---|---|
LuceneStatistics(ServiceContextContainer ServiceContextCont)
A constructor which sets the EPR of the calling Service. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneStatistics(ServiceContextContainer ServiceContextCont)
dlContextIdentifier - - the EPR of the calling Service.| Method Detail |
|---|
public void openIndex(String baseIndexDir,
String indexName)
throws IndexException
openIndex in interface IndexStatisticsbaseIndexDir - the base index storage directoryindexName - name of the index
IndexException - -
an error opening the index
public void updateIndex()
throws IndexException
updateIndex in interface IndexStatisticsIndexException - -
an error updating the index
public String createStatistics()
throws IndexException
createStatistics in interface IndexStatisticsIndexException - Unable to create the statistics file
public String createMergedStatistics(List<String> RS_EPRs)
throws IndexException
createMergedStatistics in interface IndexStatisticsRS_EPRs - IndexException - -
an error creating merged statistics
public void close()
throws IndexException
close in interface IndexStatisticsIndexException - -
an error closing the IndexStatistics isntance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||