|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.lucene.DatastoreField com.esri.gpt.catalog.lucene.LongField
public class LongField
A non-tokenized field that allows for Long value comparison.
Constructor Summary | |
---|---|
protected |
LongField(String name)
Constructs with a supplied name. |
Method Summary | |
---|---|
protected static Long |
longFromIndexableString(String value)
Reverts an indexable String back to a long value. |
protected static String |
longToIndexableString(Long value)
Converts a long value to a String that can be indexed for search. |
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. |
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 LongField(String name)
name
- the field nameMethod Detail |
---|
protected static Long longFromIndexableString(String value)
value
- the indexable string to revert
protected static String longToIndexableString(Long value)
value
- the value to convert
protected Fieldable makeFieldable(Object value)
makeFieldable
in class DatastoreField
value
- the value
protected Query makeRangeQuery(String literalLowerValue, String literalUpperValue, boolean lowerBoundaryIsInclusive, boolean upperBoundaryIsInclusive) throws DiscoveryException
makeRangeQuery
in class DatastoreField
literalLowerValue
- the literal lower boundary valueliteralUpperValue
- the literal upper boundary valuelowerBoundaryIsInclusive
- (>= versus >)upperBoundaryIsInclusive
- (<= versus <)
DiscoveryException
- if a supplied value cannot be convertedprotected String makeValueToQuery(String value, boolean isLowerBoundary, boolean isUpperBoundary) throws DiscoveryException
makeValueToQuery
in class DatastoreField
value
- 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 DatastoreField
storedValue
- the value stored within the Lucene document
protected int sortFieldType()
sortFieldType
in class DatastoreField
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |