Package org.apache.solr.search.function
Class MultiStringFunction
- java.lang.Object
-
- org.apache.lucene.queries.function.ValueSource
-
- org.apache.solr.search.function.MultiStringFunction
-
- Direct Known Subclasses:
ConcatStringFunction
public abstract class MultiStringFunction extends org.apache.lucene.queries.function.ValueSource
AbstractValueSource
implementation which wraps multiple ValueSources and applies an extendible string function to their values.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.queries.function.ValueSource[]
sources
-
Constructor Summary
Constructors Constructor Description MultiStringFunction(org.apache.lucene.queries.function.ValueSource[] sources)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
description()
boolean
equals(Object o)
protected abstract CharSequence
func(int doc, org.apache.lucene.queries.function.FunctionValues[] valsArr)
org.apache.lucene.queries.function.FunctionValues
getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext)
int
hashCode()
protected abstract String
name()
-
-
-
Method Detail
-
name
protected abstract String name()
-
func
protected abstract CharSequence func(int doc, org.apache.lucene.queries.function.FunctionValues[] valsArr) throws IOException
- Throws:
IOException
-
description
public String description()
- Specified by:
description
in classorg.apache.lucene.queries.function.ValueSource
-
getValues
public org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
- Specified by:
getValues
in classorg.apache.lucene.queries.function.ValueSource
- Throws:
IOException
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classorg.apache.lucene.queries.function.ValueSource
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.queries.function.ValueSource
-
-