Skip to content

Commit 985c5cd

Browse files
committed
Add initializer for IndexParallelTaskSpec
1 parent 9cafa2c commit 985c5cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/DataTransferObjects/Druid/ingestion/tasks/IndexParallelTaskSpec.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
///
1616
/// https://druid.apache.org/docs/latest/ingestion/native-batch
1717
public struct IndexParallelTaskSpec: Codable, Hashable, Equatable {
18+
public init(id: String? = nil, spec: ParallelIndexIngestionSpec) {
19+
self.id = id
20+
self.spec = spec
21+
}
22+
1823
/// The task ID. If omitted, Druid generates the task ID using the task type, data source name, interval, and date-time stamp.
1924
public let id: String?
2025

0 commit comments

Comments
 (0)