fleXplorer.util.IndexesSetting
Class Setting

java.lang.Object
  extended by fleXplorer.util.IndexesSetting.Setting
Direct Known Subclasses:
Documents, DocumentsIds, Resultset, TXT, XML

public abstract class Setting
extends java.lang.Object


Constructor Summary
Setting()
           
 
Method Summary
 FT getFT()
          Returns the faceted taxonomy of the materialized faceted taxonomy.
 java.util.HashSet<java.lang.Integer> getLegalIds()
          Returns the legal ids of the materialized faceted taxonomy.
 void setFT(FT ft)
          Sets the faceted taxonomy of the materialized faceted taxonomy.
abstract  boolean setIndexes()
          Adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it.
 void setLegalIds(java.util.HashSet<java.lang.Integer> legalIds)
          Sets the legal ids of the materialized faceted taxonomy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Setting

public Setting()
Method Detail

setLegalIds

public void setLegalIds(java.util.HashSet<java.lang.Integer> legalIds)
Sets the legal ids of the materialized faceted taxonomy.

Parameters:
legalIds - the legal ids.

getLegalIds

public java.util.HashSet<java.lang.Integer> getLegalIds()
Returns the legal ids of the materialized faceted taxonomy.

Returns:
the legal ids of the materialized faceted taxonomy.

setFT

public void setFT(FT ft)
Sets the faceted taxonomy of the materialized faceted taxonomy.

Parameters:
ft - the faceted taxonomy.

getFT

public FT getFT()
Returns the faceted taxonomy of the materialized faceted taxonomy.

Returns:
the faceted taxonomy of the materialized faceted taxonomy.

setIndexes

public abstract 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.

Returns:
true if the additions complete successfully; false otherwise.