Jackson deserialization for FillDownOperation

This commit is contained in:
Antonin Delpeuch 2018-10-22 12:11:25 +01:00
parent 3aa4e1a544
commit 379a12d349

View File

@ -37,6 +37,9 @@ import java.util.List;
import org.json.JSONObject; import org.json.JSONObject;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.refine.browsing.Engine; import com.google.refine.browsing.Engine;
import com.google.refine.browsing.Engine.Mode; import com.google.refine.browsing.Engine.Mode;
import com.google.refine.browsing.EngineConfig; import com.google.refine.browsing.EngineConfig;
@ -61,8 +64,11 @@ public class FillDownOperation extends EngineDependentMassCellOperation {
); );
} }
@JsonCreator
public FillDownOperation( public FillDownOperation(
EngineConfig engineConfig, @JsonProperty("engineConfig")
EngineConfig engineConfig,
@JsonProperty("columnName")
String columnName String columnName
) { ) {
super(engineConfig, columnName, true); super(engineConfig, columnName, true);