/** 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 java.lang.IllegalArgumentException(); } switch (field) { case TASK_START: return is_set_task_start(); case TASK_END: return is_set_task_end(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(ExecutorInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_task_start()).compareTo(other.is_set_task_start()); if (lastComparison != 0) { return lastComparison; } if (is_set_task_start()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.task_start, other.task_start); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_task_end()).compareTo(other.is_set_task_end()); if (lastComparison != 0) { return lastComparison; } if (is_set_task_end()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.task_end, other.task_end); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_task_start()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'task_start' is unset! Struct:" + toString()); } if (!is_set_task_end()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'task_end' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** 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 TASK_START: return is_set_task_start(); case TASK_END: return is_set_task_end(); } throw new IllegalStateException(); }
@Override public int compareTo(ExecutorInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_task_start()).compareTo(other.is_set_task_start()); if (lastComparison != 0) { return lastComparison; } if (is_set_task_start()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.task_start, other.task_start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_task_end()).compareTo(other.is_set_task_end()); if (lastComparison != 0) { return lastComparison; } if (is_set_task_end()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.task_end, other.task_end); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_task_start()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'task_start' is unset! Struct:" + toString()); } if (!is_set_task_end()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'task_end' is unset! Struct:" + toString()); } // check for sub-struct validity }