org.apache.solr.analytics.util.valuesource

## Class ConstDateSource

- java.lang.Object
- - org.apache.lucene.queries.function.ValueSource
  - - org.apache.lucene.queries.function.valuesource.ConstNumberSource
    - - org.apache.solr.analytics.util.valuesource.ConstDoubleSource
      - - org.apache.solr.analytics.util.valuesource.ConstDateSource

-     public class ConstDateSource
      extends ConstDoubleSource

  `ConstDateSource` returns a constant date for all documents

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstDateSource(Date constant)`
    `ConstDateSource(Long constant)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `description()`
    `FunctionValues` | `getValues(Map context, LeafReaderContext readerContext)`
    `protected String` | `name()`

    - ### Methods inherited from class org.apache.solr.analytics.util.valuesource.ConstDoubleSource

      `equals, getBool, getDouble, getFloat, getInt, getLong, getNumber, hashCode`

    - ### 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

  - ### Constructor Detail

    - #### ConstDateSource

          public ConstDateSource(Date constant)

    - #### ConstDateSource

          public ConstDateSource(Long constant)

  - ### Method Detail

    - #### description

          public String description()

      Overrides:
        `description` in class `ConstDoubleSource`

    - #### name

          protected String name()

      Overrides:
        `name` in class `ConstDoubleSource`

    - #### getValues

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

      Overrides:
        `getValues` in class `ConstDoubleSource`
      Throws:
        `IOException`

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