org.apache.solr.analytics.util.valuesource

## Class FilterFieldSource

- java.lang.Object
- - org.apache.lucene.queries.function.ValueSource
  - - org.apache.solr.analytics.util.valuesource.FilterFieldSource

-     public class FilterFieldSource
      extends ValueSource

  `DefaultIsMissingFieldSource` wraps a field source to return missing values if the value is equal to the default value.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `Object` | `missValue`
    `static String` | `NAME`
    `protected ValueSource` | `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilterFieldSource(ValueSource source, Object missValue)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `description()`
    `boolean` | `equals(Object o)`
    `ValueSource` | `getRootSource()`
    `FunctionValues` | `getValues(Map context, LeafReaderContext readerContext)`
    `int` | `hashCode()`
    `protected String` | `name()`

    - ### Methods inherited from class org.apache.lucene.queries.function.ValueSource

      `createWeight, getSortField, newContext, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### NAME

          public static final String NAME

      See Also:
        Constant Field Values

    - #### missValue

          public final Object missValue

    - #### source

          protected final ValueSource source

  - ### Constructor Detail

    - #### FilterFieldSource

          public FilterFieldSource(ValueSource source,
                                   Object missValue)

  - ### Method Detail

    - #### name

          protected String name()

    - #### description

          public String description()

      Specified by:
        `description` in class `ValueSource`

    - #### getValues

          public FunctionValues getValues(Map context,
                                          LeafReaderContext readerContext)
                                   throws IOException

      Specified by:
        `getValues` in class `ValueSource`
      Throws:
        `IOException`

    - #### getRootSource

          public ValueSource getRootSource()

    - #### equals

          public boolean equals(Object o)

      Specified by:
        `equals` in class `ValueSource`

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in class `ValueSource`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.