@Override public Object clone() throws CloneNotSupportedException { IndexScanNode indexNode = (IndexScanNode) super.clone(); indexNode.keySchema = (Schema) this.keySchema.clone(); indexNode.predicates = new SimplePredicate[this.predicates.length]; for(int i = 0 ; i < this.predicates.length ; i ++ ) indexNode.predicates[i] = (SimplePredicate) this.predicates[i].clone(); indexNode.indexPath = this.indexPath; return indexNode; }
@Override public Object clone() throws CloneNotSupportedException { IndexScanNode indexNode = (IndexScanNode) super.clone(); indexNode.keySchema = (Schema) this.keySchema.clone(); indexNode.predicates = new SimplePredicate[this.predicates.length]; for(int i = 0 ; i < this.predicates.length ; i ++ ) indexNode.predicates[i] = (SimplePredicate) this.predicates[i].clone(); indexNode.indexPath = this.indexPath; return indexNode; }
@Override public Object clone() throws CloneNotSupportedException { PartitionedTableScanNode unionScan = (PartitionedTableScanNode) super.clone(); unionScan.tableDesc = (TableDesc) this.tableDesc.clone(); if (hasQual()) { unionScan.qual = (EvalNode) this.qual.clone(); } if (hasTargets()) { unionScan.targets = new ArrayList<>(); for (Target t : targets) { unionScan.targets.add((Target) t.clone()); } } unionScan.inputPaths = inputPaths; return unionScan; }
@Override public Object clone() throws CloneNotSupportedException { PartitionedTableScanNode unionScan = (PartitionedTableScanNode) super.clone(); unionScan.tableDesc = (TableDesc) this.tableDesc.clone(); if (hasQual()) { unionScan.qual = (EvalNode) this.qual.clone(); } if (hasTargets()) { unionScan.targets = new Target[targets.length]; for (int i = 0; i < targets.length; i++) { unionScan.targets[i] = (Target) targets[i].clone(); } } unionScan.inputPaths = inputPaths; return unionScan; }