Skip to content

Commit 0ac38e4

Browse files
authored
Make everything sendable (#60)
1 parent e323218 commit 0ac38e4

49 files changed

Lines changed: 169 additions & 169 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Sources/DataTransferObjects/Chart Configuration/ChartAggregationConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Foundation
55
/// Maps to "seriesConfiguration" internally in the charting library.
66
///
77
/// Subset of https://echarts.apache.org/en/option.html#series-line
8-
public struct ChartAggregationConfiguration: Codable, Equatable {
8+
public struct ChartAggregationConfiguration: Codable, Equatable, Sendable {
99
public var startAngle: Int?
1010
public var endAngle: Int?
1111
public var radius: [String]?

Sources/DataTransferObjects/Chart Configuration/ChartConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Foundation
33
/// Display configuration for charts. Overrides various default display options.
44
///
55
/// Not hashable, because we don't want to include these values in the cache, as cached calculation results won't change based on these values.
6-
public struct ChartConfiguration: Codable, Equatable {
6+
public struct ChartConfiguration: Codable, Equatable, Sendable {
77
/// The display mode for the chart.
88
public var displayMode: ChartDisplayMode?
99

@@ -33,7 +33,7 @@ public struct ChartConfiguration: Codable, Equatable {
3333
}
3434
}
3535

36-
public enum ChartDisplayMode: String, Codable {
36+
public enum ChartDisplayMode: String, Codable, Sendable {
3737
case raw
3838
case barChart
3939
case lineChart

Sources/DataTransferObjects/Chart Configuration/ChartConfigurationOptions.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Foundation
33
/// Options for configuring a chart in our charting library
44
///
55
/// Subset of echart's options https://echarts.apache.org/en/option.html
6-
public struct ChartConfigurationOptions: Codable, Equatable {
6+
public struct ChartConfigurationOptions: Codable, Equatable, Sendable {
77
/// Whether to enable animation.
88
public var animation: Bool?
99

@@ -40,15 +40,15 @@ public struct ChartConfigurationOptions: Codable, Equatable {
4040
}
4141
}
4242

43-
public struct ToolTipConfiguration: Codable, Equatable {
43+
public struct ToolTipConfiguration: Codable, Equatable, Sendable {
4444
public var show: Bool?
4545

4646
public init(show: Bool? = nil) {
4747
self.show = show
4848
}
4949
}
5050

51-
public struct GridConfiguration: Codable, Equatable {
51+
public struct GridConfiguration: Codable, Equatable, Sendable {
5252
public var top: Int?
5353
public var bottom: Int?
5454
public var left: Int?
@@ -70,7 +70,7 @@ public struct GridConfiguration: Codable, Equatable {
7070
}
7171
}
7272

73-
public enum EasingFunction: String, Codable {
73+
public enum EasingFunction: String, Codable, Sendable {
7474
case linear
7575
case quadraticIn
7676
case quadraticOut
@@ -104,7 +104,7 @@ public enum EasingFunction: String, Codable {
104104
case bounceInOut
105105
}
106106

107-
public struct AxisOptions: Codable, Equatable {
107+
public struct AxisOptions: Codable, Equatable, Sendable {
108108
/// Set this to false to prevent the axis from showing.
109109
public var show: Bool?
110110
public var position: Position?
@@ -127,12 +127,12 @@ public struct AxisOptions: Codable, Equatable {
127127
self.inverse = inverse
128128
}
129129

130-
public enum Position: String, Codable, Equatable {
130+
public enum Position: String, Codable, Equatable, Sendable {
131131
case top
132132
case bottom
133133
}
134134

135-
public enum AxisType: String, Codable, Equatable {
135+
public enum AxisType: String, Codable, Equatable, Sendable {
136136
/// Numerical axis, suitable for continuous data.
137137
case value
138138

Sources/DataTransferObjects/Druid/configuration/AutomaticCompactionConfig/AutoCompactionDynamicConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// Defines Automatic Compaction settings for a data source
2-
public struct AutoCompactionDynamicConfig: Codable, Hashable, Equatable {
2+
public struct AutoCompactionDynamicConfig: Codable, Hashable, Equatable, Sendable {
33
public init(
44
dataSource: String,
55
taskPriority: Int?,

Sources/DataTransferObjects/Druid/configuration/TuningConfig/IndexParallelTuningConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public struct IndexParallelTuningConfig: Codable, Hashable, Equatable {
1+
public struct IndexParallelTuningConfig: Codable, Hashable, Equatable, Sendable {
22
public init(
33
maxRowsInMemory: Int? = nil,
44
maxBytesInMemory: Int? = nil,

Sources/DataTransferObjects/Druid/configuration/TuningConfig/KinesisTuningConfig.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// https://druid.apache.org/docs/latest/ingestion/supervisor/#tuning-configuration
22
/// https://druid.apache.org/docs/latest/ingestion/kinesis-ingestion#tuning-configuration
3-
public struct KinesisTuningConfig: Codable, Hashable, Equatable {
3+
public struct KinesisTuningConfig: Codable, Hashable, Equatable, Sendable {
44
public init(
55
skipSequenceNumberAvailabilityCheck: Bool? = nil,
66
recordBufferSizeBytes: Int? = nil,
@@ -165,7 +165,7 @@ public struct KinesisTuningConfig: Codable, Hashable, Equatable {
165165
public let appendableIndexSpec: AppendableIndexSpec?
166166
}
167167

168-
public struct AppendableIndexSpec: Codable, Hashable, Equatable {
168+
public struct AppendableIndexSpec: Codable, Hashable, Equatable, Sendable {
169169
public init(type: String, preserveExistingMetrics: Bool? = nil) {
170170
self.type = type
171171
self.preserveExistingMetrics = preserveExistingMetrics

Sources/DataTransferObjects/Druid/configuration/TuningConfig/TuningConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public indirect enum TuningConfig: Codable, Hashable, Equatable {
1+
public indirect enum TuningConfig: Codable, Hashable, Equatable, Sendable {
22
case kinesis(KinesisTuningConfig)
33
case indexParallel(IndexParallelTuningConfig)
44
// case kafka not implemented

Sources/DataTransferObjects/Druid/data/input/InputFormat.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/// https://druid.apache.org/docs/latest/ingestion/data-formats/#input-format
22
///
33
/// https://github.com/apache/druid/blob/master/processing/src/main/java/org/apache/druid/data/input/InputFormat.java
4-
public struct InputFormat: Codable, Hashable, Equatable {
4+
public struct InputFormat: Codable, Hashable, Equatable, Sendable {
55
public init(type: InputFormat.InputFormatType, keepNullColumns: Bool? = nil) {
66
self.type = type
77
self.keepNullColumns = keepNullColumns
88
}
99

10-
public enum InputFormatType: String, Codable, CaseIterable {
10+
public enum InputFormatType: String, Codable, CaseIterable, Sendable {
1111
case json
1212
}
1313

Sources/DataTransferObjects/Druid/data/input/InputSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// https://github.com/apache/druid/blob/master/processing/src/main/java/org/apache/druid/data/input/InputSource.java#L61
2-
public indirect enum InputSource: Codable, Hashable, Equatable {
2+
public indirect enum InputSource: Codable, Hashable, Equatable, Sendable {
33
case druid(DruidInputSource)
44

55
enum CodingKeys: String, CodingKey {

Sources/DataTransferObjects/Druid/data/input/impl/DimensionsSpec.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// https://druid.apache.org/docs/latest/ingestion/ingestion-spec/#dimensionsspec
22
/// https://github.com/apache/druid/blob/master/processing/src/main/java/org/apache/druid/data/input/impl/DimensionsSpec.java
3-
public struct DimensionsSpec: Codable, Hashable, Equatable {
3+
public struct DimensionsSpec: Codable, Hashable, Equatable, Sendable {
44
public init(
55
dimensions: [IngestionDimensionSpecDimension]? = nil,
66
dimensionExclusions: [String]? = nil,
@@ -60,7 +60,7 @@ public struct DimensionsSpec: Codable, Hashable, Equatable {
6060
public let forceSegmentSortByTime: Bool?
6161
}
6262

63-
public struct IngestionDimensionSpecDimension: Codable, Hashable, Equatable {
63+
public struct IngestionDimensionSpecDimension: Codable, Hashable, Equatable, Sendable {
6464
public init(
6565
type: IngestionDimensionSpecDimension.DimensionType? = nil,
6666
name: String,
@@ -73,7 +73,7 @@ public struct IngestionDimensionSpecDimension: Codable, Hashable, Equatable {
7373
self.multiValueHandling = multiValueHandling
7474
}
7575

76-
public enum DimensionType: String, Codable, Hashable, Equatable {
76+
public enum DimensionType: String, Codable, Hashable, Equatable, Sendable {
7777
case auto
7878
case string
7979
case long
@@ -82,7 +82,7 @@ public struct IngestionDimensionSpecDimension: Codable, Hashable, Equatable {
8282
case json
8383
}
8484

85-
public enum MultiValueHandlingOption: String, Codable, Hashable, Equatable {
85+
public enum MultiValueHandlingOption: String, Codable, Hashable, Equatable, Sendable {
8686
case array
8787
case sorted_array
8888
case sorted_set
@@ -108,7 +108,7 @@ public struct IngestionDimensionSpecDimension: Codable, Hashable, Equatable {
108108
public let multiValueHandling: MultiValueHandlingOption?
109109
}
110110

111-
public struct IngestionDimensionSpecSpatialDimension: Codable, Hashable, Equatable {
111+
public struct IngestionDimensionSpecSpatialDimension: Codable, Hashable, Equatable, Sendable {
112112
public init(dimName: String, dims: [String]? = nil) {
113113
self.dimName = dimName
114114
self.dims = dims

0 commit comments

Comments
 (0)