PHP Класс TextAnalysis\Indexes\Builders\CollectionInvertedIndexBuilder

Автор: yooper
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$collection ICollection;
$index type The index that gets written out
$metadata array The collection of metadata for all the documents, indexed by doc id

Открытые методы

Метод Описание
__construct ( TextAnalysis\Interfaces\ICollection &$collection ) Build the index from the collection of documents
__destruct ( )
getIndex ( ) : array Get the computed index
getMetadata ( ) : the

Защищенные методы

Метод Описание
buildIndex ( ) Builds the internal index data structure using the provided collection

Описание методов

__construct() публичный Метод

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

__destruct() публичный Метод

public __destruct ( )

buildIndex() защищенный Метод

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

getIndex() публичный Метод

Get the computed index
public getIndex ( ) : array
Результат array

getMetadata() публичный Метод

public getMetadata ( ) : the
Результат the metadata indexed by document id

Описание свойств

$collection защищенное свойство

protected ICollection; $collection
Результат ICollection;

$index защищенное свойство

The index that gets written out
protected type $index
Результат type

$metadata защищенное свойство

The collection of metadata for all the documents, indexed by doc id
protected array $metadata
Результат array