congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AtlasRelationshipDef.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.atlas.model.typedef.AtlasRelationshipDef
constructor

Best Java code snippets using org.apache.atlas.model.typedef.AtlasRelationshipDef.<init> (Showing top 19 results out of 315)

origin: org.apache.atlas/atlas-intg

public static AtlasRelationshipDef createRelationshipTypeDef(String                  name,
                               String                  description,
                               String                  version,
                               RelationshipCategory    relationshipCategory,
                               PropagateTags           propagateTags,
                               AtlasRelationshipEndDef endDef1,
                               AtlasRelationshipEndDef endDef2,
                               AtlasAttributeDef...    attrDefs) {
  return new AtlasRelationshipDef(name, description, version, relationshipCategory, propagateTags,
                  endDef1, endDef2, Arrays.asList(attrDefs));
}
origin: apache/incubator-atlas

public static AtlasRelationshipDef createRelationshipTypeDef(String                  name,
                               String                  description,
                               String                  version,
                               RelationshipCategory    relationshipCategory,
                               PropagateTags           propagateTags,
                               AtlasRelationshipEndDef endDef1,
                               AtlasRelationshipEndDef endDef2,
                               AtlasAttributeDef...    attrDefs) {
  return new AtlasRelationshipDef(name, description, version, relationshipCategory, propagateTags,
                  endDef1, endDef2, Arrays.asList(attrDefs));
}
origin: org.apache.atlas/atlas-intg

  @Test
  public void testRelationshipEquals() throws AtlasBaseException {

    AtlasRelationshipEndDef ep1 = new AtlasRelationshipEndDef("typeA", "attr1", Cardinality.SINGLE);
    AtlasRelationshipEndDef ep2 = new AtlasRelationshipEndDef("typeB", "attr2", Cardinality.SINGLE);
    AtlasRelationshipDef relationshipDef1 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
        RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
    List<AtlasStructDef.AtlasAttributeDef> attributeDefs = ModelTestUtil.newAttributeDefsWithAllBuiltInTypesForRelationship(PREFIX_ATTRIBUTE_NAME);
    relationshipDef1.setAttributeDefs(attributeDefs);
    AtlasRelationshipDef relationshipDef2 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
        RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
    relationshipDef2.setAttributeDefs(attributeDefs);
    assertEquals(relationshipDef1,relationshipDef2);

    AtlasRelationshipDef relationshipDef3 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
        RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);

    assertNotEquals(relationshipDef1,relationshipDef3);
  }
}
origin: apache/atlas

  @Test
  public void testRelationshipEquals() throws AtlasBaseException {

    AtlasRelationshipEndDef ep1 = new AtlasRelationshipEndDef("typeA", "attr1", Cardinality.SINGLE);
    AtlasRelationshipEndDef ep2 = new AtlasRelationshipEndDef("typeB", "attr2", Cardinality.SINGLE);
    AtlasRelationshipDef relationshipDef1 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
        RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
    List<AtlasStructDef.AtlasAttributeDef> attributeDefs = ModelTestUtil.newAttributeDefsWithAllBuiltInTypesForRelationship(PREFIX_ATTRIBUTE_NAME);
    relationshipDef1.setAttributeDefs(attributeDefs);
    AtlasRelationshipDef relationshipDef2 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
        RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
    relationshipDef2.setAttributeDefs(attributeDefs);
    assertEquals(relationshipDef1,relationshipDef2);

    AtlasRelationshipDef relationshipDef3 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
        RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);

    assertNotEquals(relationshipDef1,relationshipDef3);
  }
}
origin: org.apache.atlas/atlas-intg

@Test
public void testRelationshipDefSerDeEmpty() throws AtlasBaseException {
  AtlasRelationshipEndDef ep1 = new AtlasRelationshipEndDef("typeA", "attr1", Cardinality.SINGLE);
  AtlasRelationshipEndDef ep2 = new AtlasRelationshipEndDef("typeB", "attr2", Cardinality.SINGLE);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
  String jsonString = AtlasType.toJson(relationshipDef);
  System.out.println(jsonString);
  assertNotNull(jsonString);
  AtlasRelationshipDef relationshipDef2 = AtlasType.fromJson(jsonString, AtlasRelationshipDef.class);
  String jsonString2 = AtlasType.toJson(relationshipDef2);
  assertEquals(jsonString, jsonString2);
  assertEquals(relationshipDef2, relationshipDef,
      "Incorrect serialization/deserialization of AtlasRelationshipDef");
}
origin: apache/atlas

