Optimizer
Method Summary
Public Methods | ||
public |
createIndex(changes: Changes): Object Index the changes so we can easily process them |
|
public |
indexToChanges(index: Object): Changes Turn an index of changes back into an array of changes |
|
public |
objectValues(object: Object): Array Helper method to get the values of an object as an array |
|
public |
optimize(changes: Changes): Changes Optimize changes |
|
public |
optimizeCreatedColumnsIndex(index: *, agressive: *): * |
|
public |
optimizeCreatedSchemasIndex(index: *, agressive: *): * |
|
public |
optimizeIndex(index: Object): Object Optimize and index of changes |
|
public |
optimizeRemovedColumnsIndex(index: *, agressive: *) |
|
public |
optimizeRemovedProjectsIndex(index: *, agressive: *): * |
|
public |
optimizeRemovedSchemasIndex(index: *, agressive: *): * |
|
public |
optimizeRenamedColumnsIndex(index: *, agressive: *): * |
|
public |
optimizeRenamedProjectsIndex(index: *, agressive: *): * |
|
public |
optimizeRenamedSchemasIndex(index: *, agressive: *): * |
|
public |
optimizeTaggedProjectsIndex(index: *, agressive: *): * |
|
public |
optimizeTypeChangedColumnsIndex(index: *, agressive: *): * |
Public Methods
public createIndex(changes: Changes): Object source
Index the changes so we can easily process them
Params:
Name | Type | Attribute | Description |
changes | Changes | An array of changes |
Return:
Object | The changes indexed by their type and schema (and column id in case of column related changes) |
public indexToChanges(index: Object): Changes source
Turn an index of changes back into an array of changes
Params:
Name | Type | Attribute | Description |
index | Object | Changes indexed by their type and schema (and column id in case of column related changes) |
Return:
Changes | An array of changes |
public objectValues(object: Object): Array source
Helper method to get the values of an object as an array
Params:
Name | Type | Attribute | Description |
object | Object | The object to get the values from |
public optimize(changes: Changes): Changes source
Optimize changes
Params:
Name | Type | Attribute | Description |
changes | Changes | An array of changes |
Return:
Changes | An array of optimized changes |
public optimizeCreatedColumnsIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeCreatedSchemasIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeIndex(index: Object): Object source
Optimize and index of changes
Params:
Name | Type | Attribute | Description |
index | Object | Changes indexed by their type and schema (and column id in case of column related changes) |
Return:
Object | Optimized changes indexed by their type and schema (and column id in case of column related changes) |
public optimizeRemovedColumnsIndex(index: *, agressive: *) source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
public optimizeRemovedProjectsIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeRemovedSchemasIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeRenamedColumnsIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeRenamedProjectsIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeRenamedSchemasIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeTaggedProjectsIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |
public optimizeTypeChangedColumnsIndex(index: *, agressive: *): * source
Params:
Name | Type | Attribute | Description |
index | * | ||
agressive | * |
Return:
* |