Beispiel #1
0
 protected void setSourcePartitionId(
     BaseNode source, BuildContext context, RuleBasePartitionId partitionId) {
   if (this.partitionId == partitionId) {
     return;
   }
   this.partitionId = partitionId;
   if (source.getPartitionId() == RuleBasePartitionId.MAIN_PARTITION) {
     setPartitionIdWithSinks(partitionId);
   } else {
     source.setPartitionId(context, partitionId);
   }
 }
Beispiel #2
0
 public void writeExternal(ObjectOutput out) throws IOException {
   super.writeExternal(out);
   out.writeObject(sink);
   out.writeObject(leftInput);
   out.writeObject(leftDeclaredMask);
   out.writeObject(leftInferredMask);
   out.writeObject(leftNegativeMask);
   out.writeInt(positionInPath);
 }
Beispiel #3
0
 // ------------------------------------------------------------
 // Instance methods
 // ------------------------------------------------------------
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   sink = (LeftTupleSinkPropagator) in.readObject();
   leftInput = (LeftTupleSource) in.readObject();
   leftDeclaredMask = (BitMask) in.readObject();
   leftInferredMask = (BitMask) in.readObject();
   leftNegativeMask = (BitMask) in.readObject();
   positionInPath = in.readInt();
 }