org.apache.gobblin.source.workunit.Extract.getProp()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中org.apache.gobblin.source.workunit.Extract.getProp()方法的一些代码示例,展示了Extract.getProp()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extract.getProp()方法的具体详情如下:
包路径:org.apache.gobblin.source.workunit.Extract
类名称:Extract
方法名:getProp

Extract.getProp介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-gobblin

  1. /**
  2. * Get the dot-separated namespace of the table.
  3. *
  4. * @return dot-separated namespace of the table
  5. */
  6. public String getNamespace() {
  7. return getProp(ConfigurationKeys.EXTRACT_NAMESPACE_NAME_KEY, "");
  8. }

代码示例来源:origin: apache/incubator-gobblin

  1. /**
  2. * Get the name of the table.
  3. *
  4. * @return name of the table
  5. */
  6. public String getTable() {
  7. return getProp(ConfigurationKeys.EXTRACT_TABLE_NAME_KEY, "");
  8. }

代码示例来源:origin: apache/incubator-gobblin

  1. /**
  2. * Get a (non-globally) unique ID for this {@link Extract}.
  3. *
  4. * @return unique ID for this {@link Extract}
  5. */
  6. public String getExtractId() {
  7. return getProp(ConfigurationKeys.EXTRACT_EXTRACT_ID_KEY, "");
  8. }

代码示例来源:origin: apache/incubator-gobblin

  1. @Override
  2. public String getProp(String key, String def) {
  3. String value = super.getProp(key);
  4. if (value == null) {
  5. value = this.extract.getProp(key, def);
  6. }
  7. return value;
  8. }

代码示例来源:origin: apache/incubator-gobblin

  1. /**
  2. * Get the {@link TableType} of the table.
  3. *
  4. * @return {@link TableType} of the table
  5. */
  6. public TableType getType() {
  7. return TableType.valueOf(getProp(ConfigurationKeys.EXTRACT_TABLE_TYPE_KEY));
  8. }

代码示例来源:origin: apache/incubator-gobblin

  1. /**
  2. * Add more primary keys to the existing set of primary keys.
  3. *
  4. * @param primaryKeyFieldName primary key names
  5. * @deprecated @deprecated It is recommended to add primary keys in {@code WorkUnit} instead of {@code Extract}.
  6. */
  7. @Deprecated
  8. public void addPrimaryKey(String... primaryKeyFieldName) {
  9. StringBuilder sb = new StringBuilder(getProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, ""));
  10. Joiner.on(",").appendTo(sb, primaryKeyFieldName);
  11. setProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, sb.toString());
  12. }

代码示例来源:origin: apache/incubator-gobblin

  1. /**
  2. * Add more delta fields to the existing set of delta fields.
  3. *
  4. * @param deltaFieldName delta field names
  5. * @deprecated It is recommended to add delta fields in {@code WorkUnit} instead of {@code Extract}.
  6. */
  7. @Deprecated
  8. public void addDeltaField(String... deltaFieldName) {
  9. StringBuilder sb = new StringBuilder(getProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, ""));
  10. Joiner.on(",").appendTo(sb, deltaFieldName);
  11. setProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, sb.toString());
  12. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. /**
  2. * Get a (non-globally) unique ID for this {@link Extract}.
  3. *
  4. * @return unique ID for this {@link Extract}
  5. */
  6. public String getExtractId() {
  7. return getProp(ConfigurationKeys.EXTRACT_EXTRACT_ID_KEY, "");
  8. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. /**
  2. * Get the dot-separated namespace of the table.
  3. *
  4. * @return dot-separated namespace of the table
  5. */
  6. public String getNamespace() {
  7. return getProp(ConfigurationKeys.EXTRACT_NAMESPACE_NAME_KEY, "");
  8. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. /**
  2. * Get the name of the table.
  3. *
  4. * @return name of the table
  5. */
  6. public String getTable() {
  7. return getProp(ConfigurationKeys.EXTRACT_TABLE_NAME_KEY, "");
  8. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. @Override
  2. public String getProp(String key, String def) {
  3. String value = super.getProp(key);
  4. if (value == null) {
  5. value = this.extract.getProp(key, def);
  6. }
  7. return value;
  8. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. /**
  2. * Get the {@link TableType} of the table.
  3. *
  4. * @return {@link TableType} of the table
  5. */
  6. public TableType getType() {
  7. return TableType.valueOf(getProp(ConfigurationKeys.EXTRACT_TABLE_TYPE_KEY));
  8. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. /**
  2. * Add more delta fields to the existing set of delta fields.
  3. *
  4. * @param deltaFieldName delta field names
  5. * @deprecated It is recommended to add delta fields in {@code WorkUnit} instead of {@code Extract}.
  6. */
  7. @Deprecated
  8. public void addDeltaField(String... deltaFieldName) {
  9. StringBuilder sb = new StringBuilder(getProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, ""));
  10. Joiner.on(",").appendTo(sb, deltaFieldName);
  11. setProp(ConfigurationKeys.EXTRACT_DELTA_FIELDS_KEY, sb.toString());
  12. }

代码示例来源:origin: org.apache.gobblin/gobblin-api

  1. /**
  2. * Add more primary keys to the existing set of primary keys.
  3. *
  4. * @param primaryKeyFieldName primary key names
  5. * @deprecated @deprecated It is recommended to add primary keys in {@code WorkUnit} instead of {@code Extract}.
  6. */
  7. @Deprecated
  8. public void addPrimaryKey(String... primaryKeyFieldName) {
  9. StringBuilder sb = new StringBuilder(getProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, ""));
  10. Joiner.on(",").appendTo(sb, primaryKeyFieldName);
  11. setProp(ConfigurationKeys.EXTRACT_PRIMARY_KEY_FIELDS_KEY, sb.toString());
  12. }

相关文章