congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AtlasEntity$AtlasEntitiesWithExtInfo.getEntities
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.atlas/atlas-repository

public AtlasEntityStream(AtlasEntitiesWithExtInfo entitiesWithExtInfo) {
  this.entitiesWithExtInfo = entitiesWithExtInfo;
  this.iterator            = this.entitiesWithExtInfo.getEntities().iterator();
  this.entityStream        = null;
}
origin: apache/atlas

public AtlasEntityStream(AtlasEntitiesWithExtInfo entitiesWithExtInfo) {
  this.entitiesWithExtInfo = entitiesWithExtInfo;
  this.iterator            = this.entitiesWithExtInfo.getEntities().iterator();
  this.entityStream        = null;
}
origin: org.apache.atlas/atlas-repository

@Override
public void reset() {
  this.iterator = entitiesWithExtInfo.getEntities().iterator();
}
origin: org.apache.atlas/atlas-repository

public EntityAuditEventV2 toV2AuditEvent(EntityAuditEvent v1Event) throws AtlasBaseException {
  EntityAuditEventV2 ret = new EntityAuditEventV2();
  ret.setEntityId(v1Event.getEntityId());
  ret.setTimestamp(v1Event.getTimestamp());
  ret.setUser(v1Event.getUser());
  ret.setDetails(v1Event.getDetails());
  ret.setEventKey(v1Event.getEventKey());
  ret.setAction(getV2AuditAction(v1Event.getAction()));
  AtlasEntitiesWithExtInfo entitiesWithExtInfo = toAtlasEntity(v1Event.getEntityDefinition());
  if (entitiesWithExtInfo != null && CollectionUtils.isNotEmpty(entitiesWithExtInfo.getEntities())) {
    // there will only one source entity
    AtlasEntity entity = entitiesWithExtInfo.getEntities().get(0);
    ret.setEntity(entity);
  }
  return ret;
}
origin: org.apache.atlas/atlas-repository

@BeforeClass
public void setupSampleData() throws AtlasBaseException {
  entityStore = new AtlasEntityStoreV2(deleteHandler, typeRegistry, mockChangeNotifier, graphMapper);;
  AtlasTypesDef sampleTypes = TestUtilsV2.defineDeptEmployeeTypes();
  AtlasTypesDef typesToCreate = AtlasTypeDefStoreInitializer.getTypesToCreate(sampleTypes, typeRegistry);
  if (!typesToCreate.isEmpty()) {
    typeDefStore.createTypesDef(typesToCreate);
  }
  AtlasEntity.AtlasEntitiesWithExtInfo  hrDept = TestUtilsV2.createDeptEg2();
  AtlasEntityStream entityStream = new AtlasEntityStream(hrDept);
  entityStore.createOrUpdate(entityStream, false);
  LOG.debug("==> setupSampleData: ", AtlasEntity.dumpObjects(hrDept.getEntities(), null).toString());
}
origin: apache/atlas

public List<AtlasEntity> getEntities() {
  return entitiesWithExtInfo != null ? entitiesWithExtInfo.getEntities() : null;
}
origin: apache/atlas

@Override
public void reset() {
  this.iterator = entitiesWithExtInfo.getEntities().iterator();
}
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: apache/atlas

@Override
public List<HookNotification> getNotificationMessages() throws Exception {
  List<HookNotification>   ret      = null;
  AtlasEntitiesWithExtInfo entities = getEntities();
  if (entities != null && CollectionUtils.isNotEmpty(entities.getEntities())) {
    ret = Collections.singletonList(new EntityCreateRequestV2(getUserName(), entities));
  }
  return ret;
}
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: apache/atlas

@Override
public List<HookNotification> getNotificationMessages() throws Exception {
  List<HookNotification>   ret      = null;
  AtlasEntitiesWithExtInfo entities = getEntities();
  if (entities != null && CollectionUtils.isNotEmpty(entities.getEntities())) {
    ret = Collections.singletonList(new EntityCreateRequestV2(getUserName(), entities));
  }
  return ret;
}
origin: apache/atlas

@Override
public List<HookNotification> getNotificationMessages() throws Exception {
  List<HookNotification>   ret      = null;
  AtlasEntitiesWithExtInfo entities = getEntities();
  if (entities != null && CollectionUtils.isNotEmpty(entities.getEntities())) {
    ret = Collections.singletonList(new EntityCreateRequestV2(getUserName(), entities));
  }
  return ret;
}
origin: apache/atlas

private void assertReplicationAttribute(String attrNameReplication) throws AtlasBaseException {
  pauseForIndexCreation();
  AtlasEntity.AtlasEntitiesWithExtInfo entities = entityStore.getByIds(ImmutableList.of(DB_GUID, TABLE_GUID));
  for (AtlasEntity e : entities.getEntities()) {
    Object ex = e.getAttribute(attrNameReplication);
    assertNotNull(ex);
    List<String> attrValue = (List) ex;
    assertEquals(attrValue.size(), 1);
  }
}
origin: apache/atlas

  @Override
  public List<HookNotification> getNotificationMessages() throws Exception {
    List<HookNotification>   ret      = null;
    AtlasEntitiesWithExtInfo entities = getEntities();

    if (entities != null && CollectionUtils.isNotEmpty(entities.getEntities())) {
      ret = Collections.singletonList(new EntityUpdateRequestV2(getUserName(), entities));
    }

    return ret;
  }
}
origin: apache/atlas

protected void verifyCreatedEntities(AtlasEntityStoreV2 entityStore, String[] entityGuids, int expectedNumberOfEntitiesCreated) {
  try {
    AtlasEntity.AtlasEntitiesWithExtInfo entities = entityStore.getByIds(Arrays.asList((String[]) entityGuids));
    assertEquals(entities.getEntities().size(), expectedNumberOfEntitiesCreated);
  } catch (AtlasBaseException e) {
    throw new SkipException(String.format("getByIds: could not load '%s'", entityGuids.toString()));
  }
}
origin: org.apache.atlas/atlas-repository

private AtlasEntity toAtlasEntity(Referenceable referenceable) throws AtlasBaseException {
  AtlasEntity              ret                 = null;
  AtlasEntitiesWithExtInfo entitiesWithExtInfo = instanceConverter.toAtlasEntity(referenceable);
  if (entitiesWithExtInfo != null && CollectionUtils.isNotEmpty(entitiesWithExtInfo.getEntities())) {
    ret = entitiesWithExtInfo.getEntities().get(0);
  }
  return ret;
}
origin: apache/atlas

protected void addProcessedEntities(AtlasEntitiesWithExtInfo entitiesWithExtInfo) {
  for (AtlasEntity entity : context.getEntities()) {
    entitiesWithExtInfo.addReferredEntity(entity);
  }
  entitiesWithExtInfo.compact();
  context.addToKnownEntities(entitiesWithExtInfo.getEntities());
  if (entitiesWithExtInfo.getReferredEntities() != null) {
    context.addToKnownEntities(entitiesWithExtInfo.getReferredEntities().values());
  }
}
origin: apache/atlas

  @Override
  public List<HookNotification> getNotificationMessages() throws Exception {
    List<HookNotification>   ret      = null;
    AtlasEntitiesWithExtInfo entities = getEntities();

    if (entities != null && CollectionUtils.isNotEmpty(entities.getEntities())) {
      ret = Collections.singletonList(new EntityUpdateRequestV2(getUserName(), entities));
    }

    return ret;
  }
}
org.apache.atlas.model.instanceAtlasEntity$AtlasEntitiesWithExtInfogetEntities

Popular methods of AtlasEntity$AtlasEntitiesWithExtInfo

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

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read 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
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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