Jackson deserialization for BlankDownOperation

This commit is contained in:
Antonin Delpeuch 2018-10-22 12:09:12 +01:00
parent eb49db31e2
commit 3aa4e1a544

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.Mode; import com.google.refine.browsing.Engine.Mode;
import com.google.refine.browsing.EngineConfig; import com.google.refine.browsing.EngineConfig;
import com.google.refine.browsing.RowVisitor; import com.google.refine.browsing.RowVisitor;
@ -60,8 +63,11 @@ public class BlankDownOperation extends EngineDependentMassCellOperation {
); );
} }
@JsonCreator
public BlankDownOperation( public BlankDownOperation(
EngineConfig engineConfig, @JsonProperty("engineConfig")
EngineConfig engineConfig,
@JsonProperty("columnName")
String columnName String columnName
) { ) {
super(engineConfig, columnName, true); super(engineConfig, columnName, true);