BetaMemory memory;
final List list = new ArrayList( 2 );
if ( this.indexed0 ) {
final IndexableConstraint indexableConstraint = (IndexableConstraint) this.constraint0;
final FieldIndex index = new FieldIndex( indexableConstraint.getFieldExtractor(),
indexableConstraint.getIndexingDeclaration(),
indexableConstraint.getIndexEvaluator() );
list.add( index );
}
if ( this.indexed1 ) {
final IndexableConstraint indexableConstraint = (IndexableConstraint) this.constraint1;
final FieldIndex index = new FieldIndex( indexableConstraint.getFieldExtractor(),
indexableConstraint.getIndexingDeclaration(),
indexableConstraint.getIndexEvaluator() );
list.add( index );
}
if ( this.indexed2 ) {
final IndexableConstraint indexableConstraint = (IndexableConstraint) this.constraint2;
final FieldIndex index = new FieldIndex( indexableConstraint.getFieldExtractor(),
indexableConstraint.getIndexingDeclaration(),
indexableConstraint.getIndexEvaluator() );
list.add( index );
}
if ( this.indexed3 ) {
final IndexableConstraint indexableConstraint = (IndexableConstraint) this.constraint3;
final FieldIndex index = new FieldIndex( indexableConstraint.getFieldExtractor(),
indexableConstraint.getIndexingDeclaration(),
indexableConstraint.getIndexEvaluator() );
list.add( index );
}
if ( !list.isEmpty() ) {
final FieldIndex[] indexes = (FieldIndex[]) list.toArray( new FieldIndex[list.size()] );