Package org.openrefine.model
Class Cell
- java.lang.Object
-
- org.openrefine.model.Cell
-
- All Implemented Interfaces:
Serializable,HasFields
public class Cell extends Object implements HasFields, Serializable
A cell in the project grid. It can store data in two fields:- value: the main value of the cell
- recon: reconciliation information associated with the cell, which is null when the cell is not reconciled
isPending()flag can be set to indicate that this cell is being computed by an operation and therefore its value will change in the near future. This is helpful to render partial results of operartions before they complete.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CellNULLbooleanpendingstatic CellPENDING_NULLReconreconSerializablevalue
-
Constructor Summary
Constructors Constructor Description Cell(Serializable value, Recon recon)Cell(Serializable value, Recon recon, boolean pending)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Celldeserialize(Object value, String type, Recon recon, String error, Boolean pending)booleanequals(Object other)booleanfieldAlsoHasFields(String name)StringgetErrorMessage()ObjectgetField(String name)RecongetRecon()StringgetTypeString()ObjectgetValue()booleanisPending()BooleanisPendingJson()static CellloadStreaming(String s)voidsave(Writer writer)StringtoString()
-
-
-
Field Detail
-
NULL
public static Cell NULL
-
PENDING_NULL
public static Cell PENDING_NULL
-
value
public final Serializable value
-
recon
public final Recon recon
-
pending
public final boolean pending
-
-
Constructor Detail
-
Cell
public Cell(Serializable value, Recon recon)
-
Cell
public Cell(Serializable value, Recon recon, boolean pending)
-
-
Method Detail
-
fieldAlsoHasFields
public boolean fieldAlsoHasFields(String name)
- Specified by:
fieldAlsoHasFieldsin interfaceHasFields
-
getErrorMessage
public String getErrorMessage()
-
getTypeString
public String getTypeString()
-
getValue
public Object getValue()
-
getRecon
public Recon getRecon()
-
isPendingJson
public Boolean isPendingJson()
-
isPending
public boolean isPending()
-
save
public void save(Writer writer)
-
deserialize
public static Cell deserialize(Object value, String type, Recon recon, String error, Boolean pending)
-
-