fleXplorer.util.IndexesSetting
Class DocumentsIds

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

public class DocumentsIds
extends Setting


Constructor Summary
DocumentsIds(MFT mft)
          Constructs a DocumentsIds object.
DocumentsIds(MFT mft, java.util.ArrayList<DocumentIds> docs)
          Constructs a DocumentsIds object.
 
Method Summary
 java.util.ArrayList<DocumentIds> getDocs()
          Returns the list of documents.
 void setDocs(java.util.ArrayList<DocumentIds> docs)
          Sets the list 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.
 
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

DocumentsIds

public DocumentsIds(MFT mft)
Constructs a DocumentsIds object.

Parameters:
mft - the materialized faceted taxonomy.

DocumentsIds

public DocumentsIds(MFT mft,
                    java.util.ArrayList<DocumentIds> docs)
Constructs a DocumentsIds object.

Parameters:
mft - the materialized faceted taxonomy.
docs - the list with the DocumentId.
Method Detail

setDocs

public void setDocs(java.util.ArrayList<DocumentIds> docs)
Sets the list that contains the documents to be indexed

Parameters:
docs - the list of Documents

getDocs

public java.util.ArrayList<DocumentIds> getDocs()
Returns the list of documents.

Returns:
the list of documents.

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.