Package org.openrefine.clustering
Class Clusterer
- java.lang.Object
-
- org.openrefine.clustering.Clusterer
-
- Direct Known Subclasses:
BinningClusterer
,kNNClusterer
public abstract class Clusterer extends Object
Abstract interface for a clusterer.Once computeClusters has been called, the Clusterer instance is expected to be serializable to Jackson, which is how clustering results are retrieved.
TODO this should be changed: the interface should specify JSON serialization and add abstract methods to retrieve clustering results instead.
-
-
Constructor Summary
Constructors Constructor Description Clusterer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
computeClusters(Engine engine)
protected void
initializeFromConfig(Grid grid, ClustererConfig c)
-
-
-
Field Detail
-
_grid
protected Grid _grid
-
_colindex
protected int _colindex
-
-
Method Detail
-
computeClusters
public abstract void computeClusters(Engine engine)
-
initializeFromConfig
protected void initializeFromConfig(Grid grid, ClustererConfig c)
-
-