Package org.openrefine.operations
Class ChangeResult
- java.lang.Object
-
- org.openrefine.operations.ChangeResult
-
public class ChangeResult extends Object
Bundles up various pieces of information after the application of an operation. Those are:- the new grid after applying the change
- whether the rows or records of the original grid were preserved
- a representation of the dependencies of this change
- a list of facets that should be opened after this operation was run
-
-
Field Summary
Fields Modifier and Type Field Description protected List<FacetConfig>
createdFacets
protected DagSlice
dagSlice
protected Grid
grid
protected GridPreservation
gridPreservation
-
Constructor Summary
Constructors Constructor Description ChangeResult(Grid grid, GridPreservation gridPreservation, List<FacetConfig> createdFacets, DagSlice dagSlice)
ChangeResult(Grid grid, GridPreservation gridPreservation, DagSlice dagSlice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FacetConfig>
getCreatedFacets()
The facets that are suggested to be created after this change is applied.DagSlice
getDagSlice()
Grid
getGrid()
GridPreservation
getGridPreservation()
-
-
-
Field Detail
-
grid
protected final Grid grid
-
dagSlice
protected final DagSlice dagSlice
-
createdFacets
protected final List<FacetConfig> createdFacets
-
gridPreservation
protected final GridPreservation gridPreservation
-
-
Constructor Detail
-
ChangeResult
public ChangeResult(Grid grid, GridPreservation gridPreservation, DagSlice dagSlice)
-
ChangeResult
public ChangeResult(Grid grid, GridPreservation gridPreservation, List<FacetConfig> createdFacets, DagSlice dagSlice)
-
-
Method Detail
-
getGrid
public Grid getGrid()
-
getGridPreservation
public GridPreservation getGridPreservation()
-
getCreatedFacets
public List<FacetConfig> getCreatedFacets()
The facets that are suggested to be created after this change is applied.
-
getDagSlice
public DagSlice getDagSlice()
-
-