46 $this->resolver = $indexScopeResolver;
47 $this->state = $state;
59 $temporalIndexTable = $this->resolver->resolve(
$index, $dimensions);
60 if (!$this->resource->getConnection()->isTableExists($temporalIndexTable)) {
63 "Temporary table for index $index doesn't exist," 64 .
" which is inconsistent with state of scope resolver" 69 $this->state->useRegularIndex();
71 if ($this->resource->getConnection()->isTableExists(
$tableName)) {
72 $this->resource->getConnection()->dropTable(
$tableName);
75 $this->resource->getConnection()->renameTable($temporalIndexTable,
$tableName);
76 $this->state->useTemporaryIndex();
const USE_TEMPORARY_INDEX
__construct(ResourceConnection $resource, IndexScopeResolverInterface $indexScopeResolver, State $state)
switchIndex(array $dimensions)