29 'CALLBACK' =>
'stageCleanup'
34 'CODE' =>
'CREATE_DICTIONARY',
35 'CALLBACK' =>
'stageCreateDictionary',
36 'SUBPERCENT_CALLBACK' =>
'getSubpercentForStageCreateDictionary',
37 'ON_BEFORE_CALLBACK' =>
'stageCreateDictionaryBefore',
38 'ON_AFTER_CALLBACK' =>
'stageCreateDictionaryAfter',
39 'TYPE' => static::CALLBACK_TYPE_QUOTA
44 'CODE' =>
'RESORT_DICTIONARY',
45 'CALLBACK' =>
'stageResortDictionary',
46 'SUBPERCENT_CALLBACK' =>
'getSubpercentForStageResortDictionary',
47 'ON_BEFORE_CALLBACK' =>
'stageResortDictionaryBefore',
48 'ON_AFTER_CALLBACK' =>
'stageResortDictionaryAfter',
49 'TYPE' => static::CALLBACK_TYPE_QUOTA
54 'CODE' =>
'CREATE_SEARCH_INDEX',
55 'CALLBACK' =>
'stageCreateSearchIndex',
56 'SUBPERCENT_CALLBACK' =>
'getSubpercentForStageCreateSearchIndex',
57 'ON_BEFORE_CALLBACK' =>
'stageCreateSearchIndexBefore',
58 'ON_AFTER_CALLBACK' =>
'stageCreateSearchIndexAfter',
59 'TYPE' => static::CALLBACK_TYPE_QUOTA
64 'CODE' =>
'CREATE_SITE2LOCATION_INDEX',
65 'CALLBACK' =>
'stageCreateSite2LocationIndex',
66 'SUBPERCENT_CALLBACK' =>
'getSubpercentForCreateSite2LocationIndex'
71 'CODE' =>
'RESTORE_DB_INDEXES',
72 'CALLBACK' =>
'stageRestoreDBIndexes',
73 'SUBPERCENT_CALLBACK' =>
'getSubpercentForRestoreDBIndexes'
103 if(!isset($this->data[
'WORD_TABLE_INSTANCE_SERIALIZED']))
112 $instance = unserialize(
113 $this->data[
'WORD_TABLE_INSTANCE_SERIALIZED'],
114 [
'allowed_classes' => [WordTable::class]]
118 $this->wordInstance = $instance;
125 $this->wordInstance->setOffset(0);
126 $this->wordInstance->setPosition(0);
129 return $this->wordInstance->initializeData();
134 $this->data[
'WORD_TABLE_INSTANCE_SERIALIZED'] = serialize($this->wordInstance);
135 $this->data[
'OFFSET'] = $this->wordInstance->getOffset();
140 if(!isset($this->data[
'LOC_NAMES_2_INDEX_COUNT']))
142 $item = Location\Name\LocationTable::getList(array(
143 'select' => array(
'CNT'),
150 $this->data[
'LOC_NAMES_2_INDEX_COUNT'] = intval($item[
'CNT']);
160 if(!isset($this->data[
'WORD_TABLE_INSTANCE_SERIALIZED']))
168 $instance = unserialize(
169 $this->data[
'WORD_TABLE_INSTANCE_SERIALIZED'],
170 [
'allowed_classes' => [WordTable::class]]
173 $this->wordInstance = $instance;
180 $this->wordInstance->setOffset(0);
181 $this->wordInstance->setPosition(0);
184 $allDone = $this->wordInstance->resort();
187 $this->wordInstance->mergeResort();
194 $this->data[
'WORD_TABLE_INSTANCE_SERIALIZED'] = serialize($this->wordInstance);
195 $this->data[
'OFFSET'] = $this->wordInstance->getOffset();
201 $this->data[
'OFFSET'] = 0;
203 if(!isset($this->data[
'DICTIONARY_SIZE']))
205 $item = WordTable::getList(array(
206 'select' => array(
'CNT')
209 $this->data[
'DICTIONARY_SIZE'] = intval($item[
'CNT']);
219 if(!isset($this->data[
'CHAIN_TABLE_INSTANCE_SERIALIZED']))
226 $instance = unserialize(
227 $this->data[
'CHAIN_TABLE_INSTANCE_SERIALIZED'],
228 [
'allowed_classes' => [ChainTable::class]]
231 $this->chainInstance = $instance;
236 return $this->chainInstance->initializeData();
241 $this->data[
'CHAIN_TABLE_INSTANCE_SERIALIZED'] = serialize($this->chainInstance);
242 $this->data[
'OFFSET'] = $this->chainInstance->getOffset();
248 $this->data[
'OFFSET'] = 0;
250 if(!isset($this->data[
'INDEX_LOCATION_COUNT']))
252 $item = Location\LocationTable::getList(array(
259 $this->data[
'INDEX_LOCATION_COUNT'] = intval($item[
'CNT']);
301 if(
$step >= $indexCount)
305 return round($pRange * (
$step / $indexCount));
static getFilterForInitData($parameters=array())
static getIndexedLanguages()
stageResortDictionaryAfter()
stageCreateSearchIndexAfter()
stageCreateSearchIndexBefore()
getSubpercentForCreateSite2LocationIndex()
stageCreateSite2LocationIndex()
getSubpercentForStageCreateDictionary()
getSubpercentForStageResortDictionary()
stageResortDictionaryBefore()
stageCreateDictionaryAfter()
getSubpercentForRestoreDBIndexes()
onAfterPerformIteration()
getSubpercentForStageCreateSearchIndex()
stageCreateDictionaryBefore()
static getFilterForInitData($parameters=array())
getSubPercentByTotalAndDone($total, $done=0)