fleXplorer.util.IndexesSetting
Class Resultset

java.lang.Object
  extended by fleXplorer.util.IndexesSetting.Setting
      extended by fleXplorer.util.IndexesSetting.Resultset

public class Resultset
extends Setting


Constructor Summary
Resultset(MFT mft)
          Constructs a Resultset object.
Resultset(MFT mft, java.sql.ResultSet rs)
          Constructs a Resultset object.
 
Method Summary
 java.sql.ResultSet getResulSet()
          Returns the ResultSet that contains the documents to be indexed.
 boolean setIndexes()
          Adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it.
 void setResultSet(java.sql.ResultSet rs)
          Sets the ResultSet that contains the documents to be indexed.
 
Methods inherited from class fleXplorer.util.IndexesSetting.Setting
getFT, getLegalIds, setFT, setLegalIds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resultset

public Resultset(MFT mft)
Constructs a Resultset object.

Parameters:
mft - The materialized faceted taxonomy.

Resultset

public Resultset(MFT mft,
                 java.sql.ResultSet rs)
Constructs a Resultset object.

Parameters:
mft - The materialized faceted taxonomy.
docs - the result set that contains the documents to be indexed.
Method Detail

setResultSet

public void setResultSet(java.sql.ResultSet rs)
Sets the ResultSet that contains the documents to be indexed.

Parameters:
rs - the ResultSet

getResulSet

public java.sql.ResultSet getResulSet()
Returns the ResultSet that contains the documents to be indexed.

Returns:
the ResultSet that contains the documents to be indexed.

setIndexes

public boolean setIndexes()
Adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it. Preconditions: Always true.
Postconditions: Firstly checks if exists the specified terms and then adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it.

Specified by:
setIndexes in class Setting
Returns:
true if the additions complete successfully; false otherwise.