Package org.apache.solr.search.facet
Class FieldUtil
- java.lang.Object
-
- org.apache.solr.search.facet.FieldUtil
-
public class FieldUtil extends Object
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
- Porting helper... may be removed if it offers no value in the future.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldUtil.DVOrdValuesstatic classFieldUtil.FCOrdValuesstatic interfaceFieldUtil.OrdFuncThe following ord visitors and wrappers are a work in progress and experimentalstatic classFieldUtil.OrdValues
-
Constructor Summary
Constructors Constructor Description FieldUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.lucene.index.NumericDocValuesgetNumericDocValues(QueryContext context, SchemaField field, QParser qparser)static FieldUtil.OrdValuesgetOrdValues(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi)static org.apache.lucene.index.SortedDocValuesgetSortedDocValues(QueryContext context, SchemaField field, QParser qparser)static org.apache.lucene.index.SortedDocValuesgetSortedDocValues(SolrIndexSearcher searcher, String field)Simpler method that creates a request context and looks up the field for youstatic org.apache.lucene.index.SortedSetDocValuesgetSortedSetDocValues(QueryContext context, SchemaField field, QParser qparser)static booleanisFieldCache(org.apache.lucene.index.SortedDocValues singleDv)static voidvisitOrds(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi, FieldUtil.OrdFunc ordFunc)
-
-
-
Method Detail
-
getSortedDocValues
public static org.apache.lucene.index.SortedDocValues getSortedDocValues(SolrIndexSearcher searcher, String field) throws IOException
Simpler method that creates a request context and looks up the field for you- Throws:
IOException
-
getSortedDocValues
public static org.apache.lucene.index.SortedDocValues getSortedDocValues(QueryContext context, SchemaField field, QParser qparser) throws IOException
- Throws:
IOException
-
getSortedSetDocValues
public static org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues(QueryContext context, SchemaField field, QParser qparser) throws IOException
- Throws:
IOException
-
getNumericDocValues
public static org.apache.lucene.index.NumericDocValues getNumericDocValues(QueryContext context, SchemaField field, QParser qparser) throws IOException
- Throws:
IOException
-
isFieldCache
public static boolean isFieldCache(org.apache.lucene.index.SortedDocValues singleDv)
-
visitOrds
public static void visitOrds(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi, FieldUtil.OrdFunc ordFunc) throws IOException- Throws:
IOException
-
getOrdValues
public static FieldUtil.OrdValues getOrdValues(org.apache.lucene.index.SortedDocValues singleDv, org.apache.lucene.search.DocIdSetIterator disi)
-
-