congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AtlasSearchResult.getReferredEntities
Code IndexAdd Tabnine to your IDE (free)

How to use
getReferredEntities
method
in
org.apache.atlas.model.discovery.AtlasSearchResult

Best Java code snippets using org.apache.atlas.model.discovery.AtlasSearchResult.getReferredEntities (Showing top 3 results out of 315)

origin: apache/atlas

@Override
public void scrubSearchResults(AtlasSearchResultScrubRequest request) throws AtlasAuthorizationException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("==> SimpleAtlasAuthorizer.scrubSearchResults({})", request);
  }
  final AtlasSearchResult result = request.getSearchResult();
  if (CollectionUtils.isNotEmpty(result.getEntities())) {
    for (AtlasEntityHeader entity : result.getEntities()) {
      checkAccessAndScrub(entity, request);
    }
  }
  if (CollectionUtils.isNotEmpty(result.getFullTextResult())) {
    for (AtlasFullTextResult fullTextResult : result.getFullTextResult()) {
      if (fullTextResult != null) {
        checkAccessAndScrub(fullTextResult.getEntity(), request);
      }
    }
  }
  if (MapUtils.isNotEmpty(result.getReferredEntities())) {
    for (AtlasEntityHeader entity : result.getReferredEntities().values()) {
      checkAccessAndScrub(entity, request);
    }
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("<== SimpleAtlasAuthorizer.scrubSearchResults({}): {}", request, result);
  }
}
origin: org.apache.atlas/atlas-authorization

@Override
public void scrubSearchResults(AtlasSearchResultScrubRequest request) throws AtlasAuthorizationException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("==> SimpleAtlasAuthorizer.scrubSearchResults({})", request);
  }
  final AtlasSearchResult result = request.getSearchResult();
  if (CollectionUtils.isNotEmpty(result.getEntities())) {
    for (AtlasEntityHeader entity : result.getEntities()) {
      checkAccessAndScrub(entity, request);
    }
  }
  if (CollectionUtils.isNotEmpty(result.getFullTextResult())) {
    for (AtlasFullTextResult fullTextResult : result.getFullTextResult()) {
      if (fullTextResult != null) {
        checkAccessAndScrub(fullTextResult.getEntity(), request);
      }
    }
  }
  if (MapUtils.isNotEmpty(result.getReferredEntities())) {
    for (AtlasEntityHeader entity : result.getReferredEntities().values()) {
      checkAccessAndScrub(entity, request);
    }
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("<== SimpleAtlasAuthorizer.scrubSearchResults({}): {}", request, result);
  }
}
origin: org.apache.atlas/atlas-repository

AtlasObjectId objId = (AtlasObjectId) attrValue;
if (ret.getReferredEntities() == null) {
  ret.setReferredEntities(new HashMap<>());
if (!ret.getReferredEntities().containsKey(objId.getGuid())) {
  ret.getReferredEntities().put(objId.getGuid(), entityRetriever.toAtlasEntityHeader(objId.getGuid()));
    AtlasObjectId objId = (AtlasObjectId) obj;
    if (ret.getReferredEntities() == null) {
      ret.setReferredEntities(new HashMap<>());
    if (!ret.getReferredEntities().containsKey(objId.getGuid())) {
      ret.getReferredEntities().put(objId.getGuid(), entityRetriever.toAtlasEntityHeader(objId.getGuid()));
org.apache.atlas.model.discoveryAtlasSearchResultgetReferredEntities

Popular methods of AtlasSearchResult

  • getEntities
  • getAttributes
  • getFullTextResult
  • setAttributes
  • setEntities
  • setFullTextResult
  • setQueryType
  • setReferredEntities
  • <init>
  • addEntity
  • getQueryText
  • getType
  • getQueryText,
  • getType,
  • removeEntity,
  • setClassification,
  • setQueryText,
  • setSearchParameters,
  • setType

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
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