Fix legacy data source serialization

This commit is contained in:
Yuval Oren 2014-03-06 18:05:24 -08:00
parent 0b0648266c
commit 995002fcb3
3 changed files with 6 additions and 0 deletions

View File

@ -22,7 +22,9 @@ package io.druid.query;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonTypeName("table")
public class LegacyDataSource extends TableDataSource public class LegacyDataSource extends TableDataSource
{ {
@JsonCreator @JsonCreator

View File

@ -23,7 +23,9 @@ package io.druid.query;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonTypeName("query")
public class QueryDataSource implements DataSource public class QueryDataSource implements DataSource
{ {
@JsonProperty @JsonProperty

View File

@ -22,7 +22,9 @@ package io.druid.query;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonTypeName("table")
public class TableDataSource implements DataSource public class TableDataSource implements DataSource
{ {
@JsonProperty @JsonProperty