public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_status = true && (isSetStatus()); list.add(present_status); if (present_status) list.add(status.getValue()); boolean present_queryParallelism = true && (isSetQueryParallelism()); list.add(present_queryParallelism); if (present_queryParallelism) list.add(queryParallelism); boolean present_defaultPoolPath = true && (isSetDefaultPoolPath()); list.add(present_defaultPoolPath); if (present_defaultPoolPath) list.add(defaultPoolPath); boolean present_ns = true && (isSetNs()); list.add(present_ns); if (present_ns) list.add(ns); return list.hashCode(); }
/** 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 NAME: return isSetName(); case STATUS: return isSetStatus(); case QUERY_PARALLELISM: return isSetQueryParallelism(); case DEFAULT_POOL_PATH: return isSetDefaultPoolPath(); case NS: return isSetNs(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public WMResourcePlan(WMResourcePlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetStatus()) { this.status = other.status; } this.queryParallelism = other.queryParallelism; if (other.isSetDefaultPoolPath()) { this.defaultPoolPath = other.defaultPoolPath; } if (other.isSetNs()) { this.ns = other.ns; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_status = true && (isSetStatus()); list.add(present_status); if (present_status) list.add(status.getValue()); boolean present_queryParallelism = true && (isSetQueryParallelism()); list.add(present_queryParallelism); if (present_queryParallelism) list.add(queryParallelism); boolean present_defaultPoolPath = true && (isSetDefaultPoolPath()); list.add(present_defaultPoolPath); if (present_defaultPoolPath) list.add(defaultPoolPath); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public WMResourcePlan(WMResourcePlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetStatus()) { this.status = other.status; } this.queryParallelism = other.queryParallelism; if (other.isSetDefaultPoolPath()) { this.defaultPoolPath = other.defaultPoolPath; } }
/** 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 NAME: return isSetName(); case STATUS: return isSetStatus(); case QUERY_PARALLELISM: return isSetQueryParallelism(); case DEFAULT_POOL_PATH: return isSetDefaultPoolPath(); } throw new IllegalStateException(); }