// ------------------------------------------------------------ // Instance methods // ------------------------------------------------------------ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); query = (QueryImpl) in.readObject(); subrule = (GroupElement) in.readObject(); subruleIndex = in.readInt(); initDeclarations(); }
/** * Constructor * * @param id node ID * @param source the tuple source for this node * @param rule the rule this node belongs to * @param subrule the subrule this node belongs to * @param context the current build context */ public QueryTerminalNode( final int id, final LeftTupleSource source, final RuleImpl rule, final GroupElement subrule, final int subruleIndex, final BuildContext context) { super( id, context.getPartitionId(), context.getKnowledgeBase().getConfiguration().isMultithreadEvaluation(), source); this.query = (QueryImpl) rule; this.subrule = subrule; this.subruleIndex = subruleIndex; initDeclaredMask(context); initInferredMask(); initDeclarations(); }