From bbc307b30eb552def4ef14639e2f7650f4b805cc Mon Sep 17 00:00:00 2001 From: Jihoon Son Date: Fri, 9 Jun 2017 11:33:02 +0900 Subject: [PATCH] Add legacy constructor to CsvParseSpec and DelimitedParseSpec for backward compatibility (#4388) * Add legacy constructor to CsvParseSpec * Remove JsonProperty annotations * Add legacy constructor to DelimitedParseSpec --- .../java/io/druid/data/input/impl/CSVParseSpec.java | 11 +++++++++++ .../io/druid/data/input/impl/DelimitedParseSpec.java | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/api/src/main/java/io/druid/data/input/impl/CSVParseSpec.java b/api/src/main/java/io/druid/data/input/impl/CSVParseSpec.java index a4b09a2010a..36a6b670fb7 100644 --- a/api/src/main/java/io/druid/data/input/impl/CSVParseSpec.java +++ b/api/src/main/java/io/druid/data/input/impl/CSVParseSpec.java @@ -68,6 +68,17 @@ public class CSVParseSpec extends ParseSpec } } + @Deprecated + public CSVParseSpec( + TimestampSpec timestampSpec, + DimensionsSpec dimensionsSpec, + String listDelimiter, + List columns + ) + { + this(timestampSpec, dimensionsSpec, listDelimiter, columns, false, 0); + } + @JsonProperty public String getListDelimiter() { diff --git a/api/src/main/java/io/druid/data/input/impl/DelimitedParseSpec.java b/api/src/main/java/io/druid/data/input/impl/DelimitedParseSpec.java index c3383eb351c..4facbca3e01 100644 --- a/api/src/main/java/io/druid/data/input/impl/DelimitedParseSpec.java +++ b/api/src/main/java/io/druid/data/input/impl/DelimitedParseSpec.java @@ -71,6 +71,18 @@ public class DelimitedParseSpec extends ParseSpec } } + @Deprecated + public DelimitedParseSpec( + TimestampSpec timestampSpec, + DimensionsSpec dimensionsSpec, + String delimiter, + String listDelimiter, + List columns + ) + { + this(timestampSpec, dimensionsSpec, delimiter, listDelimiter, columns, false, 0); + } + @JsonProperty("delimiter") public String getDelimiter() {