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, newMutableValueLong
getField
public DateFieldSource(String field)
public long externalToLong(String extVal)
externalToLong
in class org.apache.lucene.queries.function.valuesource.LongFieldSource
public Object longToObject(long val)
longToObject
in class org.apache.lucene.queries.function.valuesource.LongFieldSource
public String longToString(long val)
longToString
in class org.apache.lucene.queries.function.valuesource.LongFieldSource
public 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.LongFieldSource
IOException
public boolean equals(Object o)
equals
in class org.apache.lucene.queries.function.valuesource.LongFieldSource
public int hashCode()
hashCode
in class org.apache.lucene.queries.function.valuesource.LongFieldSource
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.