@Test
public void testRelationshipDefSerDeEmpty() throws AtlasBaseException {
  AtlasRelationshipEndDef ep1 = new AtlasRelationshipEndDef("typeA", "attr1", Cardinality.SINGLE);
  AtlasRelationshipEndDef ep2 = new AtlasRelationshipEndDef("typeB", "attr2", Cardinality.SINGLE);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
  String jsonString = AtlasType.toJson(relationshipDef);
  System.out.println(jsonString);
  assertNotNull(jsonString);
  AtlasRelationshipDef relationshipDef2 = AtlasType.fromJson(jsonString, AtlasRelationshipDef.class);
  String jsonString2 = AtlasType.toJson(relationshipDef2);
  assertEquals(jsonString, jsonString2);
  assertEquals(relationshipDef2, relationshipDef,
      "Incorrect serialization/deserialization of AtlasRelationshipDef");
}
origin: org.apache.atlas/atlas-intg

@Test(dependsOnMethods = "testRelationshipAttributes")
public void testRelationshipAttributesOnExistingAttributes() throws Exception {
  AtlasRelationshipDef employeePhoneRelationDef = new AtlasRelationshipDef(EMPLOYEE_PHONE_RELATION_TYPE, getDescription(EMPLOYEE_PHONE_RELATION_TYPE), "1.0",
                                       RelationshipCategory.ASSOCIATION, PropagateTags.ONE_TO_TWO,
                                       new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "phone_no", Cardinality.SINGLE),
                                       new AtlasRelationshipEndDef(PHONE_TYPE, "owner", Cardinality.SINGLE));
  createType(employeePhoneRelationDef);
  Map<String, AtlasAttribute> employeeRelationshipAttrs = getRelationAttrsForType(EMPLOYEE_TYPE);
  Map<String, AtlasAttribute> employeeAttrs             = getAttrsForType(EMPLOYEE_TYPE);
  // validate if phone_no exists in both relationAttributes and attributes
  Assert.assertTrue(employeeRelationshipAttrs.containsKey("phone_no"));
  Assert.assertTrue(employeeAttrs.containsKey("phone_no"));
}
origin: apache/incubator-atlas

@Test(dependsOnMethods = "testRelationshipAttributes")
public void testRelationshipAttributesOnExistingAttributes() throws Exception {
  AtlasRelationshipDef employeePhoneRelationDef = new AtlasRelationshipDef(EMPLOYEE_PHONE_RELATION_TYPE, getDescription(EMPLOYEE_PHONE_RELATION_TYPE), "1.0",
                                       RelationshipCategory.ASSOCIATION, PropagateTags.ONE_TO_TWO,
                                       new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "phone_no", Cardinality.SINGLE),
                                       new AtlasRelationshipEndDef(PHONE_TYPE, "owner", Cardinality.SINGLE));
  createType(employeePhoneRelationDef);
  Map<String, AtlasAttribute> employeeRelationshipAttrs = getRelationAttrsForType(EMPLOYEE_TYPE);
  Map<String, AtlasAttribute> employeeAttrs             = getAttrsForType(EMPLOYEE_TYPE);
  // validate if phone_no exists in both relationAttributes and attributes
  Assert.assertTrue(employeeRelationshipAttrs.containsKey("phone_no"));
  Assert.assertTrue(employeeAttrs.containsKey("phone_no"));
}
origin: org.apache.atlas/atlas-intg

@Test
public void testRelationshipDefSerDeAttributes() throws AtlasBaseException {
  AtlasRelationshipEndDef ep1 = new AtlasRelationshipEndDef("typeA", "attr1", Cardinality.SINGLE);
  AtlasRelationshipEndDef ep2 = new AtlasRelationshipEndDef("typeB", "attr2", Cardinality.SINGLE);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
  relationshipDef.setAttributeDefs(
      ModelTestUtil.newAttributeDefsWithAllBuiltInTypesForRelationship(PREFIX_ATTRIBUTE_NAME));
  String jsonString = AtlasType.toJson(relationshipDef);
  assertNotNull(jsonString);
  AtlasRelationshipDef relationshipDef2 = AtlasType.fromJson(jsonString, AtlasRelationshipDef.class);
  String jsonString2 = AtlasType.toJson(relationshipDef2);
  assertEquals(jsonString, jsonString2);
  assertEquals(relationshipDef2, relationshipDef,
      "Incorrect serialization/deserialization of AtlasRelationshipDef");
}
@Test
origin: apache/atlas

