org.gcube.dir.master.tasks
Class DescriptionIngester<T extends Collection>

java.lang.Object
  extended by 
      extended by org.gcube.dir.master.tasks.DescriptionIngester<T>

public class DescriptionIngester<T extends Collection>
extends

Ingests into the inverted index of the Running Instance a histogram of the handled Collection.
The histogram must be available in a local file and in an XML format compatible with the following:

<term>
 <t>term name</t>
 <d>document-wide term frequency</d>
 <c>collection-wide term frequency</c>
</term>

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
DescriptionIngester()
           
 
Method Summary
 void run()
          
 void setStatisticsAsStream(java.io.InputStream stream)
          Sets the statistics stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionIngester

public DescriptionIngester()
Method Detail

run

public void run()
         throws java.lang.Exception

Throws:
java.lang.Exception

setStatisticsAsStream

public void setStatisticsAsStream(java.io.InputStream stream)
Sets the statistics stream.

Parameters:
stream - the stream.