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:
Jihoon Son 2017-06-09 11:33:02 +09:00 committed by Jonathan Wei
parent 2cd91b64d0
commit bbc307b30e
2 changed files with 23 additions and 0 deletions

View File

@ -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()
{

View File

@ -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()
{