@Override public boolean cacheFileMetadata( String dbName, String tableName, String partName, boolean allParts) throws TException { CacheFileMetadataRequest req = new CacheFileMetadataRequest(); req.setDbName(dbName); req.setTblName(tableName); if (partName != null) { req.setPartName(partName); } else { req.setIsAllParts(allParts); } CacheFileMetadataResult result = client.cache_file_metadata(req); return result.isIsSupported(); }
public Object getFieldValue(_Fields field) { switch (field) { case DB_NAME: return getDbName(); case TBL_NAME: return getTblName(); case PART_NAME: return getPartName(); case IS_ALL_PARTS: return isIsAllParts(); } throw new IllegalStateException(); }
/** 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(); }
/** * Performs a deep copy on <i>other</i>. */ public CacheFileMetadataRequest(CacheFileMetadataRequest other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetPartName()) { this.partName = other.partName; } this.isAllParts = other.isAllParts; }
case DB_NAME: if (value == null) { unsetDbName(); } else { setDbName((String)value); unsetTblName(); } else { setTblName((String)value); unsetPartName(); } else { setPartName((String)value); unsetIsAllParts(); } else { setIsAllParts((Boolean)value);
return new CacheFileMetadataResult(false); String dbName = req.getDbName(), tblName = req.getTblName(), partName = req.isSetPartName() ? req.getPartName() : null; boolean isAllPart = req.isSetIsAllParts() && req.isIsAllParts(); ms.openTransaction(); boolean success = false;
@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); } }
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(); }
public CacheFileMetadataRequest deepCopy() { return new CacheFileMetadataRequest(this); }
case DB_NAME: if (value == null) { unsetDbName(); } else { setDbName((String)value); unsetTblName(); } else { setTblName((String)value); unsetPartName(); } else { setPartName((String)value); unsetIsAllParts(); } else { setIsAllParts((Boolean)value);
return new CacheFileMetadataResult(false); String dbName = req.getDbName(), tblName = req.getTblName(), partName = req.isSetPartName() ? req.getPartName() : null; boolean isAllPart = req.isSetIsAllParts() && req.isIsAllParts(); ms.openTransaction(); boolean success = false;
if (isSetPartName()) { if (!first) sb.append(", "); sb.append("partName:"); 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(); }
/** * Performs a deep copy on <i>other</i>. */ public CacheFileMetadataRequest(CacheFileMetadataRequest other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetPartName()) { this.partName = other.partName; } this.isAllParts = other.isAllParts; }
public CacheFileMetadataRequest deepCopy() { return new CacheFileMetadataRequest(this); }
return false; boolean this_present_dbName = true && this.isSetDbName(); boolean that_present_dbName = true && that.isSetDbName(); if (this_present_dbName || that_present_dbName) { if (!(this_present_dbName && that_present_dbName)) boolean this_present_tblName = true && this.isSetTblName(); boolean that_present_tblName = true && that.isSetTblName(); if (this_present_tblName || that_present_tblName) { if (!(this_present_tblName && that_present_tblName)) boolean this_present_partName = true && this.isSetPartName(); boolean that_present_partName = true && that.isSetPartName(); if (this_present_partName || that_present_partName) { if (!(this_present_partName && that_present_partName)) 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))
@Override public boolean cacheFileMetadata( String dbName, String tableName, String partName, boolean allParts) throws TException { CacheFileMetadataRequest req = new CacheFileMetadataRequest(); req.setDbName(dbName); req.setTblName(tableName); if (partName != null) { req.setPartName(partName); } else { req.setIsAllParts(allParts); } CacheFileMetadataResult result = client.cache_file_metadata(req); return result.isIsSupported(); }
public Object getFieldValue(_Fields field) { switch (field) { case DB_NAME: return getDbName(); case TBL_NAME: return getTblName(); case PART_NAME: return getPartName(); case IS_ALL_PARTS: return isIsAllParts(); } 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); } }
@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(); }