public Operator deepCopy() { return new Operator(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Operator) return this.equals((Operator)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case OPERATOR_ID: return getOperatorId(); case OPERATOR_TYPE: return getOperatorType(); case OPERATOR_ATTRIBUTES: return getOperatorAttributes(); case OPERATOR_COUNTERS: return getOperatorCounters(); case DONE: return isDone(); case STARTED: return isStarted(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case OPERATOR_ID: return isSetOperatorId(); case OPERATOR_TYPE: return isSetOperatorType(); case OPERATOR_ATTRIBUTES: return isSetOperatorAttributes(); case OPERATOR_COUNTERS: return isSetOperatorCounters(); case DONE: return isSetDone(); case STARTED: return isSetStarted(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public Operator(Operator other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetOperatorId()) { this.operatorId = other.operatorId; } if (other.isSetOperatorType()) { this.operatorType = other.operatorType; } if (other.isSetOperatorAttributes()) { Map<String,String> __this__operatorAttributes = new HashMap<String,String>(other.operatorAttributes); this.operatorAttributes = __this__operatorAttributes; } if (other.isSetOperatorCounters()) { Map<String,Long> __this__operatorCounters = new HashMap<String,Long>(other.operatorCounters); this.operatorCounters = __this__operatorCounters; } this.done = other.done; this.started = other.started; }
new org.apache.hadoop.hive.ql.plan.api.Operator(); operator.setOperatorId(op.getOperatorId()); operator.setOperatorType(op.getType()); task.addToOperatorList(operator);
op.setStarted(started.contains(task.getTaskId())); op.setOperatorCounters(counters.get(op.getOperatorId())); op.setDone(done.contains(task.getTaskId()));
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case OPERATOR_ID: return isSetOperatorId(); case OPERATOR_TYPE: return isSetOperatorType(); case OPERATOR_ATTRIBUTES: return isSetOperatorAttributes(); case OPERATOR_COUNTERS: return isSetOperatorCounters(); case DONE: return isSetDone(); case STARTED: return isSetStarted(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public Operator(Operator other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetOperatorId()) { this.operatorId = other.operatorId; } if (other.isSetOperatorType()) { this.operatorType = other.operatorType; } if (other.isSetOperatorAttributes()) { Map<String,String> __this__operatorAttributes = new HashMap<String,String>(other.operatorAttributes); this.operatorAttributes = __this__operatorAttributes; } if (other.isSetOperatorCounters()) { Map<String,Long> __this__operatorCounters = new HashMap<String,Long>(other.operatorCounters); this.operatorCounters = __this__operatorCounters; } this.done = other.done; this.started = other.started; }
new org.apache.hadoop.hive.ql.plan.api.Operator(); operator.setOperatorId(op.getOperatorId()); operator.setOperatorType(op.getType()); task.addToOperatorList(operator);
lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(other.isSetOperatorId()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, other.operatorId); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetOperatorType()).compareTo(other.isSetOperatorType()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, other.operatorType); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetOperatorAttributes()).compareTo(other.isSetOperatorAttributes()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorAttributes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, other.operatorAttributes); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetOperatorCounters()).compareTo(other.isSetOperatorCounters()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorCounters()) {
public Object getFieldValue(_Fields field) { switch (field) { case OPERATOR_ID: return getOperatorId(); case OPERATOR_TYPE: return getOperatorType(); case OPERATOR_ATTRIBUTES: return getOperatorAttributes(); case OPERATOR_COUNTERS: return getOperatorCounters(); case DONE: return isDone(); case STARTED: return isStarted(); } throw new IllegalStateException(); }
return false; boolean this_present_operatorId = true && this.isSetOperatorId(); boolean that_present_operatorId = true && that.isSetOperatorId(); if (this_present_operatorId || that_present_operatorId) { if (!(this_present_operatorId && that_present_operatorId)) boolean this_present_operatorType = true && this.isSetOperatorType(); boolean that_present_operatorType = true && that.isSetOperatorType(); if (this_present_operatorType || that_present_operatorType) { if (!(this_present_operatorType && that_present_operatorType)) boolean this_present_operatorAttributes = true && this.isSetOperatorAttributes(); boolean that_present_operatorAttributes = true && that.isSetOperatorAttributes(); if (this_present_operatorAttributes || that_present_operatorAttributes) { if (!(this_present_operatorAttributes && that_present_operatorAttributes)) boolean this_present_operatorCounters = true && this.isSetOperatorCounters(); boolean that_present_operatorCounters = true && that.isSetOperatorCounters(); if (this_present_operatorCounters || that_present_operatorCounters) { if (!(this_present_operatorCounters && that_present_operatorCounters))
new org.apache.hadoop.hive.ql.plan.api.Operator(); operator.setOperatorId(op.getOperatorId()); operator.setOperatorType(op.getType()); task.addToOperatorList(operator);
public Operator deepCopy() { return new Operator(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Operator) return this.equals((Operator)that); return false; }
lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(other.isSetOperatorId()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, other.operatorId); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetOperatorType()).compareTo(other.isSetOperatorType()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, other.operatorType); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetOperatorAttributes()).compareTo(other.isSetOperatorAttributes()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorAttributes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, other.operatorAttributes); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetOperatorCounters()).compareTo(other.isSetOperatorCounters()); if (lastComparison != 0) { return lastComparison; if (isSetOperatorCounters()) {