Tabnine Logo
AtlasEntity$AtlasEntitiesWithExtInfo.addEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
addEntity
method
in
org.apache.atlas.model.instance.AtlasEntity$AtlasEntitiesWithExtInfo

Best Java code snippets using org.apache.atlas.model.instance.AtlasEntity$AtlasEntitiesWithExtInfo.addEntity (Showing top 20 results out of 315)

origin: apache/atlas

entities.addEntity(columnLineage);
origin: apache/atlas

AtlasEntity process = getHiveProcessEntity(inputs, outputs);
ret.addEntity(process);
origin: apache/atlas

ret.addEntity(processEntity);
AtlasEntity processEntity  = getHiveProcessEntity(Collections.singletonList(hdfsPathEntity), Collections.singletonList(tblEntity));
ret.addEntity(processEntity);
ret.addReferredEntity(hdfsPathEntity);
origin: org.apache.atlas/atlas-repository

entitiesWithExtInfo.addEntity(a1);
entitiesWithExtInfo.addEntity(a2);
entitiesWithExtInfo.addEntity(b);
origin: apache/atlas

b3.setAttribute(NAME, TestUtilsV2.randomString());
AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo = new AtlasEntitiesWithExtInfo();
atlasEntitiesWithExtInfo.addEntity(a1);
atlasEntitiesWithExtInfo.addEntity(b1);
atlasEntitiesWithExtInfo.addEntity(b2);
atlasEntitiesWithExtInfo.addEntity(b3);
AtlasEntityStream entityStream = new AtlasEntityStream(atlasEntitiesWithExtInfo);
EntityMutationResponse response = entityStore.createOrUpdate(entityStream , false);
origin: org.apache.atlas/atlas-repository

b3.setAttribute(NAME, TestUtilsV2.randomString());
AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo = new AtlasEntitiesWithExtInfo();
atlasEntitiesWithExtInfo.addEntity(a1);
atlasEntitiesWithExtInfo.addEntity(b1);
atlasEntitiesWithExtInfo.addEntity(b2);
atlasEntitiesWithExtInfo.addEntity(b3);
AtlasEntityStream entityStream = new AtlasEntityStream(atlasEntitiesWithExtInfo);
EntityMutationResponse response = entityStore.createOrUpdate(entityStream , false);
origin: apache/atlas

entitiesWithExtInfo.addEntity(a1);
entitiesWithExtInfo.addEntity(a2);
entitiesWithExtInfo.addEntity(a3);
entitiesWithExtInfo.addEntity(b);
entityStore.createOrUpdate(new AtlasEntityStream(entitiesWithExtInfo) , false);
origin: org.apache.atlas/atlas-repository

atlasEntitiesWithExtInfo.addEntity(a1);
atlasEntitiesWithExtInfo.addEntity(a2);
atlasEntitiesWithExtInfo.addEntity(a3);
atlasEntitiesWithExtInfo.addEntity(b);
AtlasEntityStream entityStream = new AtlasEntityStream(atlasEntitiesWithExtInfo);
EntityMutationResponse response = entityStore.createOrUpdate(entityStream , false);
origin: apache/atlas

entitiesWithExtInfo.addEntity(a1);
entitiesWithExtInfo.addEntity(a2);
entitiesWithExtInfo.addEntity(b);
origin: apache/atlas

entitiesWithExtInfo.addEntity(a1);
entitiesWithExtInfo.addEntity(a2);
entitiesWithExtInfo.addEntity(a3);
entitiesWithExtInfo.addEntity(b1);
entitiesWithExtInfo.addEntity(b2);
entityStore.createOrUpdate(new AtlasEntityStream(entitiesWithExtInfo) , false);
origin: apache/atlas

b2.setAttribute(NAME, TestUtilsV2.randomString());
AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo = new AtlasEntitiesWithExtInfo();
atlasEntitiesWithExtInfo.addEntity(a1);
atlasEntitiesWithExtInfo.addEntity(a2);
atlasEntitiesWithExtInfo.addEntity(a3);
atlasEntitiesWithExtInfo.addEntity(b1);
atlasEntitiesWithExtInfo.addEntity(b2);
AtlasEntityStream entityStream = new AtlasEntityStream(atlasEntitiesWithExtInfo);
EntityMutationResponse response = entityStore.createOrUpdate(entityStream , false);
origin: org.apache.atlas/atlas-repository

b2.setAttribute(NAME, TestUtilsV2.randomString());
AtlasEntitiesWithExtInfo atlasEntitiesWithExtInfo = new AtlasEntitiesWithExtInfo();
atlasEntitiesWithExtInfo.addEntity(a1);
atlasEntitiesWithExtInfo.addEntity(a2);
atlasEntitiesWithExtInfo.addEntity(a3);
atlasEntitiesWithExtInfo.addEntity(b1);
atlasEntitiesWithExtInfo.addEntity(b2);
AtlasEntityStream entityStream = new AtlasEntityStream(atlasEntitiesWithExtInfo);
EntityMutationResponse response = entityStore.createOrUpdate(entityStream , false);
origin: org.apache.atlas/atlas-repository

