PHP Class TextAnalysis\Indexes\Builders\CollectionInvertedIndexBuilder

Author: yooper
Afficher le fichier Open project: yooper/php-text-analysis Class Usage Examples

Protected Properties

Свойство Type Description
$collection ICollection;
$index type The index that gets written out
$metadata array The collection of metadata for all the documents, indexed by doc id

Méthodes publiques

Méthode Description
__construct ( TextAnalysis\Interfaces\ICollection &$collection ) Build the index from the collection of documents
__destruct ( )
getIndex ( ) : array Get the computed index
getMetadata ( ) : the

Méthodes protégées

Méthode Description
buildIndex ( ) Builds the internal index data structure using the provided collection

Method Details

__construct() public méthode

Build the index from the collection of documents
public __construct ( TextAnalysis\Interfaces\ICollection &$collection )
$collection TextAnalysis\Interfaces\ICollection

__destruct() public méthode

public __destruct ( )

buildIndex() protected méthode

Builds the internal index data structure using the provided collection
protected buildIndex ( )

getIndex() public méthode

Get the computed index
public getIndex ( ) : array
Résultat array

getMetadata() public méthode

public getMetadata ( ) : the
Résultat the metadata indexed by document id

Property Details

$collection protected_oe property

protected ICollection; $collection
Résultat ICollection;

$index protected_oe property

The index that gets written out
protected type $index
Résultat type

$metadata protected_oe property

The collection of metadata for all the documents, indexed by doc id
protected array $metadata
Résultat array