5b2bb107c75d3a97fc872afaa032c512640f84c1
Files Diff
- Added: 4
- Removed: 0
- Renamed: 0
- Modified: 52
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private assertIndexDoesNotExist(state KernelStatement, context OperationContext, descriptor LabelSchemaDescriptor) : void renamed to private assertUniqueIndexDoesNotExist(state KernelStatement, context OperationContext, descriptor LabelSchemaDescriptor) : void in class org.neo4j.kernel.impl.api.DataIntegrityValidatingStatementOperations | From | To | |
Rename Method private getIndexForUniqueConstraint(constraint UniquenessConstraintDescriptor) : NewIndexDescriptor renamed to private getIndexForIndexBackedConstraint(constraint IndexBackedConstraintDescriptor) : NewIndexDescriptor in class org.neo4j.kernel.impl.api.state.TxState | From | To | |
Pull Up Method | 3 | ||
Pull Up Method public ownedIndexDescriptor() : NewIndexDescriptor from class org.neo4j.kernel.api.schema_new.constaints.UniquenessConstraintDescriptor to public ownedIndexDescriptor() : NewIndexDescriptor from class org.neo4j.kernel.api.schema_new.constaints.IndexBackedConstraintDescriptor | From | To | |
Pull Up Method public prettyPrint(tokenNameLookup TokenNameLookup) : String from class org.neo4j.kernel.api.schema_new.constaints.UniquenessConstraintDescriptor to public prettyPrint(tokenNameLookup TokenNameLookup) : String from class org.neo4j.kernel.api.schema_new.constaints.IndexBackedConstraintDescriptor | From | To | |
Pull Up Method public schema() : LabelSchemaDescriptor from class org.neo4j.kernel.api.schema_new.constaints.UniquenessConstraintDescriptor to public schema() : LabelSchemaDescriptor from class org.neo4j.kernel.api.schema_new.constaints.IndexBackedConstraintDescriptor | From | To | |
Change Parameter Type | 5 | ||
Change Parameter Type constraint : UniquenessConstraintDescriptor to constraint : IndexBackedConstraintDescriptor in method public constraintDoAdd(constraint IndexBackedConstraintDescriptor, indexId long) : void in class org.neo4j.kernel.api.txstate.TransactionState | From | To | |
Change Parameter Type constraint : UniquenessConstraintDescriptor to constraint : IndexBackedConstraintDescriptor in method public constraintDoAdd(constraint IndexBackedConstraintDescriptor, indexId long) : void in class org.neo4j.kernel.impl.api.state.TxState | From | To | |
Change Parameter Type descriptor : UniquenessConstraintDescriptor to descriptor : IndexBackedConstraintDescriptor in method public constraintRule(id long, descriptor IndexBackedConstraintDescriptor, ownedIndexRule long) : ConstraintRule in class org.neo4j.kernel.impl.store.record.ConstraintRule | From | To | |
Change Parameter Type descriptor : UniquenessConstraintDescriptor to descriptor : IndexBackedConstraintDescriptor in method public constraintRule(id long, descriptor IndexBackedConstraintDescriptor, ownedIndexRule long, name String) : ConstraintRule in class org.neo4j.kernel.impl.store.record.ConstraintRule | From | To | |
Change Parameter Type constraint : UniquenessConstraintDescriptor to constraint : IndexBackedConstraintDescriptor in method private getIndexForIndexBackedConstraint(constraint IndexBackedConstraintDescriptor) : NewIndexDescriptor in class org.neo4j.kernel.impl.api.state.TxState | From | To | |
Rename Variable | 1 | ||
Rename Variable ownedIndex : long to ownedUniqueIndex : long in method private readConstraintRule(id long, source ByteBuffer) : ConstraintRule in class org.neo4j.kernel.impl.store.record.SchemaRuleSerialization | From | To | |
Pull Up Attribute | 1 | ||
Pull Up Attribute private schema : LabelSchemaDescriptor from class org.neo4j.kernel.api.schema_new.constaints.UniquenessConstraintDescriptor to private schema : LabelSchemaDescriptor from class org.neo4j.kernel.api.schema_new.constaints.IndexBackedConstraintDescriptor | From | To | |
Change Return Type | 1 | ||
Change Return Type Map<UniquenessConstraintDescriptor,Long> to Map<IndexBackedConstraintDescriptor,Long> in method private createdConstraintIndexesByConstraint() : Map<IndexBackedConstraintDescriptor,Long> in class org.neo4j.kernel.impl.api.state.TxState | From | To | |
Extract Superclass | 1 | ||
Extract Superclass org.neo4j.kernel.api.schema_new.constaints.IndexBackedConstraintDescriptor from classes [org.neo4j.kernel.api.schema_new.constaints.UniquenessConstraintDescriptor] | From | To | |
Rename Attribute | 1 | ||
Rename Attribute ERROR_MESSAGE : String to ERROR_MESSAGE_EXISTS : String in class org.neo4j.kernel.impl.constraints.StandardConstraintSemantics | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type createdConstraintIndexesByConstraint : Map<UniquenessConstraintDescriptor,Long> to createdConstraintIndexesByConstraint : Map<IndexBackedConstraintDescriptor,Long> in class org.neo4j.kernel.impl.api.state.TxState | From | To | |
Extract Method | 3 | ||
Extract Method private visitAddedUniquenessConstraint(uniqueConstraint UniquenessConstraintDescriptor, constraintId long) : void extracted from public visitAddedConstraint(constraint ConstraintDescriptor) : void in class org.neo4j.kernel.impl.storageengine.impl.recordstorage.TransactionToRecordStateVisitor | From | To | |
Extract Method private indexBackedConstraintCreate(state KernelStatement, constraint IndexBackedConstraintDescriptor) : IndexBackedConstraintDescriptor extracted from public uniquePropertyConstraintCreate(state KernelStatement, descriptor LabelSchemaDescriptor) : UniquenessConstraintDescriptor in class org.neo4j.kernel.impl.api.StateHandlingStatementOperations | From | To | |
Extract Method private createUniqueIndexAndOwningConstraint(indexDescriptor NewIndexDescriptor, constraintDescriptor IndexBackedConstraintDescriptor) : void extracted from private createUniquenessConstraintRule(schemaDescriptor LabelSchemaDescriptor) : void in class org.neo4j.unsafe.batchinsert.internal.BatchInserterImpl | From | To | |
Rename Parameter | 1 | ||
Rename Parameter schemaDescriptor : LabelSchemaDescriptor to descriptor : LabelSchemaDescriptor in method private createUniquenessConstraintRule(descriptor LabelSchemaDescriptor) : void in class org.neo4j.unsafe.batchinsert.internal.BatchInserterImpl | From | To |