xapian-core  1.5.0
Public Member Functions | List of all members
Xapian::Clusterer Class Referenceabstract

Class representing an abstract class for a clusterer to be implemented. More...

+ Inheritance diagram for Xapian::Clusterer:

Public Member Functions

virtual ~Clusterer ()
 Destructor.
 
virtual ClusterSet cluster (const MSet &mset)=0
 Implement the required clustering algorithm in the subclass and and return clustered output as ClusterSet. More...
 
virtual std::string get_description () const =0
 Returns a string describing the clusterer being used.
 
Clustererrelease ()
 Start reference counting this object. More...
 
const Clustererrelease () const
 Start reference counting this object. More...
 

Detailed Description

Class representing an abstract class for a clusterer to be implemented.

Member Function Documentation

◆ cluster()

virtual ClusterSet Xapian::Clusterer::cluster ( const MSet mset)
pure virtual

Implement the required clustering algorithm in the subclass and and return clustered output as ClusterSet.

Parameters
msetThe MSet object which contains the documents to be clustered

Implemented in Xapian::LCDClusterer, and Xapian::KMeans.

◆ release() [1/2]

Clusterer* Xapian::Clusterer::release ( )
inline

Start reference counting this object.

You can hand ownership of a dynamically allocated Clusterer object to Xapian by calling release() and then passing the object to a Xapian method. Xapian will arrange to delete the object once it is no longer required.

◆ release() [2/2]

const Clusterer* Xapian::Clusterer::release ( ) const
inline

Start reference counting this object.

You can hand ownership of a dynamically allocated Clusterer object to Xapian by calling release() and then passing the object to a Xapian method. Xapian will arrange to delete the object once it is no longer required.


The documentation for this class was generated from the following file: