public boolean equals(Adjacency that) { if (that == null) return false; boolean this_present_node = true && this.isSetNode(); boolean that_present_node = true && that.isSetNode(); if (this_present_node || that_present_node) { if (!(this_present_node && that_present_node)) return false; if (!this.node.equals(that.node)) return false; } boolean this_present_children = true && this.isSetChildren(); boolean that_present_children = true && that.isSetChildren(); if (this_present_children || that_present_children) { if (!(this_present_children && that_present_children)) return false; if (!this.children.equals(that.children)) return false; } boolean this_present_adjacencyType = true && this.isSetAdjacencyType(); boolean that_present_adjacencyType = true && that.isSetAdjacencyType(); if (this_present_adjacencyType || that_present_adjacencyType) { if (!(this_present_adjacencyType && that_present_adjacencyType)) return false; if (!this.adjacencyType.equals(that.adjacencyType)) return false; } return true; }
case 3: // ADJACENCY_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } else {
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_node = true && (isSetNode()); list.add(present_node); if (present_node) list.add(node); boolean present_children = true && (isSetChildren()); list.add(present_children); if (present_children) list.add(children); boolean present_adjacencyType = true && (isSetAdjacencyType()); list.add(present_adjacencyType); if (present_adjacencyType) list.add(adjacencyType.getValue()); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_node = true && (isSetNode()); list.add(present_node); if (present_node) list.add(node); boolean present_children = true && (isSetChildren()); list.add(present_children); if (present_children) list.add(children); boolean present_adjacencyType = true && (isSetAdjacencyType()); list.add(present_adjacencyType); if (present_adjacencyType) list.add(adjacencyType.getValue()); return list.hashCode(); }
case 3: // ADJACENCY_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } else {
public boolean equals(Adjacency that) { if (that == null) return false; boolean this_present_node = true && this.isSetNode(); boolean that_present_node = true && that.isSetNode(); if (this_present_node || that_present_node) { if (!(this_present_node && that_present_node)) return false; if (!this.node.equals(that.node)) return false; } boolean this_present_children = true && this.isSetChildren(); boolean that_present_children = true && that.isSetChildren(); if (this_present_children || that_present_children) { if (!(this_present_children && that_present_children)) return false; if (!this.children.equals(that.children)) return false; } boolean this_present_adjacencyType = true && this.isSetAdjacencyType(); boolean that_present_adjacencyType = true && that.isSetAdjacencyType(); if (this_present_adjacencyType || that_present_adjacencyType) { if (!(this_present_adjacencyType && that_present_adjacencyType)) return false; if (!this.adjacencyType.equals(that.adjacencyType)) return false; } return true; }
public void write(org.apache.thrift.protocol.TProtocol oprot, Adjacency struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(struct.node); oprot.writeFieldEnd(); } if (struct.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size())); for (String _iter3 : struct.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(struct.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.node = iprot.readString(); struct.setNodeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.children = new ArrayList<String>(_list5.size); String _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = iprot.readString(); struct.children.add(_elem6); } } struct.setChildrenIsSet(true); } if (incoming.get(2)) { struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } } }
public boolean equals(Adjacency that) { if (that == null) return false; boolean this_present_node = true && this.isSetNode(); boolean that_present_node = true && that.isSetNode(); if (this_present_node || that_present_node) { if (!(this_present_node && that_present_node)) return false; if (!this.node.equals(that.node)) return false; } boolean this_present_children = true && this.isSetChildren(); boolean that_present_children = true && that.isSetChildren(); if (this_present_children || that_present_children) { if (!(this_present_children && that_present_children)) return false; if (!this.children.equals(that.children)) return false; } boolean this_present_adjacencyType = true && this.isSetAdjacencyType(); boolean that_present_adjacencyType = true && that.isSetAdjacencyType(); if (this_present_adjacencyType || that_present_adjacencyType) { if (!(this_present_adjacencyType && that_present_adjacencyType)) return false; if (!this.adjacencyType.equals(that.adjacencyType)) return false; } return true; }
public void write(org.apache.thrift.protocol.TProtocol oprot, Adjacency struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(struct.node); oprot.writeFieldEnd(); } if (struct.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size())); for (String _iter3 : struct.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(struct.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.node = iprot.readString(); struct.setNodeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.children = new ArrayList<String>(_list5.size); String _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = iprot.readString(); struct.children.add(_elem6); } } struct.setChildrenIsSet(true); } if (incoming.get(2)) { struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } } }
public boolean equals(Adjacency that) { if (that == null) return false; boolean this_present_node = true && this.isSetNode(); boolean that_present_node = true && that.isSetNode(); if (this_present_node || that_present_node) { if (!(this_present_node && that_present_node)) return false; if (!this.node.equals(that.node)) return false; } boolean this_present_children = true && this.isSetChildren(); boolean that_present_children = true && that.isSetChildren(); if (this_present_children || that_present_children) { if (!(this_present_children && that_present_children)) return false; if (!this.children.equals(that.children)) return false; } boolean this_present_adjacencyType = true && this.isSetAdjacencyType(); boolean that_present_adjacencyType = true && that.isSetAdjacencyType(); if (this_present_adjacencyType || that_present_adjacencyType) { if (!(this_present_adjacencyType && that_present_adjacencyType)) return false; if (!this.adjacencyType.equals(that.adjacencyType)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetNode()) { optionals.set(0); } if (struct.isSetChildren()) { optionals.set(1); } if (struct.isSetAdjacencyType()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetNode()) { oprot.writeString(struct.node); } if (struct.isSetChildren()) { { oprot.writeI32(struct.children.size()); for (String _iter4 : struct.children) { oprot.writeString(_iter4); } } } if (struct.isSetAdjacencyType()) { oprot.writeI32(struct.adjacencyType.getValue()); } }
case 3: // ADJACENCY_TYPE if (field.type == TType.I32) { this.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetNode()) { optionals.set(0); } if (struct.isSetChildren()) { optionals.set(1); } if (struct.isSetAdjacencyType()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetNode()) { oprot.writeString(struct.node); } if (struct.isSetChildren()) { { oprot.writeI32(struct.children.size()); for (String _iter4 : struct.children) { oprot.writeString(_iter4); } } } if (struct.isSetAdjacencyType()) { oprot.writeI32(struct.adjacencyType.getValue()); } }
case 3: // ADJACENCY_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } else {
public void write(org.apache.thrift.protocol.TProtocol oprot, Adjacency struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(struct.node); oprot.writeFieldEnd(); } if (struct.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size())); for (String _iter3 : struct.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(struct.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.node = iprot.readString(); struct.setNodeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.children = new ArrayList<String>(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { String _elem7; // required _elem7 = iprot.readString(); struct.children.add(_elem7); } } struct.setChildrenIsSet(true); } if (incoming.get(2)) { struct.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } } }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(this.node); oprot.writeFieldEnd(); } if (this.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.children.size())); for (String _iter3 : this.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(this.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetNode()) { optionals.set(0); } if (struct.isSetChildren()) { optionals.set(1); } if (struct.isSetAdjacencyType()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetNode()) { oprot.writeString(struct.node); } if (struct.isSetChildren()) { { oprot.writeI32(struct.children.size()); for (String _iter4 : struct.children) { oprot.writeString(_iter4); } } } if (struct.isSetAdjacencyType()) { oprot.writeI32(struct.adjacencyType.getValue()); } }