Tabnine Logo
AtlasEntity$AtlasEntitiesWithExtInfo.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.atlas.model.instance.AtlasEntity$AtlasEntitiesWithExtInfo
constructor

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

origin: apache/nifi

final AtlasEntity.AtlasEntitiesWithExtInfo atlasEntities = new AtlasEntity.AtlasEntitiesWithExtInfo(createdEntities);
final EntityMutationResponse mutationResponse = atlasClient.createEntities(atlasEntities);
logger.debug("Created DataSet entities mutation response={}", mutationResponse);
final AtlasEntity.AtlasEntitiesWithExtInfo atlasEntities = new AtlasEntity.AtlasEntitiesWithExtInfo(updatedEntities);
final EntityMutationResponse mutationResponse = atlasClient.updateEntities(atlasEntities);
logger.debug("Updated DataSet entities mutation response={}", mutationResponse);
origin: apache/nifi

final AtlasEntity.AtlasEntitiesWithExtInfo atlasEntities = new AtlasEntity.AtlasEntitiesWithExtInfo(createdEntities);
final EntityMutationResponse mutationResponse = atlasClient.createEntities(atlasEntities);
logger.debug("Created FlowPath entities mutation response={}", mutationResponse);
final AtlasEntity.AtlasEntitiesWithExtInfo atlasEntities = new AtlasEntity.AtlasEntitiesWithExtInfo(updatedEntities);
final EntityMutationResponse mutationResponse = atlasClient.updateEntities(atlasEntities);
logger.debug("Updated FlowPath entities mutation response={}", mutationResponse);
origin: apache/nifi

