/** * Partition cols. * * @param partCols the partition cols * @return the builder */ @Deprecated // @deprecated in favour of {@link HCatTable.#partCols(List<FieldSchema>)}. To be removed in Hive 0.16. public Builder partCols(List<HCatFieldSchema> partCols) { this.hcatTable.partCols(partCols); return this; }
ArrayList<HCatFieldSchema> partitionColumns = new ArrayList<HCatFieldSchema>( Arrays.asList(new HCatFieldSchema(partitionColumn, Type.STRING, ""))); HCatTable table = new HCatTable(dbName, tableName).cols(columns).partCols(partitionColumns); client.createTable(HCatCreateTableDesc.create(table, false).build());
new HCatFieldSchema("grid", Type.STRING, "")); HCatTable table = new HCatTable(dbName, tableName).cols(columnSchema).partCols(partitionSchema); client.createTable(HCatCreateTableDesc.create(table, false).build());
new HCatFieldSchema("grid", Type.STRING, "")); HCatTable table = new HCatTable(dbName, tableName).cols(columnSchema).partCols(partitionSchema); client.createTable(HCatCreateTableDesc.create(table, false).build());
"country column")); HCatTable table = new HCatTable(dbName, tableName).cols(cols) .partCols(ptnCols) .fileFormat("sequenceFile"); HCatCreateTableDesc tableDesc = HCatCreateTableDesc.create(table, false).build();
HCatTable table = (new HCatTable(dbName, tableName)).tblProps(tprops).cols(cols).partCols(pcols);
List<HCatFieldSchema> cols2 = HCatSchemaUtils.getHCatSchema("a:int").getFields(); List<HCatFieldSchema> pcols2 = HCatSchemaUtils.getHCatSchema("b:string").getFields(); HCatTable table2 = (new HCatTable(dbName, tblName2)).cols(cols2).partCols(pcols2); sourceMetastore.createTable(HCatCreateTableDesc.create(table2).build());
HCatTable table = (new HCatTable(dbName, tableName)).tblProps(props).cols(cols).partCols(pcols);
new HCatFieldSchema("grid", Type.STRING, "")); HCatTable sourceTable = new HCatTable(dbName, tableName).cols(columnSchema).partCols(partitionSchema); sourceMetaStore().createTable(HCatCreateTableDesc.create(sourceTable).build());
.partCols(partitionSchema) .comment("Source table.");
.partCols(partitionSchema) .comment("Source table.");
/** * Partition cols. * * @param partCols the partition cols * @return the builder */ @Deprecated // @deprecated in favour of {@link HCatTable.#partCols(List<FieldSchema>)}. To be removed in Hive 0.16. public Builder partCols(List<HCatFieldSchema> partCols) { this.hcatTable.partCols(partCols); return this; }
/** * Partition cols. * * @param partCols the partition cols * @return the builder */ @Deprecated // @deprecated in favour of {@link HCatTable.#partCols(List<FieldSchema>)}. To be removed in Hive 0.16. public Builder partCols(List<HCatFieldSchema> partCols) { this.hcatTable.partCols(partCols); return this; }
/** * Partition cols. * * @param partCols the partition cols * @return the builder */ @Deprecated // @deprecated in favour of {@link HCatTable.#partCols(List<FieldSchema>)}. To be removed in Hive 0.16. public Builder partCols(List<HCatFieldSchema> partCols) { this.hcatTable.partCols(partCols); return this; }