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 FieldComparatorSource Implements aFieldComparatorSourceforFieldComparators which know how to sort on a lucene field that contains values for multiple properties.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SharedFieldComparatorSource(String fieldname, ItemStateManager ism, HierarchyManager hmgr, NamespaceMappings nsMappings)Create a newSharedFieldComparatorSourcefor a given shared field.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldComparatornewComparator(String propertyName, int numHits, int sortPos, boolean reversed)Create a newFieldComparatorfor an embeddedpropertyNameand areader.
 
- 
- 
- 
Constructor Detail- 
SharedFieldComparatorSourcepublic SharedFieldComparatorSource(String fieldname, ItemStateManager ism, HierarchyManager hmgr, NamespaceMappings nsMappings) Create a newSharedFieldComparatorSourcefor 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.
 
 
- 
 - 
Method Detail- 
newComparatorpublic FieldComparator newComparator(String propertyName, int numHits, int sortPos, boolean reversed) throws IOException Create a newFieldComparatorfor an embeddedpropertyNameand areader.- Specified by:
- newComparatorin class- 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
 
 
- 
 
-