final AtlasEntity.AtlasEntitiesWithExtInfo atlasEntities = new AtlasEntity.AtlasEntitiesWithExtInfo(entities);
entities.add(flowEntity);
try {
origin: apache/atlas

public AtlasEntityStream(AtlasEntityWithExtInfo entityWithExtInfo) {
  this(new AtlasEntitiesWithExtInfo(entityWithExtInfo));
}
origin: apache/atlas

public AtlasEntityStream(AtlasEntity entity) {
  this(new AtlasEntitiesWithExtInfo(entity));
}
origin: org.apache.atlas/atlas-repository

public AtlasEntityStream(AtlasEntity entity) {
  this(new AtlasEntitiesWithExtInfo(entity));
}
origin: org.apache.atlas/hbase-bridge

private void createOrUpdateNamespaceInstance(HBaseOperationContext hbaseOperationContext) {
  AtlasEntity nameSpace = buildNameSpace(hbaseOperationContext);
  switch (hbaseOperationContext.getOperation()) {
    case CREATE_NAMESPACE:
      LOG.info("Create NameSpace {}", nameSpace.getAttribute(REFERENCEABLE_ATTRIBUTE_NAME));
      hbaseOperationContext.addMessage(new EntityCreateRequestV2(hbaseOperationContext.getUser(), new AtlasEntitiesWithExtInfo(nameSpace)));
      break;
    case ALTER_NAMESPACE:
      LOG.info("Modify NameSpace {}", nameSpace.getAttribute(REFERENCEABLE_ATTRIBUTE_NAME));
      hbaseOperationContext.addMessage(new EntityUpdateRequestV2(hbaseOperationContext.getUser(), new AtlasEntitiesWithExtInfo(nameSpace)));
      break;
  }
}
origin: org.apache.atlas/atlas-repository

public AtlasEntityStream(AtlasEntityWithExtInfo entityWithExtInfo) {
  this(new AtlasEntitiesWithExtInfo(entityWithExtInfo));
}
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

public AtlasEntityStream(AtlasEntityWithExtInfo entityWithExtInfo, EntityStream entityStream) {
  this.entitiesWithExtInfo = new AtlasEntitiesWithExtInfo(entityWithExtInfo);
  this.iterator            = this.entitiesWithExtInfo.getEntities().iterator();
  this.entityStream        = entityStream;
}
origin: apache/atlas

public AtlasEntityStream(AtlasEntity entity, EntityStream entityStream) {
  this.entitiesWithExtInfo = new AtlasEntitiesWithExtInfo(entity);
  this.iterator            = this.entitiesWithExtInfo.getEntities().iterator();
  this.entityStream        = entityStream;
}
origin: org.apache.atlas/atlas-repository

public AtlasEntityStream(AtlasEntityWithExtInfo entityWithExtInfo, EntityStream entityStream) {
  this.entitiesWithExtInfo = new AtlasEntitiesWithExtInfo(entityWithExtInfo);
  this.iterator            = this.entitiesWithExtInfo.getEntities().iterator();
  this.entityStream        = entityStream;
}
origin: org.apache.atlas/atlas-repository

public AtlasEntityStream(AtlasEntity entity, EntityStream entityStream) {
  this.entitiesWithExtInfo = new AtlasEntitiesWithExtInfo(entity);
  this.iterator            = this.entitiesWithExtInfo.getEntities().iterator();
  this.entityStream        = entityStream;
}
origin: org.apache.atlas/atlas-repository

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

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

private void createOrUpdateNamespaceInstance(HBaseOperationContext hbaseOperationContext) {
  AtlasEntity nameSpace = buildNameSpace(hbaseOperationContext);
  switch (hbaseOperationContext.getOperation()) {
    case CREATE_NAMESPACE:
      LOG.info("Create NameSpace {}", nameSpace.getAttribute(REFERENCEABLE_ATTRIBUTE_NAME));
      hbaseOperationContext.addMessage(new EntityCreateRequestV2(hbaseOperationContext.getUser(), new AtlasEntitiesWithExtInfo(nameSpace)));
      break;
    case ALTER_NAMESPACE:
      LOG.info("Modify NameSpace {}", nameSpace.getAttribute(REFERENCEABLE_ATTRIBUTE_NAME));
      hbaseOperationContext.addMessage(new EntityUpdateRequestV2(hbaseOperationContext.getUser(), new AtlasEntitiesWithExtInfo(nameSpace)));
      break;
  }
}
origin: org.apache.atlas/atlas-repository

public void addEntity(AtlasEntity entity) {
  if (entities == null) {
    entities = new AtlasEntitiesWithExtInfo();
  }
  entities.addEntity(entity);
}
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: apache/nifi

private AtlasEntity registerNiFiFlowEntity(final NiFiFlow nifiFlow) throws AtlasServiceException {
  final List<AtlasEntity> entities = new ArrayList<>();
  final AtlasEntity.AtlasEntitiesWithExtInfo atlasEntities = new AtlasEntity.AtlasEntitiesWithExtInfo(entities);
  if (!nifiFlow.isMetadataUpdated()) {
    // Nothing has been changed, return existing entity.
    return nifiFlow.getExEntity();
  }
  // Create parent flow entity using existing NiFiFlow entity if available, so that common properties are taken over.
  final AtlasEntity flowEntity = nifiFlow.getExEntity() != null ? new AtlasEntity(nifiFlow.getExEntity()) : new AtlasEntity();
  flowEntity.setTypeName(TYPE_NIFI_FLOW);
  flowEntity.setVersion(1L);
  flowEntity.setAttribute(ATTR_NAME, nifiFlow.getFlowName());
  flowEntity.setAttribute(ATTR_QUALIFIED_NAME, nifiFlow.toQualifiedName(nifiFlow.getRootProcessGroupId()));
  flowEntity.setAttribute(ATTR_URL, nifiFlow.getUrl());
  flowEntity.setAttribute(ATTR_DESCRIPTION, nifiFlow.getDescription());
  // If flowEntity is not persisted yet, then store nifi_flow entity to make nifiFlowId available for other entities.
  if (flowEntity.getGuid().startsWith("-")) {
    entities.add(flowEntity);
    final EntityMutationResponse mutationResponse = atlasClient.createEntities(atlasEntities);
    logger.debug("Registered a new nifi_flow entity, mutation response={}", mutationResponse);
    final String assignedNiFiFlowGuid = mutationResponse.getGuidAssignments().get(flowEntity.getGuid());
    flowEntity.setGuid(assignedNiFiFlowGuid);
    nifiFlow.setAtlasGuid(assignedNiFiFlowGuid);
  }
  return flowEntity;
}
org.apache.atlas.model.instanceAtlasEntity$AtlasEntitiesWithExtInfo<init>

Popular methods of AtlasEntity$AtlasEntitiesWithExtInfo

  • addReferredEntity
  • addEntity
  • getEntities
  • getEntity
  • getReferredEntities
  • compact
  • hasEntity
  • removeReferredEntity
  • toString

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for Android Studio
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