public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TINFO: return getTinfo(); case CREDENTIALS: return getCredentials(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(getMasterStats_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetTinfo()).compareTo(other.isSetTinfo()); if (lastComparison != 0) { return lastComparison; } if (isSetTinfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinfo, other.tinfo); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetCredentials()).compareTo(other.isSetCredentials()); if (lastComparison != 0) { return lastComparison; } if (isSetCredentials()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credentials, other.credentials); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
struct.tinfo = new org.apache.accumulo.core.trace.thrift.TInfo(); struct.tinfo.read(iprot); struct.setTinfoIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.credentials = new org.apache.accumulo.core.security.thrift.TCredentials(); struct.credentials.read(iprot); struct.setCredentialsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public int compareTo(getMasterStats_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTinfo()).compareTo(other.isSetTinfo()); if (lastComparison != 0) { return lastComparison; } if (isSetTinfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinfo, other.tinfo); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCredentials()).compareTo(other.isSetCredentials()); if (lastComparison != 0) { return lastComparison; } if (isSetCredentials()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credentials, other.credentials); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(getMasterStats_args that) { if (that == null) return false; boolean this_present_tinfo = true && this.isSetTinfo(); boolean that_present_tinfo = true && that.isSetTinfo(); if (this_present_tinfo || that_present_tinfo) { if (!(this_present_tinfo && that_present_tinfo)) return false; if (!this.tinfo.equals(that.tinfo)) return false; } boolean this_present_credentials = true && this.isSetCredentials(); boolean that_present_credentials = true && that.isSetCredentials(); if (this_present_credentials || that_present_credentials) { if (!(this_present_credentials && that_present_credentials)) return false; if (!this.credentials.equals(that.credentials)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getMasterStats_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTinfo()) { optionals.set(0); } if (struct.isSetCredentials()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TINFO: if (value == null) { unsetTinfo(); } else { setTinfo((org.apache.accumulo.core.trace.thrift.TInfo)value); } break; case CREDENTIALS: if (value == null) { unsetCredentials(); } else { setCredentials((org.apache.accumulo.core.security.thrift.TCredentials)value); } break; } }
public getMasterStats_args deepCopy() { return new getMasterStats_args(this); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getMasterStats_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.tinfo = new org.apache.accumulo.core.trace.thrift.TInfo(); struct.tinfo.read(iprot); struct.setTinfoIsSet(true); } if (incoming.get(1)) { struct.credentials = new org.apache.accumulo.core.security.thrift.TCredentials(); struct.credentials.read(iprot); struct.setCredentialsIsSet(true); } } }
public getMasterStats_args getEmptyArgsInstance() { return new getMasterStats_args(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tinfo = true && (isSetTinfo()); list.add(present_tinfo); if (present_tinfo) list.add(tinfo); boolean present_credentials = true && (isSetCredentials()); list.add(present_credentials); if (present_credentials) list.add(credentials); 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 TINFO: return isSetTinfo(); case CREDENTIALS: return isSetCredentials(); } throw new IllegalStateException(); }
public getMasterStats_args getEmptyArgsInstance() { return new getMasterStats_args(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getMasterStats_args) return this.equals((getMasterStats_args)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public getMasterStats_args(getMasterStats_args other) { if (other.isSetTinfo()) { this.tinfo = new org.apache.accumulo.core.trace.thrift.TInfo(other.tinfo); } if (other.isSetCredentials()) { this.credentials = new org.apache.accumulo.core.security.thrift.TCredentials(other.credentials); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterStats", org.apache.thrift.protocol.TMessageType.CALL, 0)); getMasterStats_args args = new getMasterStats_args(); args.setTinfo(tinfo); args.setCredentials(credentials); args.write(prot); prot.writeMessageEnd(); }
public void send_getMasterStats(org.apache.accumulo.core.trace.thrift.TInfo tinfo, org.apache.accumulo.core.security.thrift.TCredentials credentials) throws org.apache.thrift.TException { getMasterStats_args args = new getMasterStats_args(); args.setTinfo(tinfo); args.setCredentials(credentials); sendBase("getMasterStats", args); }
public Object getFieldValue(_Fields field) { switch (field) { case TINFO: return getTinfo(); case CREDENTIALS: return getCredentials(); } throw new IllegalStateException(); }