#include <FlatFileClusterDB.hpp>
Inheritance diagram for FlatFileClusterDB:

Public Methods | |
| FlatFileClusterDB (const Index *ind, const string &name, double threshold=0.25, enum ClusterParam::simTypes simType=ClusterParam::COS, enum ClusterParam::clusterTypes clusterType=ClusterParam::CENTROID, enum ClusterParam::docModes docMode=ClusterParam::DMAX) | |
| initialize | |
| virtual | ~FlatFileClusterDB () |
| clean up | |
| virtual vector< Cluster * > | getDocCluster (int docId) const |
| Get the Cluster for the given docId. | |
| virtual int | countClusters () const |
| Count number of clusters. | |
| virtual int | maxID () const |
| Return highest cluster ID. | |
| virtual Cluster * | getCluster (int clusterId) const |
| Get the Cluster for the given clusterId. | |
| virtual vector< int > | getDocClusterId (int docId) const |
| Get the Cluster id for the given docId. | |
| virtual int | addToCluster (int docId, int clusterId, double score) |
| Add a document id to a cluster, given the cluster id. | |
| virtual int | addToCluster (int docId, Cluster *cluster, double score) |
| Add a document id to a cluster, given the cluster. | |
| virtual int | removeFromCluster (int docId, int clusterID) |
| Remove a document id from a cluster, given the cluster id. | |
| virtual int | deleteCluster (int clusterID) |
| Delete a cluster entirely. | |
| virtual int | deleteCluster (Cluster *cluster) |
| Delete a cluster entirely. | |
| virtual vector< int > | splitCluster (int cid, int num=2) |
| split cluster -- using Cluster::split. | |
| virtual int | mergeClusters (int cid1, int cid2) |
| merge two clusters. | |
Protected Methods | |
| virtual Cluster * | newCluster () |
| Factory method for creating Cluster objects. | |
|
||||||||||||||||||||||||||||
|
initialize
|
|
|
clean up
|
|
||||||||||||||||
|
Add a document id to a cluster, given the cluster.
Implements ClusterDB. |
|
||||||||||||||||
|
Add a document id to a cluster, given the cluster id.
Implements ClusterDB. |
|
|
Count number of clusters.
Implements ClusterDB. |
|
|
Delete a cluster entirely.
Implements ClusterDB. |
|
|
Delete a cluster entirely.
Implements ClusterDB. |
|
|
Get the Cluster for the given clusterId.
Implements ClusterDB. |
|
|
Get the Cluster for the given docId.
Implements ClusterDB. |
|
|
Get the Cluster id for the given docId.
Implements ClusterDB. |
|
|
Return highest cluster ID.
Implements ClusterDB. |
|
||||||||||||
|
merge two clusters.
Implements ClusterDB. |
|
|
Factory method for creating Cluster objects.
Implements ClusterDB. |
|
||||||||||||
|
Remove a document id from a cluster, given the cluster id.
Implements ClusterDB. |
|
||||||||||||
|
split cluster -- using Cluster::split.
Implements ClusterDB. |
1.2.18