public class DateFieldSource
extends org.apache.lucene.queries.function.valuesource.LongFieldSource
LongFieldSource to have a field source that takes in
and returns Date values while working with long values internally.| Constructor and Description |
|---|
DateFieldSource(String field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
externalToLong(String extVal) |
org.apache.lucene.queries.function.FunctionValues |
getValues(Map context,
org.apache.lucene.index.LeafReaderContext readerContext) |
int |
hashCode() |
Object |
longToObject(long val) |
String |
longToString(long val) |
description, getSortField, newMutableValueLonggetFieldpublic DateFieldSource(String field)
public long externalToLong(String extVal)
externalToLong in class org.apache.lucene.queries.function.valuesource.LongFieldSourcepublic Object longToObject(long val)
longToObject in class org.apache.lucene.queries.function.valuesource.LongFieldSourcepublic String longToString(long val)
longToString in class org.apache.lucene.queries.function.valuesource.LongFieldSourcepublic org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
getValues in class org.apache.lucene.queries.function.valuesource.LongFieldSourceIOExceptionpublic boolean equals(Object o)
equals in class org.apache.lucene.queries.function.valuesource.LongFieldSourcepublic int hashCode()
hashCode in class org.apache.lucene.queries.function.valuesource.LongFieldSourceCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.