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

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

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

Extract.getTable介绍

[英]Get the name of the table.
[中]获取表的名称。

代码示例

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

  1. @Override
  2. public int hashCode() {
  3. return (this.getNamespace() + this.getTable() + this.getExtractId()).hashCode();
  4. }

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

  1. @Override
  2. public boolean equals(Object object) {
  3. if (!(object instanceof Extract)) {
  4. return false;
  5. }
  6. Extract other = (Extract) object;
  7. return super.equals(other) && this.getNamespace().equals(other.getNamespace())
  8. && this.getTable().equals(other.getTable()) && this.getExtractId().equals(other.getExtractId());
  9. }

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

  1. /**
  2. * Get the writer output file path corresponding to this {@link Extract}.
  3. *
  4. * @return writer output file path corresponding to this {@link Extract}
  5. * @deprecated As {@code this.getIsFull} is deprecated.
  6. */
  7. @Deprecated
  8. public String getOutputFilePath() {
  9. return this.getNamespace().replaceAll("\\.", "/") + "/" + this.getTable() + "/" + this.getExtractId() + "_"
  10. + (this.getIsFull() ? "full" : "append");
  11. }

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

  1. @Override
  2. public MessageType convertSchema(JsonArray inputSchema, WorkUnitState workUnit)
  3. throws SchemaConversionException {
  4. String fieldName = workUnit.getExtract().getTable();
  5. JsonSchema jsonSchema = new JsonSchema(inputSchema);
  6. jsonSchema.setColumnName(fieldName);
  7. recordConverter = new RecordConverter(jsonSchema, ROOT);
  8. return (MessageType) recordConverter.schema();
  9. }

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

  1. if (previousExtract.getNamespace().equals(namespace) && previousExtract.getTable().equals(table)) {
  2. this.previousTableState.addAll(pre);

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

  1. @Override
  2. public Schema convertSchema(JsonArray schema, WorkUnitState workUnit)
  3. throws SchemaConversionException {
  4. try {
  5. JsonSchema jsonSchema = new JsonSchema(schema);
  6. jsonSchema.setColumnName(workUnit.getExtract().getTable());
  7. recordConverter = new RecordConverter(jsonSchema, workUnit, workUnit.getExtract().getNamespace());
  8. } catch (UnsupportedDateTypeException e) {
  9. throw new SchemaConversionException(e);
  10. }
  11. Schema recordSchema = recordConverter.schema();
  12. if (workUnit
  13. .getPropAsBoolean(CONVERTER_AVRO_NULLIFY_FIELDS_ENABLED, DEFAULT_CONVERTER_AVRO_NULLIFY_FIELDS_ENABLED)) {
  14. return this.generateSchemaWithNullifiedField(workUnit, recordSchema);
  15. }
  16. return recordSchema;
  17. }

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

  1. Extract extract = this.getExtract();
  2. table.setNamespace(extract.getNamespace());
  3. table.setName(extract.getTable());
  4. if (extract.hasType()) {
  5. table.setType(TableTypeEnum.valueOf(extract.getType().name()));

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

  1. @Override
  2. public boolean equals(Object object) {
  3. if (!(object instanceof Extract)) {
  4. return false;
  5. }
  6. Extract other = (Extract) object;
  7. return super.equals(other) && this.getNamespace().equals(other.getNamespace())
  8. && this.getTable().equals(other.getTable()) && this.getExtractId().equals(other.getExtractId());
  9. }

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

  1. @Override
  2. public int hashCode() {
  3. return (this.getNamespace() + this.getTable() + this.getExtractId()).hashCode();
  4. }

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

  1. /**
  2. * Get the writer output file path corresponding to this {@link Extract}.
  3. *
  4. * @return writer output file path corresponding to this {@link Extract}
  5. * @deprecated As {@code this.getIsFull} is deprecated.
  6. */
  7. @Deprecated
  8. public String getOutputFilePath() {
  9. return this.getNamespace().replaceAll("\\.", "/") + "/" + this.getTable() + "/" + this.getExtractId() + "_"
  10. + (this.getIsFull() ? "full" : "append");
  11. }

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

  1. @Override
  2. public MessageType convertSchema(JsonArray inputSchema, WorkUnitState workUnit)
  3. throws SchemaConversionException {
  4. String fieldName = workUnit.getExtract().getTable();
  5. JsonSchema jsonSchema = new JsonSchema(inputSchema);
  6. jsonSchema.setColumnName(fieldName);
  7. recordConverter = new RecordConverter(jsonSchema, ROOT);
  8. return (MessageType) recordConverter.schema();
  9. }

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

  1. if (previousExtract.getNamespace().equals(namespace) && previousExtract.getTable().equals(table)) {
  2. this.previousTableState.addAll(pre);

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

  1. @Override
  2. public Schema convertSchema(JsonArray schema, WorkUnitState workUnit)
  3. throws SchemaConversionException {
  4. try {
  5. JsonSchema jsonSchema = new JsonSchema(schema);
  6. jsonSchema.setColumnName(workUnit.getExtract().getTable());
  7. recordConverter = new RecordConverter(jsonSchema, workUnit, workUnit.getExtract().getNamespace());
  8. } catch (UnsupportedDateTypeException e) {
  9. throw new SchemaConversionException(e);
  10. }
  11. Schema recordSchema = recordConverter.schema();
  12. if (workUnit
  13. .getPropAsBoolean(CONVERTER_AVRO_NULLIFY_FIELDS_ENABLED, DEFAULT_CONVERTER_AVRO_NULLIFY_FIELDS_ENABLED)) {
  14. return this.generateSchemaWithNullifiedField(workUnit, recordSchema);
  15. }
  16. return recordSchema;
  17. }

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

  1. Extract extract = this.getExtract();
  2. table.setNamespace(extract.getNamespace());
  3. table.setName(extract.getTable());
  4. if (extract.hasType()) {
  5. table.setType(TableTypeEnum.valueOf(extract.getType().name()));

相关文章