final FieldIndex index = indexableConstraint.getFieldIndex();
LeftTupleMemory tupleMemory;
if ( this.conf.isIndexLeftBetaMemory() ) {
tupleMemory = new LeftTupleIndexHashTable( new FieldIndex[]{index} );
} else {
tupleMemory = new LeftTupleList();
}
RightTupleMemory factHandleMemory;
if ( this.conf.isIndexRightBetaMemory() ) {
factHandleMemory = new RightTupleIndexHashTable( new FieldIndex[]{index} );
} else {
factHandleMemory = new RightTupleList();
}
memory = new BetaMemory( config.isSequential() ? null : tupleMemory,
factHandleMemory,
this.createContext() );
} else {
memory = new BetaMemory( config.isSequential() ? null : new LeftTupleList(),
new RightTupleList(),
this.createContext() );
}
return memory;