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 Cell
NULL
boolean
pending
static Cell
PENDING_NULL
Recon
recon
Serializable
value
-
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 Cell
deserialize(Object value, String type, Recon recon, String error, Boolean pending)
boolean
equals(Object other)
boolean
fieldAlsoHasFields(String name)
String
getErrorMessage()
Object
getField(String name)
Recon
getRecon()
String
getTypeString()
Object
getValue()
boolean
isPending()
Boolean
isPendingJson()
static Cell
loadStreaming(String s)
void
save(Writer writer)
String
toString()
-
-
-
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:
fieldAlsoHasFields
in 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)
-
-