out.writeObject(indexed);
out.writeObject(indexPrecedenceOption);
}
public final void init(BuildContext context, short betaNodeType) {
RuleBaseConfiguration config = context.getRuleBase().getConfiguration();
if ( disableIndexing || (!config.isIndexLeftBetaMemory() && !config.isIndexRightBetaMemory()) ) {
indexed = new boolean[constraints.length];
} else {
int depth = config.getCompositeKeyDepth();
if ( !compositeAllowed( constraints, betaNodeType ) ) {
// UnificationRestrictions cannot be allowed in composite indexes
// We also ensure that if there is a mixture that standard restriction is first
depth = 1;
}