public TabletSplit deepCopy() { return new TabletSplit(this); }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TabletSplit) return this.equals((TabletSplit)that); return false; }
public java.lang.Object getFieldValue(_Fields field) { switch (field) { case OLD_TABLET: return getOldTablet(); case NEW_TABLETS: return getNewTablets(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetOldTablet()) ? 131071 : 524287); if (isSetOldTablet()) hashCode = hashCode * 8191 + oldTablet.hashCode(); hashCode = hashCode * 8191 + ((isSetNewTablets()) ? 131071 : 524287); if (isSetNewTablets()) hashCode = hashCode * 8191 + newTablets.hashCode(); return hashCode; }
case 3: // SPLIT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.split = new TabletSplit(); struct.split.read(iprot); struct.setSplitIsSet(true); } else {
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); } }
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { scheme(oprot).write(oprot, this); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTinfo()) ? 131071 : 524287); if (isSetTinfo()) hashCode = hashCode * 8191 + tinfo.hashCode(); hashCode = hashCode * 8191 + ((isSetCredentials()) ? 131071 : 524287); if (isSetCredentials()) hashCode = hashCode * 8191 + credentials.hashCode(); hashCode = hashCode * 8191 + ((isSetServerName()) ? 131071 : 524287); if (isSetServerName()) hashCode = hashCode * 8191 + serverName.hashCode(); hashCode = hashCode * 8191 + ((isSetSplit()) ? 131071 : 524287); if (isSetSplit()) hashCode = hashCode * 8191 + split.hashCode(); return hashCode; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, reportSplitExtent_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(4); 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.securityImpl.thrift.TCredentials(); struct.credentials.read(iprot); struct.setCredentialsIsSet(true); } if (incoming.get(2)) { struct.serverName = iprot.readString(); struct.setServerNameIsSet(true); } if (incoming.get(3)) { struct.split = new TabletSplit(); struct.split.read(iprot); struct.setSplitIsSet(true); } } }
/** 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 OLD_TABLET: return isSetOldTablet(); case NEW_TABLETS: return isSetNewTablets(); } throw new java.lang.IllegalStateException(); }
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 read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { scheme(iprot).read(iprot, this); }
case 3: // SPLIT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.split = new TabletSplit(); struct.split.read(iprot); struct.setSplitIsSet(true); } else {
@Override public void send(TCredentials credentials, String serverName, MasterClientService.Iface client) throws TException, ThriftSecurityException { TabletSplit split = new TabletSplit(); split.oldTablet = old_extent.toThrift(); split.newTablets = Translator.translate(extents.keySet(), Translators.KET); client.reportSplitExtent(Tracer.traceInfo(), credentials, serverName, split); }
public boolean equals(TabletSplit that) { if (that == null) return false; if (this == that) return true; boolean this_present_oldTablet = true && this.isSetOldTablet(); boolean that_present_oldTablet = true && that.isSetOldTablet(); if (this_present_oldTablet || that_present_oldTablet) { if (!(this_present_oldTablet && that_present_oldTablet)) return false; if (!this.oldTablet.equals(that.oldTablet)) return false; } boolean this_present_newTablets = true && this.isSetNewTablets(); boolean that_present_newTablets = true && that.isSetNewTablets(); if (this_present_newTablets || that_present_newTablets) { if (!(this_present_newTablets && that_present_newTablets)) return false; if (!this.newTablets.equals(that.newTablets)) return false; } return true; }
public Object getFieldValue(_Fields field) { switch (field) { case OLD_TABLET: return getOldTablet(); case NEW_TABLETS: return getNewTablets(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof TabletSplit) return this.equals((TabletSplit)that); return false; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, reportSplitExtent_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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); } if (incoming.get(2)) { struct.serverName = iprot.readString(); struct.setServerNameIsSet(true); } if (incoming.get(3)) { struct.split = new TabletSplit(); struct.split.read(iprot); struct.setSplitIsSet(true); } } }
/** * Performs a deep copy on <i>other</i>. */ public reportSplitExtent_args(reportSplitExtent_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.securityImpl.thrift.TCredentials(other.credentials); } if (other.isSetServerName()) { this.serverName = other.serverName; } if (other.isSetSplit()) { this.split = new TabletSplit(other.split); } }
@Override public int compareTo(TabletSplit other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetOldTablet()).compareTo(other.isSetOldTablet()); if (lastComparison != 0) { return lastComparison; } if (isSetOldTablet()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldTablet, other.oldTablet); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetNewTablets()).compareTo(other.isSetNewTablets()); if (lastComparison != 0) { return lastComparison; } if (isSetNewTablets()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newTablets, other.newTablets); if (lastComparison != 0) { return lastComparison; } } return 0; }