/** * @param props A {@link State} object that includes both properties required by {@link HiveMetaStoreBasedRegister} to do * Hive registration, as well as the Hive properties that will be added to the Hive table when creating the table, * e.g., orc.compress=SNAPPY * * <p> * The Hive table properties should be a comma-separated list associated with {@link #HIVE_TABLE_PARTITION_PROPS} in the * given {@link State}. * </p> */ public HiveRegProps(State props) { super(props); this.tablePartitionProps = createHiveProps(HIVE_TABLE_PARTITION_PROPS); if (props.contains(HiveMetaStoreUtils.RUNTIME_PROPS)) { runtimeTableProps = Optional.of(props.getProp(HiveMetaStoreUtils.RUNTIME_PROPS)); } else{ runtimeTableProps = Optional.absent(); } this.storageProps = createHiveProps(HIVE_STORAGE_PROPS); this.serdeProps = createHiveProps(HIVE_SERDE_PROPS); }
/** * @param props A {@link State} object that includes both properties required by {@link HiveMetaStoreBasedRegister} to do * Hive registration, as well as the Hive properties that will be added to the Hive table when creating the table, * e.g., orc.compress=SNAPPY * * <p> * The Hive table properties should be a comma-separated list associated with {@link #HIVE_TABLE_PARTITION_PROPS} in the * given {@link State}. * </p> */ public HiveRegProps(State props) { super(props); this.tablePartitionProps = createHiveProps(HIVE_TABLE_PARTITION_PROPS); if (props.contains(HiveMetaStoreUtils.RUNTIME_PROPS)) { runtimeTableProps = Optional.of(props.getProp(HiveMetaStoreUtils.RUNTIME_PROPS)); } else{ runtimeTableProps = Optional.absent(); } this.storageProps = createHiveProps(HIVE_STORAGE_PROPS); this.serdeProps = createHiveProps(HIVE_SERDE_PROPS); }