@Test
public void testRelationshipDefSerDeAttributes() throws AtlasBaseException {
  AtlasRelationshipEndDef ep1 = new AtlasRelationshipEndDef("typeA", "attr1", Cardinality.SINGLE);
  AtlasRelationshipEndDef ep2 = new AtlasRelationshipEndDef("typeB", "attr2", Cardinality.SINGLE);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep1, ep2);
  relationshipDef.setAttributeDefs(
      ModelTestUtil.newAttributeDefsWithAllBuiltInTypesForRelationship(PREFIX_ATTRIBUTE_NAME));
  String jsonString = AtlasType.toJson(relationshipDef);
  assertNotNull(jsonString);
  AtlasRelationshipDef relationshipDef2 = AtlasType.fromJson(jsonString, AtlasRelationshipDef.class);
  String jsonString2 = AtlasType.toJson(relationshipDef2);
  assertEquals(jsonString, jsonString2);
  assertEquals(relationshipDef2, relationshipDef,
      "Incorrect serialization/deserialization of AtlasRelationshipDef");
}
@Test
origin: org.apache.atlas/atlas-intg

private void createRelationshipTypes() throws AtlasBaseException {
  AtlasRelationshipDef deptEmployeeRelationDef = new AtlasRelationshipDef(DEPT_EMPLOYEE_RELATION_TYPE, getDescription(DEPT_EMPLOYEE_RELATION_TYPE), "1.0",
                                      RelationshipCategory.ASSOCIATION, PropagateTags.ONE_TO_TWO,
                                      new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "department", Cardinality.SINGLE),
                                      new AtlasRelationshipEndDef(DEPARTMENT_TYPE, "employees", Cardinality.SET));
  AtlasRelationshipDef employeeAddrRelationDef = new AtlasRelationshipDef(EMPLOYEE_ADDRESS_RELATION_TYPE, getDescription(EMPLOYEE_ADDRESS_RELATION_TYPE), "1.0",
                                      RelationshipCategory.ASSOCIATION, PropagateTags.ONE_TO_TWO,
                                      new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "address", Cardinality.SINGLE),
                                      new AtlasRelationshipEndDef(ADDRESS_TYPE, "employees", Cardinality.SET));
  createTypes(new ArrayList<>(Arrays.asList(deptEmployeeRelationDef, employeeAddrRelationDef)));
}
origin: apache/incubator-atlas

private void createRelationshipTypes() throws AtlasBaseException {
  AtlasRelationshipDef deptEmployeeRelationDef = new AtlasRelationshipDef(DEPT_EMPLOYEE_RELATION_TYPE, getDescription(DEPT_EMPLOYEE_RELATION_TYPE), "1.0",
                                      RelationshipCategory.ASSOCIATION, PropagateTags.ONE_TO_TWO,
                                      new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "department", Cardinality.SINGLE),
                                      new AtlasRelationshipEndDef(DEPARTMENT_TYPE, "employees", Cardinality.SET));
  AtlasRelationshipDef employeeAddrRelationDef = new AtlasRelationshipDef(EMPLOYEE_ADDRESS_RELATION_TYPE, getDescription(EMPLOYEE_ADDRESS_RELATION_TYPE), "1.0",
                                      RelationshipCategory.ASSOCIATION, PropagateTags.ONE_TO_TWO,
                                      new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "address", Cardinality.SINGLE),
                                      new AtlasRelationshipEndDef(ADDRESS_TYPE, "employees", Cardinality.SET));
  createTypes(new ArrayList<>(Arrays.asList(deptEmployeeRelationDef, employeeAddrRelationDef)));
}
origin: apache/incubator-atlas

