Class SchemaLinkExtractor

java.lang.Object
com.lucidworks.apollo.links.SchemaLinkExtractor
All Implemented Interfaces:
LinkExtractor

public class SchemaLinkExtractor extends Object implements LinkExtractor
Extract links by using a SchemaProcessor. Objects and their schema are traversed and links are generated for properties marked with Annotations.StringProperty.reference()
  • Constructor Details

    • SchemaLinkExtractor

      public SchemaLinkExtractor()
    • SchemaLinkExtractor

      public SchemaLinkExtractor(String linkOrigin)
    • SchemaLinkExtractor

      public SchemaLinkExtractor(String linkOrigin, com.lucidworks.apollo.pipeline.schema.SchemaProcessorFactory schemaProcessorFactory)
  • Method Details

    • extract

      public List<com.lucidworks.apollo.links.Link> extract(com.lucidworks.apollo.common.objects.Entity source)
      Description copied from interface: LinkExtractor
      Extract links from an Entity
      Specified by:
      extract in interface LinkExtractor
      Returns:
    • extract

      public List<com.lucidworks.apollo.links.Link> extract(Object source, String sourceId)
      Description copied from interface: LinkExtractor
      Extract links from an Object
      Specified by:
      extract in interface LinkExtractor
      Returns:
    • extract

      public List<com.lucidworks.apollo.links.Link> extract(com.lucidworks.apollo.names.FusionResource sourceResource, Object source)
      Description copied from interface: LinkExtractor
      Extract links from source which is represented by sourceResource
      Specified by:
      extract in interface LinkExtractor
      Returns: