org.apache.jackrabbit.core.query.lucene
Class SharedFieldComparatorSource
java.lang.Object
org.apache.lucene.search.FieldComparatorSource
org.apache.jackrabbit.core.query.lucene.SharedFieldComparatorSource
- All Implemented Interfaces:
- Serializable
public class SharedFieldComparatorSource
- extends org.apache.lucene.search.FieldComparatorSource
Implements a FieldComparatorSource for FieldComparators which
know how to sort on a lucene field that contains values for multiple properties.
- See Also:
- Serialized Form
|
Method Summary |
org.apache.lucene.search.FieldComparator |
newComparator(String propertyName,
int numHits,
int sortPos,
boolean reversed)
Create a new FieldComparator for an embedded propertyName
and a reader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedFieldComparatorSource
public SharedFieldComparatorSource(String fieldname,
ItemStateManager ism,
HierarchyManager hmgr,
NamespaceMappings nsMappings)
- Create a new
SharedFieldComparatorSource for a given shared field.
- Parameters:
fieldname - the shared field.ism - the item state manager of this workspace.hmgr - the hierarchy manager of this workspace.nsMappings - the index internal namespace mappings.
newComparator
public org.apache.lucene.search.FieldComparator newComparator(String propertyName,
int numHits,
int sortPos,
boolean reversed)
throws IOException
- Create a new
FieldComparator for an embedded propertyName
and a reader.
- Specified by:
newComparator in class org.apache.lucene.search.FieldComparatorSource
- Parameters:
propertyName - the relative path to the property to sort on as returned
by Path.getString().
- Returns:
- a
FieldComparator
- Throws:
IOException - if an error occurs
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.