PHP 클래스 TextAnalysis\Indexes\Builders\CollectionInvertedIndexBuilder

저자: yooper
파일 보기 프로젝트 열기: yooper/php-text-analysis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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