entitiesWithExtInfo.addEntity(a1);
entitiesWithExtInfo.addEntity(a2);
entitiesWithExtInfo.addEntity(a3);
entitiesWithExtInfo.addEntity(b1);
entitiesWithExtInfo.addEntity(b2);
entityStore.createOrUpdate(new AtlasEntityStream(entitiesWithExtInfo) , false);
origin: apache/atlas

protected AtlasEntity toReferencedHBaseTable(Table table, AtlasEntitiesWithExtInfo entities) {
  AtlasEntity    ret            = null;
  HBaseTableInfo hBaseTableInfo = new HBaseTableInfo(table);
  String         hbaseNameSpace = hBaseTableInfo.getHbaseNameSpace();
  String         hbaseTableName = hBaseTableInfo.getHbaseTableName();
  if (hbaseTableName != null) {
    AtlasEntity nsEntity = new AtlasEntity(HBASE_TYPE_NAMESPACE);
    nsEntity.setAttribute(ATTRIBUTE_NAME, hbaseNameSpace);
    nsEntity.setAttribute(ATTRIBUTE_CLUSTER_NAME, getClusterName());
    nsEntity.setAttribute(ATTRIBUTE_QUALIFIED_NAME, getHBaseNameSpaceQualifiedName(getClusterName(), hbaseNameSpace));
    ret = new AtlasEntity(HBASE_TYPE_TABLE);
    ret.setAttribute(ATTRIBUTE_NAME, hbaseTableName);
    ret.setAttribute(ATTRIBUTE_URI, hbaseTableName);
    ret.setAttribute(ATTRIBUTE_NAMESPACE, getObjectId(nsEntity));
    ret.setAttribute(ATTRIBUTE_QUALIFIED_NAME, getHBaseTableQualifiedName(getClusterName(), hbaseNameSpace, hbaseTableName));
    entities.addReferredEntity(nsEntity);
    entities.addEntity(ret);
  }
  return ret;
}
origin: apache/atlas

  public AtlasEntitiesWithExtInfo getEntities() throws Exception {
    AtlasEntitiesWithExtInfo ret = new AtlasEntitiesWithExtInfo();

    for (Entity entity : getHiveContext().getOutputs()) {
      if (entity.getType() == Entity.Type.DATABASE) {
        Database db = entity.getDatabase();

        if (db != null) {
          db = getHive().getDatabase(db.getName());
        }

        if (db != null) {
          AtlasEntity dbEntity = toDbEntity(db);

          ret.addEntity(dbEntity);
        } else {
          LOG.error("CreateDatabase.getEntities(): failed to retrieve db");
        }
      }
    }

    addProcessedEntities(ret);

    return ret;
  }
}
origin: apache/incubator-atlas

public void addEntity(AtlasEntity entity) {
  if (entities == null) {
    entities = new AtlasEntitiesWithExtInfo();
  }
  entities.addEntity(entity);
}
origin: apache/atlas

public AtlasEntitiesWithExtInfo toAtlasEntitiesWithExtInfo(List<String> guids, boolean isMinExtInfo) throws AtlasBaseException {
  AtlasEntitiesWithExtInfo ret = new AtlasEntitiesWithExtInfo();
  for (String guid : guids) {
    AtlasVertex vertex = getEntityVertex(guid);
    AtlasEntity entity = mapVertexToAtlasEntity(vertex, ret, isMinExtInfo);
    ret.addEntity(entity);
  }
  ret.compact();
  return ret;
}
origin: apache/atlas

protected AtlasEntity toTableEntity(Table table, AtlasEntitiesWithExtInfo entities) throws Exception {
  AtlasEntity ret = toTableEntity(table, (AtlasEntityExtInfo) entities);
  if (ret != null) {
    entities.addEntity(ret);
  }
  return ret;
}
origin: org.apache.atlas/atlas-repository

public AtlasEntitiesWithExtInfo toAtlasEntitiesWithExtInfo(List<String> guids, boolean isMinExtInfo) throws AtlasBaseException {
  AtlasEntitiesWithExtInfo ret = new AtlasEntitiesWithExtInfo();
  for (String guid : guids) {
    AtlasVertex vertex = getEntityVertex(guid);
    AtlasEntity entity = mapVertexToAtlasEntity(vertex, ret, isMinExtInfo);
    ret.addEntity(entity);
  }
  ret.compact();
  return ret;
}
origin: org.apache.atlas/atlas-repository

public void addEntity(AtlasEntity entity) {
  if (entities == null) {
    entities = new AtlasEntitiesWithExtInfo();
  }
  entities.addEntity(entity);
}
org.apache.atlas.model.instanceAtlasEntity$AtlasEntitiesWithExtInfoaddEntity

Popular methods of AtlasEntity$AtlasEntitiesWithExtInfo

  • <init>
  • addReferredEntity
  • getEntities
  • getEntity
  • getReferredEntities
  • compact
  • hasEntity
  • removeReferredEntity
  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • String (java.lang)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • From CI to AI: The AI layer in your organization
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