Class FireDepartment
- java.lang.Object
-
- org.apache.druid.segment.indexing.IngestionSpec<RealtimeIOConfig,RealtimeTuningConfig>
-
- org.apache.druid.segment.realtime.FireDepartment
-
public class FireDepartment extends IngestionSpec<RealtimeIOConfig,RealtimeTuningConfig>
A Fire Department has a Firehose and a Plumber.This is a metaphor for a realtime stream (Firehose) and a coordinator of sinks (Plumber). The Firehose provides the realtime stream of data. The Plumber directs each drop of water from the firehose into the correct sink and makes sure that the sinks don't overflow.
-
-
Constructor Summary
Constructors Constructor Description FireDepartment(DataSchema dataSchema, RealtimeIOConfig ioConfig, RealtimeTuningConfig tuningConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.druid.data.input.Firehoseconnect()DataSchemagetDataSchema()Provides the data schema for the feed that this FireDepartment is in charge of.RealtimeIOConfiggetIOConfig()FireDepartmentMetricsgetMetrics()RealtimeTuningConfiggetTuningConfig()
-
-
-
Constructor Detail
-
FireDepartment
public FireDepartment(DataSchema dataSchema, RealtimeIOConfig ioConfig, RealtimeTuningConfig tuningConfig)
-
-
Method Detail
-
getDataSchema
public DataSchema getDataSchema()
Provides the data schema for the feed that this FireDepartment is in charge of.- Overrides:
getDataSchemain classIngestionSpec<RealtimeIOConfig,RealtimeTuningConfig>- Returns:
- the Schema for this feed.
-
getIOConfig
public RealtimeIOConfig getIOConfig()
- Overrides:
getIOConfigin classIngestionSpec<RealtimeIOConfig,RealtimeTuningConfig>
-
getTuningConfig
public RealtimeTuningConfig getTuningConfig()
- Overrides:
getTuningConfigin classIngestionSpec<RealtimeIOConfig,RealtimeTuningConfig>
-
connect
public org.apache.druid.data.input.Firehose connect() throws IOException- Throws:
IOException
-
getMetrics
public FireDepartmentMetrics getMetrics()
-
-