From 379a12d3498a0ef4059b13f961846b69bcc6fb56 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Mon, 22 Oct 2018 12:11:25 +0100 Subject: [PATCH] Jackson deserialization for FillDownOperation --- .../google/refine/operations/cell/FillDownOperation.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/src/com/google/refine/operations/cell/FillDownOperation.java b/main/src/com/google/refine/operations/cell/FillDownOperation.java index 1ecca6345..b1b78b4d6 100644 --- a/main/src/com/google/refine/operations/cell/FillDownOperation.java +++ b/main/src/com/google/refine/operations/cell/FillDownOperation.java @@ -37,6 +37,9 @@ import java.util.List; 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.Mode; import com.google.refine.browsing.EngineConfig; @@ -61,8 +64,11 @@ public class FillDownOperation extends EngineDependentMassCellOperation { ); } + @JsonCreator public FillDownOperation( - EngineConfig engineConfig, + @JsonProperty("engineConfig") + EngineConfig engineConfig, + @JsonProperty("columnName") String columnName ) { super(engineConfig, columnName, true);