Package com.lucidworks.apollo.links
Class SchemaLinkExtractor
java.lang.Object
com.lucidworks.apollo.links.SchemaLinkExtractor
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionSchemaLinkExtractor(String linkOrigin) SchemaLinkExtractor(String linkOrigin, com.lucidworks.apollo.pipeline.schema.SchemaProcessorFactory schemaProcessorFactory) -
Method Summary
Modifier and TypeMethodDescriptionList<com.lucidworks.apollo.links.Link>extract(com.lucidworks.apollo.common.objects.Entity source) Extract links from anEntityList<com.lucidworks.apollo.links.Link>Extract links fromsourcewhich is represented bysourceResourceList<com.lucidworks.apollo.links.Link>Extract links from anObject
-
Constructor Details
-
SchemaLinkExtractor
public SchemaLinkExtractor() -
SchemaLinkExtractor
-
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:LinkExtractorExtract links from anEntity- Specified by:
extractin interfaceLinkExtractor- Returns:
-
extract
Description copied from interface:LinkExtractorExtract links from anObject- Specified by:
extractin interfaceLinkExtractor- Returns:
-
extract
public List<com.lucidworks.apollo.links.Link> extract(com.lucidworks.apollo.names.FusionResource sourceResource, Object source) Description copied from interface:LinkExtractorExtract links fromsourcewhich is represented bysourceResource- Specified by:
extractin interfaceLinkExtractor- Returns:
-