if (isSetIsAllParts()) { if (!first) sb.append(", "); sb.append("isAllParts:");
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_dbName = true && (isSetDbName()); list.add(present_dbName); if (present_dbName) list.add(dbName); boolean present_tblName = true && (isSetTblName()); list.add(present_tblName); if (present_tblName) list.add(tblName); boolean present_partName = true && (isSetPartName()); list.add(present_partName); if (present_partName) list.add(partName); boolean present_isAllParts = true && (isSetIsAllParts()); list.add(present_isAllParts); if (present_isAllParts) list.add(isAllParts); return list.hashCode(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, CacheFileMetadataRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); oprot.writeString(struct.dbName); oprot.writeFieldEnd(); } if (struct.tblName != null) { oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); oprot.writeString(struct.tblName); oprot.writeFieldEnd(); } if (struct.partName != null) { if (struct.isSetPartName()) { oprot.writeFieldBegin(PART_NAME_FIELD_DESC); oprot.writeString(struct.partName); oprot.writeFieldEnd(); } } if (struct.isSetIsAllParts()) { oprot.writeFieldBegin(IS_ALL_PARTS_FIELD_DESC); oprot.writeBool(struct.isAllParts); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case PART_NAME: return isSetPartName(); case IS_ALL_PARTS: return isSetIsAllParts(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, CacheFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.dbName); oprot.writeString(struct.tblName); BitSet optionals = new BitSet(); if (struct.isSetPartName()) { optionals.set(0); } if (struct.isSetIsAllParts()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartName()) { oprot.writeString(struct.partName); } if (struct.isSetIsAllParts()) { oprot.writeBool(struct.isAllParts); } }
lastComparison = Boolean.valueOf(isSetIsAllParts()).compareTo(other.isSetIsAllParts()); if (lastComparison != 0) { return lastComparison; if (isSetIsAllParts()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAllParts, other.isAllParts); if (lastComparison != 0) {
boolean this_present_isAllParts = true && this.isSetIsAllParts(); boolean that_present_isAllParts = true && that.isSetIsAllParts(); if (this_present_isAllParts || that_present_isAllParts) { if (!(this_present_isAllParts && that_present_isAllParts))
boolean isAllPart = req.isSetIsAllParts() && req.isIsAllParts(); ms.openTransaction(); boolean success = false;
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_dbName = true && (isSetDbName()); list.add(present_dbName); if (present_dbName) list.add(dbName); boolean present_tblName = true && (isSetTblName()); list.add(present_tblName); if (present_tblName) list.add(tblName); boolean present_partName = true && (isSetPartName()); list.add(present_partName); if (present_partName) list.add(partName); boolean present_isAllParts = true && (isSetIsAllParts()); list.add(present_isAllParts); if (present_isAllParts) list.add(isAllParts); return list.hashCode(); }
if (isSetIsAllParts()) { if (!first) sb.append(", "); sb.append("isAllParts:");
public void write(org.apache.thrift.protocol.TProtocol oprot, CacheFileMetadataRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); oprot.writeString(struct.dbName); oprot.writeFieldEnd(); } if (struct.tblName != null) { oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); oprot.writeString(struct.tblName); oprot.writeFieldEnd(); } if (struct.partName != null) { if (struct.isSetPartName()) { oprot.writeFieldBegin(PART_NAME_FIELD_DESC); oprot.writeString(struct.partName); oprot.writeFieldEnd(); } } if (struct.isSetIsAllParts()) { oprot.writeFieldBegin(IS_ALL_PARTS_FIELD_DESC); oprot.writeBool(struct.isAllParts); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 DB_NAME: return isSetDbName(); case TBL_NAME: return isSetTblName(); case PART_NAME: return isSetPartName(); case IS_ALL_PARTS: return isSetIsAllParts(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, CacheFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.dbName); oprot.writeString(struct.tblName); BitSet optionals = new BitSet(); if (struct.isSetPartName()) { optionals.set(0); } if (struct.isSetIsAllParts()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartName()) { oprot.writeString(struct.partName); } if (struct.isSetIsAllParts()) { oprot.writeBool(struct.isAllParts); } }
lastComparison = Boolean.valueOf(isSetIsAllParts()).compareTo(other.isSetIsAllParts()); if (lastComparison != 0) { return lastComparison; if (isSetIsAllParts()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAllParts, other.isAllParts); if (lastComparison != 0) {
boolean this_present_isAllParts = true && this.isSetIsAllParts(); boolean that_present_isAllParts = true && that.isSetIsAllParts(); if (this_present_isAllParts || that_present_isAllParts) { if (!(this_present_isAllParts && that_present_isAllParts))
boolean isAllPart = req.isSetIsAllParts() && req.isIsAllParts(); ms.openTransaction(); boolean success = false;