Commit b54f4b87 by Madhan Neethiraj Committed by Sarath Subramanian

ATLAS-2074: AtlasType.resolveReferences() method made package-private

parent 14962573
...@@ -106,7 +106,7 @@ public class AtlasArrayType extends AtlasType { ...@@ -106,7 +106,7 @@ public class AtlasArrayType extends AtlasType {
} }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
elementType = typeRegistry.getType(elementTypeName); elementType = typeRegistry.getType(elementTypeName);
} }
......
...@@ -69,7 +69,7 @@ public class AtlasClassificationType extends AtlasStructType { ...@@ -69,7 +69,7 @@ public class AtlasClassificationType extends AtlasStructType {
public AtlasClassificationDef getClassificationDef() { return classificationDef; } public AtlasClassificationDef getClassificationDef() { return classificationDef; }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferences(typeRegistry); super.resolveReferences(typeRegistry);
List<AtlasClassificationType> s = new ArrayList<>(); List<AtlasClassificationType> s = new ArrayList<>();
...@@ -100,7 +100,7 @@ public class AtlasClassificationType extends AtlasStructType { ...@@ -100,7 +100,7 @@ public class AtlasClassificationType extends AtlasStructType {
} }
@Override @Override
public void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferencesPhase2(typeRegistry); super.resolveReferencesPhase2(typeRegistry);
for (String superTypeName : allSuperTypes) { for (String superTypeName : allSuperTypes) {
...@@ -110,7 +110,7 @@ public class AtlasClassificationType extends AtlasStructType { ...@@ -110,7 +110,7 @@ public class AtlasClassificationType extends AtlasStructType {
} }
@Override @Override
public void resolveReferencesPhase3(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase3(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
allSubTypes = Collections.unmodifiableSet(allSubTypes); allSubTypes = Collections.unmodifiableSet(allSubTypes);
typeAndAllSubTypes = Collections.unmodifiableSet(typeAndAllSubTypes); typeAndAllSubTypes = Collections.unmodifiableSet(typeAndAllSubTypes);
typeAndAllSubTypesQryStr = ""; // will be computed on next access typeAndAllSubTypesQryStr = ""; // will be computed on next access
......
...@@ -75,7 +75,7 @@ public class AtlasEntityType extends AtlasStructType { ...@@ -75,7 +75,7 @@ public class AtlasEntityType extends AtlasStructType {
public AtlasEntityDef getEntityDef() { return entityDef; } public AtlasEntityDef getEntityDef() { return entityDef; }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferences(typeRegistry); super.resolveReferences(typeRegistry);
List<AtlasEntityType> s = new ArrayList<>(); List<AtlasEntityType> s = new ArrayList<>();
...@@ -111,7 +111,7 @@ public class AtlasEntityType extends AtlasStructType { ...@@ -111,7 +111,7 @@ public class AtlasEntityType extends AtlasStructType {
} }
@Override @Override
public void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferencesPhase2(typeRegistry); super.resolveReferencesPhase2(typeRegistry);
for (String superTypeName : allSuperTypes) { for (String superTypeName : allSuperTypes) {
...@@ -121,7 +121,7 @@ public class AtlasEntityType extends AtlasStructType { ...@@ -121,7 +121,7 @@ public class AtlasEntityType extends AtlasStructType {
} }
@Override @Override
public void resolveReferencesPhase3(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase3(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
for (AtlasAttributeDef attributeDef : getStructDef().getAttributeDefs()) { for (AtlasAttributeDef attributeDef : getStructDef().getAttributeDefs()) {
String attributeName = attributeDef.getName(); String attributeName = attributeDef.getName();
AtlasType attributeType = typeRegistry.getType(attributeDef.getTypeName()); AtlasType attributeType = typeRegistry.getType(attributeDef.getTypeName());
......
...@@ -62,7 +62,7 @@ public class AtlasEnumType extends AtlasType { ...@@ -62,7 +62,7 @@ public class AtlasEnumType extends AtlasType {
public AtlasEnumDef getEnumDef() { return enumDef; } public AtlasEnumDef getEnumDef() { return enumDef; }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
} }
@Override @Override
......
...@@ -86,7 +86,7 @@ public class AtlasMapType extends AtlasType { ...@@ -86,7 +86,7 @@ public class AtlasMapType extends AtlasType {
} }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
this.keyType = typeRegistry.getType(keyTypeName); this.keyType = typeRegistry.getType(keyTypeName);
this.valueType = typeRegistry.getType(valueTypeName); this.valueType = typeRegistry.getType(valueTypeName);
} }
......
...@@ -60,7 +60,7 @@ public class AtlasRelationshipType extends AtlasStructType { ...@@ -60,7 +60,7 @@ public class AtlasRelationshipType extends AtlasStructType {
public AtlasRelationshipDef getRelationshipDef() { return relationshipDef; } public AtlasRelationshipDef getRelationshipDef() { return relationshipDef; }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferences(typeRegistry); super.resolveReferences(typeRegistry);
if (relationshipDef == null) { if (relationshipDef == null) {
...@@ -91,7 +91,7 @@ public class AtlasRelationshipType extends AtlasStructType { ...@@ -91,7 +91,7 @@ public class AtlasRelationshipType extends AtlasStructType {
} }
@Override @Override
public void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferencesPhase2(typeRegistry); super.resolveReferencesPhase2(typeRegistry);
AtlasRelationshipEndDef endDef1 = relationshipDef.getEndDef1(); AtlasRelationshipEndDef endDef1 = relationshipDef.getEndDef1();
......
...@@ -81,7 +81,7 @@ public class AtlasStructType extends AtlasType { ...@@ -81,7 +81,7 @@ public class AtlasStructType extends AtlasType {
} }
@Override @Override
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
Map<String, AtlasAttribute> a = new HashMap<>(); Map<String, AtlasAttribute> a = new HashMap<>();
for (AtlasAttributeDef attributeDef : structDef.getAttributeDefs()) { for (AtlasAttributeDef attributeDef : structDef.getAttributeDefs()) {
...@@ -164,7 +164,7 @@ public class AtlasStructType extends AtlasType { ...@@ -164,7 +164,7 @@ public class AtlasStructType extends AtlasType {
} }
@Override @Override
public void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
super.resolveReferencesPhase2(typeRegistry); super.resolveReferencesPhase2(typeRegistry);
for (AtlasAttribute attribute : allAttributes.values()) { for (AtlasAttribute attribute : allAttributes.values()) {
if (attribute.getInverseRefAttributeName() == null) { if (attribute.getInverseRefAttributeName() == null) {
......
...@@ -51,13 +51,13 @@ public abstract class AtlasType { ...@@ -51,13 +51,13 @@ public abstract class AtlasType {
this.typeCategory = typeCategory; this.typeCategory = typeCategory;
} }
public void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferences(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
} }
public void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase2(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
} }
public void resolveReferencesPhase3(AtlasTypeRegistry typeRegistry) throws AtlasBaseException { void resolveReferencesPhase3(AtlasTypeRegistry typeRegistry) throws AtlasBaseException {
} }
public String getTypeName() { return typeName; } public String getTypeName() { return typeName; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment