|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.lucene.DatastoreField
com.esri.gpt.catalog.lucene.TimestampField
public class TimestampField
A non-tokenized field that allows for date/time comparison.
| Constructor Summary | |
|---|---|
protected |
TimestampField(String name)
Constructs with a supplied name. |
| Method Summary | |
|---|---|
protected Fieldable |
makeFieldable(Object value)
Makes the fieldable to index. |
protected Query |
makeRangeQuery(String literalLowerValue,
String literalUpperValue,
boolean lowerBoundaryIsInclusive,
boolean upperBoundaryIsInclusive)
Makes a range query. |
protected String |
makeValueToQuery(String value,
boolean isLowerBoundary,
boolean isUpperBoundary)
Makes the value to query. |
protected Object |
makeValueToReturn(String storedValue)
Makes the value to return in the query result. |
protected int |
sortFieldType()
Returns the sort field type. |
protected static Timestamp |
timestampFromIndexableString(String value)
Reverts an indexable String back to a time stamp. |
protected static String |
timestampToIndexableString(Timestamp value)
Converts a time stamp to a String that can be indexed for search. |
| Methods inherited from class com.esri.gpt.catalog.lucene.DatastoreField |
|---|
appendForWrite, getIndexingOption, getName, getStorageOption, getTermVectorOption, setIndexingOption, setName, setStorageOption, setTermVectorOption |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TimestampField(String name)
name - the field name| Method Detail |
|---|
protected Fieldable makeFieldable(Object value)
makeFieldable in class DatastoreFieldvalue - the value
protected Query makeRangeQuery(String literalLowerValue,
String literalUpperValue,
boolean lowerBoundaryIsInclusive,
boolean upperBoundaryIsInclusive)
throws DiscoveryException
makeRangeQuery in class DatastoreFieldliteralLowerValue - the literal lower boundary valueliteralUpperValue - the literal upper boundary valuelowerBoundaryIsInclusive - (>= versus >)upperBoundaryIsInclusive - (<= versus <)
DiscoveryException - if a supplied value cannot be converted
protected String makeValueToQuery(String value,
boolean isLowerBoundary,
boolean isUpperBoundary)
throws DiscoveryException
makeValueToQuery in class DatastoreFieldvalue - to input query valueisLowerBoundary - true if this is a lower boundary of a range queryisUpperBoundary - true if this is a upper boundary of a range query
DiscoveryException - if the supplied value cannot be convertedprotected Object makeValueToReturn(String storedValue)
makeValueToReturn in class DatastoreFieldstoredValue - the value stored within the Lucene document
protected static Timestamp timestampFromIndexableString(String value)
value - the indexable string to revert
protected static String timestampToIndexableString(Timestamp value)
value - the times stamp to convert
protected int sortFieldType()
sortFieldType in class DatastoreField
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||