public TableStatsRequest deepCopy() { return new TableStatsRequest(this); }
public Object getFieldValue(_Fields field) { switch (field) { case DB_NAME: return getDbName(); case TBL_NAME: return getTblName(); case COL_NAMES: return getColNames(); case CAT_NAME: return getCatName(); case VALID_WRITE_ID_LIST: return getValidWriteIdList(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof TableStatsRequest) return this.equals((TableStatsRequest)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsRequest(TableStatsRequest other) { if (other.isSetDbName()) { this.dbName = other.dbName; } if (other.isSetTblName()) { this.tblName = other.tblName; } if (other.isSetColNames()) { List<String> __this__colNames = new ArrayList<String>(other.colNames); this.colNames = __this__colNames; } if (other.isSetCatName()) { this.catName = other.catName; } if (other.isSetValidWriteIdList()) { this.validWriteIdList = other.validWriteIdList; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetDbName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); } if (!isSetTblName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); } if (!isSetColNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'colNames' is unset! Struct:" + toString()); } // check for sub-struct validity }
case DB_NAME: if (value == null) { unsetDbName(); } else { setDbName((String)value); unsetTblName(); } else { setTblName((String)value); unsetColNames(); } else { setColNames((List<String>)value); unsetCatName(); } else { setCatName((String)value); unsetValidWriteIdList(); } else { setValidWriteIdList((String)value);
/** 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 COL_NAMES: return isSetColNames(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: if (value == null) { unsetDbName(); } else { setDbName((String)value); } break; case TBL_NAME: if (value == null) { unsetTblName(); } else { setTblName((String)value); } break; case COL_NAMES: if (value == null) { unsetColNames(); } else { setColNames((List<String>)value); } break; } }
public Object getFieldValue(_Fields field) { switch (field) { case DB_NAME: return getDbName(); case TBL_NAME: return getTblName(); case COL_NAMES: return getColNames(); } throw new IllegalStateException(); }
@Override public List<ColumnStatisticsObj> getTableColumnStatistics(String catName, String dbName, String tableName, List<String> colNames, String validWriteIdList) throws TException { TableStatsRequest rqst = new TableStatsRequest(dbName, tableName, colNames); rqst.setCatName(catName); rqst.setValidWriteIdList(validWriteIdList); return client.get_table_statistics_req(rqst).getTableStats(); }
@Override public List<ColumnStatisticsObj> getTableColumnStatistics(String catName, String dbName, String tableName, List<String> colNames) throws TException { TableStatsRequest rqst = new TableStatsRequest(dbName, tableName, colNames); rqst.setCatName(catName); return client.get_table_statistics_req(rqst).getTableStats(); }
@Override public List<ColumnStatisticsObj> getTableColumnStatistics( String dbName, String tableName, List<String> colNames, String validWriteIdList) throws NoSuchObjectException, MetaException, TException { TableStatsRequest tsr = new TableStatsRequest(dbName, tableName, colNames); tsr.setValidWriteIdList(validWriteIdList); return client.get_table_statistics_req(tsr).getTableStats(); }
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); } }
/** 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 COL_NAMES: return isSetColNames(); case CAT_NAME: return isSetCatName(); case VALID_WRITE_ID_LIST: return isSetValidWriteIdList(); } throw new IllegalStateException(); }
case DB_NAME: if (value == null) { unsetDbName(); } else { setDbName((String)value); unsetTblName(); } else { setTblName((String)value); unsetColNames(); } else { setColNames((List<String>)value); unsetCatName(); } else { setCatName((String)value);
/** 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 COL_NAMES: return isSetColNames(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: if (value == null) { unsetDbName(); } else { setDbName((String)value); } break; case TBL_NAME: if (value == null) { unsetTblName(); } else { setTblName((String)value); } break; case COL_NAMES: if (value == null) { unsetColNames(); } else { setColNames((List<String>)value); } break; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetDbName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); } if (!isSetTblName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); } if (!isSetColNames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'colNames' is unset! Struct:" + toString()); } // check for sub-struct validity }
public Object getFieldValue(_Fields field) { switch (field) { case DB_NAME: return getDbName(); case TBL_NAME: return getTblName(); case COL_NAMES: return getColNames(); } throw new 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); } }