@@ -194,7 +194,7 @@ public class EntityGraphMapper {
194
194
195
195
private static final int MAX_NUMBER_OF_RETRIES = AtlasConfiguration .MAX_NUMBER_OF_RETRIES .getInt ();
196
196
private static final int CHUNK_SIZE = AtlasConfiguration .TASKS_GRAPH_COMMIT_CHUNK_SIZE .getInt ();
197
- private static final int CUSTOM_REL_THRESHOLD = AtlasConfiguration .ATLAS_CUSTOM_RELATIONSHIPS_MAX_COUNT .getInt ();
197
+ private static final int UD_REL_THRESHOLD = AtlasConfiguration .ATLAS_UD_RELATIONSHIPS_MAX_COUNT .getInt ();
198
198
199
199
private final GraphHelper graphHelper ;
200
200
private final AtlasGraph graph ;
@@ -2015,7 +2015,7 @@ public List mapArrayValue(AttributeMutationContext ctx, EntityMutationContext co
2015
2015
addInternalProductAttr (ctx , newElementsCreated , removedElements );
2016
2016
break ;
2017
2017
2018
- case CUSTOM_RELATIONSHIP_EDGE_LABEL :
2018
+ case UD_RELATIONSHIP_EDGE_LABEL :
2019
2019
validateCustomRelationship (ctx , newElementsCreated , false );
2020
2020
break ;
2021
2021
}
@@ -2109,7 +2109,7 @@ public List appendArrayValue(AttributeMutationContext ctx, EntityMutationContext
2109
2109
addInternalProductAttr (ctx , newElementsCreated , null );
2110
2110
break ;
2111
2111
2112
- case CUSTOM_RELATIONSHIP_EDGE_LABEL :
2112
+ case UD_RELATIONSHIP_EDGE_LABEL :
2113
2113
validateCustomRelationship (ctx , newElementsCreated , true );
2114
2114
break ;
2115
2115
}
@@ -2227,7 +2227,7 @@ public static void validateCustomRelationship(AttributeMutationContext ctx, List
2227
2227
2228
2228
if (isAppend ) {
2229
2229
currentSize = ctx .getReferringVertex ().getEdgesCount (isEdgeDirectionIn ? AtlasEdgeDirection .IN : AtlasEdgeDirection .OUT ,
2230
- CUSTOM_RELATIONSHIP_EDGE_LABEL );
2230
+ UD_RELATIONSHIP_EDGE_LABEL );
2231
2231
} else {
2232
2232
currentSize = newElements .size ();
2233
2233
}
@@ -2253,23 +2253,23 @@ public static void validateCustomRelationship(AttributeMutationContext ctx, List
2253
2253
LOG .info ("{}: {}" , direction , "inVertex" );
2254
2254
}
2255
2255
2256
- currentSize = targetVertex .getEdgesCount (direction , CUSTOM_RELATIONSHIP_EDGE_LABEL );
2256
+ currentSize = targetVertex .getEdgesCount (direction , UD_RELATIONSHIP_EDGE_LABEL );
2257
2257
validateCustomRelationshipCount (currentSize , targetVertex );
2258
2258
}
2259
2259
}
2260
2260
2261
2261
public static void validateCustomRelationship (AtlasVertex end1Vertex , AtlasVertex end2Vertex ) throws AtlasBaseException {
2262
- long currentSize = end1Vertex .getEdgesCount (AtlasEdgeDirection .OUT , CUSTOM_RELATIONSHIP_EDGE_LABEL ) + 1 ;
2262
+ long currentSize = end1Vertex .getEdgesCount (AtlasEdgeDirection .OUT , UD_RELATIONSHIP_EDGE_LABEL ) + 1 ;
2263
2263
validateCustomRelationshipCount (currentSize , end1Vertex );
2264
2264
2265
- currentSize = end2Vertex .getEdgesCount (AtlasEdgeDirection .IN , CUSTOM_RELATIONSHIP_EDGE_LABEL ) + 1 ;
2265
+ currentSize = end2Vertex .getEdgesCount (AtlasEdgeDirection .IN , UD_RELATIONSHIP_EDGE_LABEL ) + 1 ;
2266
2266
validateCustomRelationshipCount (currentSize , end2Vertex );
2267
2267
}
2268
2268
2269
2269
private static void validateCustomRelationshipCount (long size , AtlasVertex vertex ) throws AtlasBaseException {
2270
- if (CUSTOM_REL_THRESHOLD < size ) {
2270
+ if (UD_REL_THRESHOLD < size ) {
2271
2271
throw new AtlasBaseException (AtlasErrorCode .OPERATION_NOT_SUPPORTED ,
2272
- "Custom relationships size is more than " + CUSTOM_REL_THRESHOLD + ", current is " + size + " for " + vertex .getProperty (NAME , String .class ));
2272
+ "Custom relationships size is more than " + UD_REL_THRESHOLD + ", current is " + size + " for " + vertex .getProperty (NAME , String .class ));
2273
2273
}
2274
2274
}
2275
2275
0 commit comments