/** * Gets the table schema. * @return the table schema */ public HCatSchema getTableSchema() { assert this.partitionInfo.getTableInfo() != null : "TableInfo should have been set at this point."; return this.partitionInfo.getTableInfo().getAllColumns(); }
/** * Gets the table schema for the table specified in the HCatOutputFormat.setOutput call * on the specified job context. * Note: This is the complete table-schema, including the record-schema *and* the partitioning schema. * @param conf the Configuration object * @return the table schema, including the record-schema and partitioning schema. * @throws IOException if HCatOutputFormat.setOutput has not been called for the passed context */ public static HCatSchema getTableSchemaWithPartitionColumns(Configuration conf) throws IOException { return getJobInfo(conf).getTableInfo().getAllColumns(); }
/** * Gets the table schema. * @return the table schema */ public HCatSchema getTableSchema() { assert this.partitionInfo.getTableInfo() != null : "TableInfo should have been set at this point."; return this.partitionInfo.getTableInfo().getAllColumns(); }
/** * Gets the table schema for the table specified in the HCatOutputFormat.setOutput call * on the specified job context. * Note: This is the complete table-schema, including the record-schema *and* the partitioning schema. * @param conf the Configuration object * @return the table schema, including the record-schema and partitioning schema. * @throws IOException if HCatOutputFormat.setOutput has not been called for the passed context */ public static HCatSchema getTableSchemaWithPartitionColumns(Configuration conf) throws IOException { return getJobInfo(conf).getTableInfo().getAllColumns(); }
/** * Gets the table schema. * @return the table schema */ public HCatSchema getTableSchema() { assert this.partitionInfo.getTableInfo() != null : "TableInfo should have been set at this point."; return this.partitionInfo.getTableInfo().getAllColumns(); }
/** * Gets the table schema. * @return the table schema */ public HCatSchema getTableSchema() { assert this.partitionInfo.getTableInfo() != null : "TableInfo should have been set at this point."; return this.partitionInfo.getTableInfo().getAllColumns(); }
/** * Gets the table schema. * @return the table schema */ public HCatSchema getTableSchema() { assert this.partitionInfo.getTableInfo() != null : "TableInfo should have been set at this point."; return this.partitionInfo.getTableInfo().getAllColumns(); }