/** * Set a (non-globally) unique ID for this {@link Extract}. * * @param extractId unique ID for this {@link Extract} */ public void setExtractId(String extractId) { setProp(ConfigurationKeys.EXTRACT_EXTRACT_ID_KEY, extractId); }
/** * Set full drop date from the given time. * * @param extractFullRunTime full extract time * @deprecated It is recommend to set this information in {@code WorkUnit} instead of {@code Extract}. */ @Deprecated public void setFullTrue(long extractFullRunTime) { setProp(ConfigurationKeys.EXTRACT_IS_FULL_KEY, true); setProp(ConfigurationKeys.EXTRACT_FULL_RUN_TIME_KEY, extractFullRunTime); }
/** * Set primary keys. * * <p> * The order of primary keys does not matter. * </p> * * @param primaryKeyFieldName primary key names * @deprecated It is recommended to set primary keys in {@code WorkUnit} instead of {@code Extract}. */ @Deprecated public void setPrimaryKeys(String... primaryKeyFieldName) { setProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, Joiner.on(",").join(primaryKeyFieldName)); }
/** * Set delta fields. * * <p> * The order of delta fields does not matter. * </p> * * @param deltaFieldName delta field names * @deprecated It is recommended to set delta fields in {@code WorkUnit} instead of {@code Extract}. */ @Deprecated public void setDeltaFields(String... deltaFieldName) { setProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, Joiner.on(",").join(deltaFieldName)); }
/** * Add more primary keys to the existing set of primary keys. * * @param primaryKeyFieldName primary key names * @deprecated @deprecated It is recommended to add primary keys in {@code WorkUnit} instead of {@code Extract}. */ @Deprecated public void addPrimaryKey(String... primaryKeyFieldName) { StringBuilder sb = new StringBuilder(getProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, "")); Joiner.on(",").appendTo(sb, primaryKeyFieldName); setProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, sb.toString()); }
/** * Add more delta fields to the existing set of delta fields. * * @param deltaFieldName delta field names * @deprecated It is recommended to add delta fields in {@code WorkUnit} instead of {@code Extract}. */ @Deprecated public void addDeltaField(String... deltaFieldName) { StringBuilder sb = new StringBuilder(getProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, "")); Joiner.on(",").appendTo(sb, deltaFieldName); setProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, sb.toString()); }