public class ValuesSourceConfig<VS extends ValuesSource>
extends java.lang.Object
Constructor and Description |
---|
ValuesSourceConfig(ValuesSourceType valueSourceType) |
Modifier and Type | Method and Description |
---|---|
FieldContext |
fieldContext() |
ValuesSourceConfig<VS> |
fieldContext(FieldContext fieldContext) |
DocValueFormat |
format() |
ValuesSourceConfig<VS> |
format(DocValueFormat format) |
java.lang.Object |
missing() |
ValuesSourceConfig<VS> |
missing(java.lang.Object missing) |
static <VS extends ValuesSource> |
resolve(QueryShardContext context,
ValueType valueType,
java.lang.String field,
Script script,
java.lang.Object missing,
org.joda.time.DateTimeZone timeZone,
java.lang.String format)
Resolve a
ValuesSourceConfig given configuration parameters. |
SearchScript |
script() |
ValuesSourceConfig<VS> |
script(SearchScript script) |
ValueType |
scriptValueType() |
ValuesSourceConfig<VS> |
scriptValueType(ValueType scriptValueType) |
org.joda.time.DateTimeZone |
timezone() |
ValuesSourceConfig<VS> |
timezone(org.joda.time.DateTimeZone timeZone) |
VS |
toValuesSource(QueryShardContext context)
Get a value source given its configuration.
|
boolean |
unmapped() |
ValuesSourceConfig<VS> |
unmapped(boolean unmapped) |
boolean |
valid() |
ValuesSourceType |
valueSourceType() |
public ValuesSourceConfig(ValuesSourceType valueSourceType)
public static <VS extends ValuesSource> ValuesSourceConfig<VS> resolve(QueryShardContext context, ValueType valueType, java.lang.String field, Script script, java.lang.Object missing, org.joda.time.DateTimeZone timeZone, java.lang.String format)
ValuesSourceConfig
given configuration parameters.public ValuesSourceType valueSourceType()
public FieldContext fieldContext()
public SearchScript script()
public boolean unmapped()
public boolean valid()
public ValuesSourceConfig<VS> fieldContext(FieldContext fieldContext)
public ValuesSourceConfig<VS> script(SearchScript script)
public ValuesSourceConfig<VS> scriptValueType(ValueType scriptValueType)
public ValueType scriptValueType()
public ValuesSourceConfig<VS> unmapped(boolean unmapped)
public ValuesSourceConfig<VS> format(DocValueFormat format)
public ValuesSourceConfig<VS> missing(java.lang.Object missing)
public java.lang.Object missing()
public ValuesSourceConfig<VS> timezone(org.joda.time.DateTimeZone timeZone)
public org.joda.time.DateTimeZone timezone()
public DocValueFormat format()
@Nullable public VS toValuesSource(QueryShardContext context) throws java.io.IOException
java.io.IOException