public class ConstDateSource extends ConstDoubleSource
ConstDateSource
returns a constant date for all documentsConstructor and Description |
---|
ConstDateSource(Date constant) |
ConstDateSource(Long constant) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext) |
protected String |
name() |
equals, getBool, getDouble, getFloat, getInt, getLong, getNumber, hashCode
createWeight, getSortField, newContext, toString
public static final String NAME
public ConstDateSource(Date constant)
public ConstDateSource(Long constant)
public String description()
description
in class ConstDoubleSource
protected String name()
name
in class ConstDoubleSource
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
getValues
in class ConstDoubleSource
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.