AtlasRelationshipEndDef ep_LIST = new AtlasRelationshipEndDef("typeE", "attr5", AtlasStructDef.AtlasAttributeDef.Cardinality.LIST,true);
AtlasRelationshipEndDef ep_SET_container = new AtlasRelationshipEndDef("typeF", "attr6", AtlasStructDef.AtlasAttributeDef.Cardinality.SET,true);
AtlasRelationshipDef relationshipDef1 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
    AtlasRelationshipDef.RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single, ep_SET);
AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef1);
AtlasRelationshipDef relationshipDef2 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
    AtlasRelationshipDef.RelationshipCategory.COMPOSITION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_SET_container, ep_single);
AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef2);
AtlasRelationshipDef relationshipDef3 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
    AtlasRelationshipDef.RelationshipCategory.AGGREGATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_SET_container, ep_single);
AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef3);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single_container_2, ep_single_container);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.COMPOSITION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single, ep_single_container);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.AGGREGATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single, ep_single_container);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.COMPOSITION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_SET_container, ep_SET);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
origin: org.apache.atlas/atlas-intg

AtlasRelationshipEndDef ep_LIST = new AtlasRelationshipEndDef("typeE", "attr5", AtlasStructDef.AtlasAttributeDef.Cardinality.LIST,true);
AtlasRelationshipEndDef ep_SET_container = new AtlasRelationshipEndDef("typeF", "attr6", AtlasStructDef.AtlasAttributeDef.Cardinality.SET,true);
AtlasRelationshipDef relationshipDef1 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
    AtlasRelationshipDef.RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single, ep_SET);
AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef1);
AtlasRelationshipDef relationshipDef2 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
    AtlasRelationshipDef.RelationshipCategory.COMPOSITION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_SET_container, ep_single);
AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef2);
AtlasRelationshipDef relationshipDef3 = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
    AtlasRelationshipDef.RelationshipCategory.AGGREGATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_SET_container, ep_single);
AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef3);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.ASSOCIATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single_container_2, ep_single_container);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.COMPOSITION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single, ep_single_container);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.AGGREGATION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_single, ep_single_container);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
      AtlasRelationshipDef.RelationshipCategory.COMPOSITION, AtlasRelationshipDef.PropagateTags.ONE_TO_TWO, ep_SET_container, ep_SET);
  AtlasRelationshipType.validateAtlasRelationshipDef(relationshipDef);
  AtlasRelationshipDef relationshipDef = new AtlasRelationshipDef("emptyRelationshipDef", "desc 1", "version1",
origin: org.apache.atlas/atlas-repository

ret = new AtlasRelationshipDef(name, description, version, relationshipCategory,  propagateTags, endDef1, endDef2);
origin: apache/atlas

ret = new AtlasRelationshipDef(name, description, version, relationshipCategory,  propagateTags, endDef1, endDef2);
origin: org.apache.atlas/atlas-intg

public static AtlasTypesDef getInverseReferenceTestTypes() throws AtlasBaseException {
  AtlasEntityDef aType = createClassTypeDef(TYPE_A, superType(null), createUniqueRequiredAttrDef("name", "string"));
  AtlasEntityDef bType = createClassTypeDef(TYPE_B, superType(null), createUniqueRequiredAttrDef("name", "string"));
  AtlasRelationshipDef relationshipType1 = new AtlasRelationshipDef("TypeA_to_TypeB_on_b", description("TypeA_to_TypeB_on_b"),
                          DEFAULT_VERSION, ASSOCIATION, ONE_TO_TWO,
                          new AtlasRelationshipEndDef(TYPE_A, "b", SINGLE),
                          new AtlasRelationshipEndDef(TYPE_B, "a", SINGLE));
  AtlasRelationshipDef relationshipType2 = new AtlasRelationshipDef("TypeA_to_TypeB_on_oneB", description("TypeA_to_TypeB_on_oneB"),
                          DEFAULT_VERSION, ASSOCIATION, ONE_TO_TWO,
                          new AtlasRelationshipEndDef(TYPE_A, "oneB", SINGLE),
                          new AtlasRelationshipEndDef(TYPE_B, "manyA", SET));
  AtlasRelationshipDef relationshipType3 = new AtlasRelationshipDef("TypeA_to_TypeB_on_manyB", description("TypeA_to_TypeB_on_manyB"),
                          DEFAULT_VERSION, ASSOCIATION, ONE_TO_TWO,
                          new AtlasRelationshipEndDef(TYPE_A, "manyB", SET),
                          new AtlasRelationshipEndDef(TYPE_B, "manyToManyA", SET));
  AtlasRelationshipDef relationshipType4 = new AtlasRelationshipDef("TypeB_to_TypeA_on_mappedFromA", description("TypeB_to_TypeA_on_mappedFromA"),
                          DEFAULT_VERSION, ASSOCIATION, ONE_TO_TWO,
                          new AtlasRelationshipEndDef(TYPE_B, "mappedFromA", SINGLE),
                          new AtlasRelationshipEndDef(TYPE_A, "mapToB", SET));
  return new AtlasTypesDef(Collections.<AtlasEnumDef>emptyList(), Collections.<AtlasStructDef>emptyList(), Collections.<AtlasClassificationDef>emptyList(),  Arrays.asList(aType, bType),
               Arrays.asList(relationshipType1, relationshipType2, relationshipType3, relationshipType4));
}
origin: org.apache.atlas/atlas-intg

AtlasRelationshipDef employeeDepartmentType = new AtlasRelationshipDef(EMPLOYEE_DEPARTMENT_TYPE, description(EMPLOYEE_DEPARTMENT_TYPE),
                        DEFAULT_VERSION, AGGREGATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "department", SINGLE),
AtlasRelationshipDef employeeManagerType    = new AtlasRelationshipDef(EMPLOYEE_MANAGER_TYPE, description(EMPLOYEE_MANAGER_TYPE),
                        DEFAULT_VERSION, AGGREGATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "manager", SINGLE),
AtlasRelationshipDef employeeMentorsType    = new AtlasRelationshipDef(EMPLOYEE_MENTORS_TYPE, description(EMPLOYEE_MENTORS_TYPE),
                        DEFAULT_VERSION, AGGREGATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "mentors", SET),
AtlasRelationshipDef employeeFriendsType    = new AtlasRelationshipDef(EMPLOYEE_FRIENDS_TYPE, description(EMPLOYEE_FRIENDS_TYPE),
                        DEFAULT_VERSION, ASSOCIATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "friends", SET),
AtlasRelationshipDef personSiblingType    = new AtlasRelationshipDef(PERSON_SIBLING_TYPE, description(PERSON_SIBLING_TYPE),
                        DEFAULT_VERSION, ASSOCIATION, BOTH,
                        new AtlasRelationshipEndDef(PERSON_TYPE, "sibling", SINGLE),
origin: apache/incubator-atlas

AtlasRelationshipDef employeeDepartmentType = new AtlasRelationshipDef(EMPLOYEE_DEPARTMENT_TYPE, description(EMPLOYEE_DEPARTMENT_TYPE),
                        DEFAULT_VERSION, AGGREGATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "department", SINGLE),
                        new AtlasRelationshipEndDef(DEPARTMENT_TYPE, "employees", SET, true));
AtlasRelationshipDef employeeManagerType    = new AtlasRelationshipDef(EMPLOYEE_MANAGER_TYPE, description(EMPLOYEE_MANAGER_TYPE),
                        DEFAULT_VERSION, AGGREGATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "manager", SINGLE),
AtlasRelationshipDef employeeMentorType     = new AtlasRelationshipDef(EMPLOYEE_MENTOR_TYPE, description(EMPLOYEE_MENTOR_TYPE),
                        DEFAULT_VERSION, ASSOCIATION, ONE_TO_TWO,
                        new AtlasRelationshipEndDef(EMPLOYEE_TYPE, "mentor", SINGLE),
org.apache.atlas.model.typedefAtlasRelationshipDef<init>

Javadoc

AtlasRelationshipDef contructor

Popular methods of AtlasRelationshipDef

  • getEndDef1
  • getEndDef2
  • getPropagateTags
  • getName
  • getRelationshipCategory
  • getRelationshipLabel
  • toString
  • getGuid
  • setAttributeDefs
  • setEndDef1
  • setEndDef2
  • setPropagateTags
  • setEndDef2,
  • setPropagateTags,
  • setRelationshipCategory

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now