Package org.apache.druid.indexer
Class HadoopIngestionSpec
- java.lang.Object
-
- org.apache.druid.segment.indexing.IngestionSpec<HadoopIOConfig,HadoopTuningConfig>
-
- org.apache.druid.indexer.HadoopIngestionSpec
-
public class HadoopIngestionSpec extends org.apache.druid.segment.indexing.IngestionSpec<HadoopIOConfig,HadoopTuningConfig>
-
-
Constructor Summary
Constructors Constructor Description HadoopIngestionSpec(org.apache.druid.segment.indexing.DataSchema dataSchema, HadoopIOConfig ioConfig, HadoopTuningConfig tuningConfig)HadoopIngestionSpec(org.apache.druid.segment.indexing.DataSchema dataSchema, HadoopIOConfig ioConfig, HadoopTuningConfig tuningConfig, String uniqueId, Map<String,Object> context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getContext()org.apache.druid.segment.indexing.DataSchemagetDataSchema()HadoopIOConfiggetIOConfig()HadoopTuningConfiggetTuningConfig()StringgetUniqueId()static voidupdateSegmentListIfDatasourcePathSpecIsUsed(HadoopIngestionSpec spec, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, UsedSegmentsRetriever segmentsRetriever)HadoopIngestionSpecwithContext(Map<String,Object> context)HadoopIngestionSpecwithDataSchema(org.apache.druid.segment.indexing.DataSchema schema)HadoopIngestionSpecwithIOConfig(HadoopIOConfig config)HadoopIngestionSpecwithTuningConfig(HadoopTuningConfig config)
-
-
-
Constructor Detail
-
HadoopIngestionSpec
public HadoopIngestionSpec(org.apache.druid.segment.indexing.DataSchema dataSchema, HadoopIOConfig ioConfig, @Nullable HadoopTuningConfig tuningConfig, @Nullable String uniqueId, @Nullable Map<String,Object> context)
-
HadoopIngestionSpec
public HadoopIngestionSpec(org.apache.druid.segment.indexing.DataSchema dataSchema, HadoopIOConfig ioConfig, HadoopTuningConfig tuningConfig)
-
-
Method Detail
-
getDataSchema
public org.apache.druid.segment.indexing.DataSchema getDataSchema()
- Overrides:
getDataSchemain classorg.apache.druid.segment.indexing.IngestionSpec<HadoopIOConfig,HadoopTuningConfig>
-
getIOConfig
public HadoopIOConfig getIOConfig()
- Overrides:
getIOConfigin classorg.apache.druid.segment.indexing.IngestionSpec<HadoopIOConfig,HadoopTuningConfig>
-
getTuningConfig
public HadoopTuningConfig getTuningConfig()
- Overrides:
getTuningConfigin classorg.apache.druid.segment.indexing.IngestionSpec<HadoopIOConfig,HadoopTuningConfig>
-
getUniqueId
public String getUniqueId()
-
withDataSchema
public HadoopIngestionSpec withDataSchema(org.apache.druid.segment.indexing.DataSchema schema)
-
withIOConfig
public HadoopIngestionSpec withIOConfig(HadoopIOConfig config)
-
withTuningConfig
public HadoopIngestionSpec withTuningConfig(HadoopTuningConfig config)
-
withContext
public HadoopIngestionSpec withContext(Map<String,Object> context)
-
updateSegmentListIfDatasourcePathSpecIsUsed
public static void updateSegmentListIfDatasourcePathSpecIsUsed(HadoopIngestionSpec spec, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, UsedSegmentsRetriever segmentsRetriever) throws IOException
- Throws:
IOException
-
-