PropertiesCollectionIndexInitializer
extends CollectionIndexInitializer
in package
Table of Contents
- DO_NOT_DROP_PREFIX = 'do_not_drop'
- $analyzers : array<string|int, mixed>
- $collection : BaseCollection
- $dataSetId : ObjectId
- __construct() : mixed
- CollectionIndexInitializer constructor.
- dropUnused() : void
- initialize() : void
- getDefaultIndexes() : array<string|int, Index>
- getIndexes() : array<string|int, Index>
- hasIndex() : bool
- isUnused() : bool
Constants
DO_NOT_DROP_PREFIX
public
mixed
DO_NOT_DROP_PREFIX
= 'do_not_drop'
Properties
$analyzers
protected
array<string|int, mixed>
$analyzers
$collection
protected
BaseCollection
$collection
$dataSetId
protected
ObjectId
$dataSetId
Methods
__construct()
CollectionIndexInitializer constructor.
public
__construct(ObjectId $dataSetId, PropertiesCollection $collection) : mixed
Parameters
- $dataSetId : ObjectId
- $collection : PropertiesCollection
Return values
mixed —dropUnused()
public
dropUnused() : void
Return values
void —initialize()
public
initialize() : void
Return values
void —getDefaultIndexes()
protected
getDefaultIndexes() : array<string|int, Index>
Return values
array<string|int, Index> —getIndexes()
private
getIndexes() : array<string|int, Index>
Return values
array<string|int, Index> —hasIndex()
private
hasIndex(Index $index) : bool
Parameters
- $index : Index
Return values
bool —isUnused()
private
isUnused(IndexInfo $index, array<string|int, mixed> $futureIndexes) : bool
Parameters
- $index : IndexInfo
- $futureIndexes : array<string|int, mixed>