/** * Method to compare the attributes of 2 HCatTable instances. * Only the {@code DEFAULT_COMPARISON_ATTRIBUTES} are compared. * @param rhs The other table being compared against. Can't be null. * @return {@code EnumSet<TableAttribute>} containing all the attribute that differ between {@code this} and rhs. * Subset of {@code DEFAULT_COMPARISON_ATTRIBUTES}. */ public EnumSet<TableAttribute> diff (HCatTable rhs) { return diff(rhs, DEFAULT_COMPARISON_ATTRIBUTES); }
HCatTable.NO_DIFF, sourceTable.diff(targetTable)); HCatTable.NO_DIFF, sourceTable.diff(targetTable)); EnumSet<HCatTable.TableAttribute> diff = targetTable.diff(sourceTable); assertTrue("Couldn't find change in column-schema.", diff.contains(HCatTable.TableAttribute.COLUMNS)); HCatTable.NO_DIFF, targetTable.diff(sourceTable));
targetTable = targetMetaStore().getTable(dbName, tableName); assertEquals("Created table doesn't match the source.", HCatTable.NO_DIFF, targetTable.diff(sourceTable));
targetTable = targetMetaStore().getTable(dbName, tableName); assertEquals("Created table doesn't match the source.", HCatTable.NO_DIFF, targetTable.diff(sourceTable));
/** * Method to compare the attributes of 2 HCatTable instances. * Only the {@code DEFAULT_COMPARISON_ATTRIBUTES} are compared. * @param rhs The other table being compared against. Can't be null. * @return {@code EnumSet<TableAttribute>} containing all the attribute that differ between {@code this} and rhs. * Subset of {@code DEFAULT_COMPARISON_ATTRIBUTES}. */ public EnumSet<TableAttribute> diff (HCatTable rhs) { return diff(rhs, DEFAULT_COMPARISON_ATTRIBUTES); }
/** * Method to compare the attributes of 2 HCatTable instances. * Only the {@code DEFAULT_COMPARISON_ATTRIBUTES} are compared. * @param rhs The other table being compared against. Can't be null. * @return {@code EnumSet<TableAttribute>} containing all the attribute that differ between {@code this} and rhs. * Subset of {@code DEFAULT_COMPARISON_ATTRIBUTES}. */ public EnumSet<TableAttribute> diff (HCatTable rhs) { return diff(rhs, DEFAULT_COMPARISON_ATTRIBUTES); }
/** * Method to compare the attributes of 2 HCatTable instances. * Only the {@code DEFAULT_COMPARISON_ATTRIBUTES} are compared. * @param rhs The other table being compared against. Can't be null. * @return {@code EnumSet<TableAttribute>} containing all the attribute that differ between {@code this} and rhs. * Subset of {@code DEFAULT_COMPARISON_ATTRIBUTES}. */ public EnumSet<TableAttribute> diff (HCatTable rhs) { return diff(rhs, DEFAULT_COMPARISON_ATTRIBUTES); }