Esri Geoportal Server
1.0

com.esri.gpt.catalog.lucene
Class LowerCaseField

java.lang.Object
  extended by com.esri.gpt.catalog.lucene.DatastoreField
      extended by com.esri.gpt.catalog.lucene.LowerCaseField

public class LowerCaseField
extends DatastoreField

A non-tokenized field stored in lower case allowing case insensitive exact or range comparison.


Constructor Summary
protected LowerCaseField(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)
          Make the value to query.
 
Methods inherited from class com.esri.gpt.catalog.lucene.DatastoreField
appendForWrite, getIndexingOption, getName, getStorageOption, getTermVectorOption, makeValueToReturn, setIndexingOption, setName, setStorageOption, setTermVectorOption, sortFieldType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LowerCaseField

protected LowerCaseField(String name)
Constructs with a supplied name.

Parameters:
name - the field name
Method Detail

makeFieldable

protected Fieldable makeFieldable(Object value)
Makes the fieldable to index.

Overrides:
makeFieldable in class DatastoreField
Parameters:
value - the value
Returns:
the fieldable

makeRangeQuery

protected Query makeRangeQuery(String literalLowerValue,
                               String literalUpperValue,
                               boolean lowerBoundaryIsInclusive,
                               boolean upperBoundaryIsInclusive)
                        throws DiscoveryException
Makes a range query.

Overrides:
makeRangeQuery in class DatastoreField
Parameters:
literalLowerValue - the literal lower boundary value
literalUpperValue - the literal upper boundary value
lowerBoundaryIsInclusive - (>= versus >)
upperBoundaryIsInclusive - (<= versus <)
Throws:
DiscoveryException - if the supplied value cannot be converted

makeValueToQuery

protected String makeValueToQuery(String value,
                                  boolean isLowerBoundary,
                                  boolean isUpperBoundary)
                           throws DiscoveryException
Make the value to query.

Overrides:
makeValueToQuery in class DatastoreField
Parameters:
value - the input query value
isLowerBoundary - true if this is a lower boundary of a range query
isUpperBoundary - true if this is a upper boundary of a range query
Returns:
the lower case value to query
Throws:
DiscoveryException - if the supplied value cannot be converted

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.