public boolean indexAppliesTo ( Constraint constraint ) { if ( constraint instanceof Comparison ) { return indexAppliesTo ( ( Comparison ) constraint ) ; } if ( constraint instanceof And ) { return indexAppliesTo ( ( And ) constraint ) ; } if ( constraint instanceof Or ) { return indexAppliesTo ( ( Or ) constraint ) ; } if ( constraint instanceof Not ) { return indexAppliesTo ( ( Not ) constraint ) ; } if ( constraint instanceof Between ) { return indexAppliesTo ( ( Between ) constraint ) ; } if ( constraint instanceof SetCriteria ) { return indexAppliesTo ( ( SetCriteria ) constraint ) ; } if ( constraint instanceof Relike ) { return indexAppliesTo ( ( Relike ) constraint ) ; } if ( constraint instanceof PropertyExistence ) { return indexAppliesTo ( ( PropertyExistence ) constraint ) ; } if ( constraint instanceof FullTextSearch ) { return applies ( ( FullTextSearch ) constraint ) ; } return false ; }
Determine if this index can be used to evaluate the given constraint .