mirror of https://github.com/apache/druid.git
Add legacy constructor to CsvParseSpec and DelimitedParseSpec for backward compatibility (#4388)
* Add legacy constructor to CsvParseSpec * Remove JsonProperty annotations * Add legacy constructor to DelimitedParseSpec
This commit is contained in:
parent
2cd91b64d0
commit
bbc307b30e
|
@ -68,6 +68,17 @@ public class CSVParseSpec extends ParseSpec
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public CSVParseSpec(
|
||||
TimestampSpec timestampSpec,
|
||||
DimensionsSpec dimensionsSpec,
|
||||
String listDelimiter,
|
||||
List<String> columns
|
||||
)
|
||||
{
|
||||
this(timestampSpec, dimensionsSpec, listDelimiter, columns, false, 0);
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
public String getListDelimiter()
|
||||
{
|
||||
|
|
|
@ -71,6 +71,18 @@ public class DelimitedParseSpec extends ParseSpec
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public DelimitedParseSpec(
|
||||
TimestampSpec timestampSpec,
|
||||
DimensionsSpec dimensionsSpec,
|
||||
String delimiter,
|
||||
String listDelimiter,
|
||||
List<String> columns
|
||||
)
|
||||
{
|
||||
this(timestampSpec, dimensionsSpec, delimiter, listDelimiter, columns, false, 0);
|
||||
}
|
||||
|
||||
@JsonProperty("delimiter")
|
||||
public String getDelimiter()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue