public abstract class ResourceFinder extends Object
Constructor and Description |
---|
ResourceFinder() |
Modifier and Type | Method and Description |
---|---|
List<NonLiteral> |
findResources(List<? extends Condition> conditions)
Find resources using conditions.
|
List<NonLiteral> |
findResources(List<? extends Condition> conditions,
FacetCollector... facetCollectors)
Find resources using conditions and collect facets.
|
abstract List<NonLiteral> |
findResources(List<? extends Condition> conditions,
SortSpecification sortSpecification,
FacetCollector... facetCollectors)
Find resources using conditions and collect facets and a sort order.
|
List<NonLiteral> |
findResources(UriRef property,
String pattern)
Find resource with given property whose value matches a pattern.
|
List<NonLiteral> |
findResources(UriRef property,
String pattern,
boolean escapePattern)
Find resource with given property whose value matches a pattern.
|
List<NonLiteral> |
findResources(UriRef property,
String pattern,
boolean escapePattern,
FacetCollector... facetCollectors)
Find resource with given property whose value matches a pattern and collect facets.
|
List<NonLiteral> |
findResources(UriRef property,
String pattern,
boolean escapePattern,
SortSpecification sortSpecification,
FacetCollector... facetCollectors)
Find resource with given property whose value matches a pattern
and sort order and collect facets.
|
List<NonLiteral> |
findResources(VirtualProperty property,
String pattern)
Find resource with given VirtualProperty whose value matches a pattern.
|
List<NonLiteral> |
findResources(VirtualProperty property,
String pattern,
boolean escapePattern)
Find resource with given VirtualProperty whose value matches a pattern.
|
List<NonLiteral> |
findResources(VirtualProperty property,
String pattern,
boolean escapePattern,
FacetCollector... facetCollectors)
Find resource with given VirtualProperty whose value matches a pattern and collect facets.
|
List<NonLiteral> |
findResources(VirtualProperty property,
String pattern,
boolean escapePattern,
SortSpecification sortSpecification,
FacetCollector... facetCollectors)
Find resource with given VirtualProperty whose value matches a pattern
and sort specification and collect facets.
|
abstract void |
optimizeIndex()
optimize the index
|
abstract void |
reCreateIndex()
recreates the index
|
public abstract void reCreateIndex()
public abstract void optimizeIndex()
public List<NonLiteral> findResources(List<? extends Condition> conditions) throws org.apache.lucene.queryparser.classic.ParseException
conditions
- a list of conditions to construct a query from.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(List<? extends Condition> conditions, FacetCollector... facetCollectors) throws org.apache.lucene.queryparser.classic.ParseException
conditions
- a list of conditions to construct a query from.facetCollectors
- facet collectors to apply to the query result.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public abstract List<NonLiteral> findResources(List<? extends Condition> conditions, SortSpecification sortSpecification, FacetCollector... facetCollectors) throws org.apache.lucene.queryparser.classic.ParseException
conditions
- a list of conditions to construct a query from.facetCollectors
- facet collectors to apply to the query result.sortSpecification
- specifies the sort order.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(UriRef property, String pattern) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(UriRef property, String pattern, boolean escapePattern) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.escapePattern
- whether to escape reserved characters in the patternorg.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(UriRef property, String pattern, boolean escapePattern, FacetCollector... facetCollectors) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.escapePattern
- whether to escape reserved characters in the patternfacetCollectors
- facet collectors to apply to the query result.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(UriRef property, String pattern, boolean escapePattern, SortSpecification sortSpecification, FacetCollector... facetCollectors) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.escapePattern
- whether to escape reserved characters in the patternsortSpecification
- specifies the sort order.facetCollectors
- facet collectors to apply to the query result.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(VirtualProperty property, String pattern) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(VirtualProperty property, String pattern, boolean escapePattern) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.escapePattern
- whether to escape reserved characters in the patternorg.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(VirtualProperty property, String pattern, boolean escapePattern, FacetCollector... facetCollectors) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.escapePattern
- whether to escape reserved characters in the patternfacetCollectors
- facet collectors to apply to the query result.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.public List<NonLiteral> findResources(VirtualProperty property, String pattern, boolean escapePattern, SortSpecification sortSpecification, FacetCollector... facetCollectors) throws org.apache.lucene.queryparser.classic.ParseException
property
- The property to which to apply the pattern.pattern
- The pattern from which to construct a query.escapePattern
- whether to escape reserved characters in the patternsortSpecification
- specifies the sort order.facetCollectors
- facet collectors to apply to the query result.org.apache.lucene.queryparser.classic.ParseException
- when the resulting query is illegal.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.