org.eclipse.smila.search.lucene.messages.indexstructure
Class DIndexStructure
java.lang.Object
  
org.eclipse.smila.search.utils.indexstructure.DIndexStructure
      
org.eclipse.smila.search.lucene.messages.indexstructure.DIndexStructure
public class DIndexStructure
- extends DIndexStructure
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
DIndexStructure
public DIndexStructure()
addField
public DIndexField addField(DIndexField dIndexField)
- Specified by:
 addField in class DIndexStructure
 
 
removeField
public void removeField(DIndexField dIndexField)
 
removeField
public DIndexField removeField(int fieldNo)
- Specified by:
 removeField in class DIndexStructure
 
 
getFields
public java.util.Iterator<DIndexField> getFields()
- Specified by:
 getFields in class DIndexStructure
 
 
getField
public DIndexField getField(int fieldNo)
- Specified by:
 getField in class DIndexStructure
 
 
getFieldCount
public int getFieldCount()
- Specified by:
 getFieldCount in class DIndexStructure
 
 
getAnalyzer
public DAnalyzer getAnalyzer()
 
setAnalyzer
public void setAnalyzer(DAnalyzer analyzer)
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object
 
 
equals
public boolean equals(java.lang.Object obj)
- Checks equality of two IndexStructure objects, including their names. This will return 
true only if
 all attributes and child elements are equal, including the name attribute.
 
 WARNING:This method will return false when comparing two indexes with different names, even
 if they have the same structure. In such cases, use equalsStructure(Object).
 
- Overrides:
 equals in class java.lang.Object
 
- Parameters:
 obj - -
- Returns:
 - boolean
 
 
 
equalsStructure
public boolean equalsStructure(DIndexStructure indexStructure,
                               boolean throwException)
- Checks structural equality of two IndexStructure objects. This will return 
true if its child
 elements (Analyzer and IndexFields) are equal. This method does not consider the name attribute.
 Thus, comparison of two indexes with the same structure will return true, even if their names differ. If exact
 checking, including index name, is reuired, use equals(Object) instead. 
- Specified by:
 equalsStructure in class DIndexStructure
 
- Parameters:
 indexStructure - -- See Also:
 DIndexStructure.equalsStructure(org.eclipse.smila.search.utils.indexstructure.DIndexStructure,
      boolean)
 
 
hasField
public boolean hasField(int fieldNo)
- Specified by:
 hasField in class DIndexStructure
 
 
doesFieldTypeMatch
public boolean doesFieldTypeMatch(DField field)
- Specified by:
 doesFieldTypeMatch in class DIndexStructure