protected static class ANetricsQueryBuilderBuilderBase.SimpleQueryField
extends java.lang.Object
Constructor and Description |
---|
SimpleQueryField(java.lang.String name,
java.lang.Double weight)
Create a field reference for a simple query.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName() |
double |
getFieldWeight() |
public SimpleQueryField(java.lang.String name, java.lang.Double weight) throws java.lang.IllegalArgumentException
name
- the field name. This is the default output
field name for the field.weight
- the weight factor for this field. This may
be null, in which case the default 1.0 weight
is applied.java.lang.IllegalArgumentException
- if name is null or empty,
or if weight is given and not between 0.0 and 1.0.