|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.lucene.DatastoreField
public class DatastoreField
Represents a field that is held within the underlying data store.
| Constructor Summary | |
|---|---|
protected |
DatastoreField(String name,
Field.Store storageOption,
Field.Index indexingOption,
Field.TermVector termVectorOption)
Constructs with fully supplied parameters. |
| Method Summary | |
|---|---|
protected void |
appendForWrite(Document document,
Object value)
Appends the field to a document prior to writing the document to the index. |
protected Field.Index |
getIndexingOption()
Gets the indexing option. |
protected String |
getName()
Gets the field name. |
protected Field.Store |
getStorageOption()
Gets the storage option. |
protected Field.TermVector |
getTermVectorOption()
Gets the term vector option. |
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 void |
setIndexingOption(Field.Index indexingOption)
Sets the indexing option. |
protected void |
setName(String name)
Sets the field name. |
protected void |
setStorageOption(Field.Store storageOption)
Sets the storage option. |
protected void |
setTermVectorOption(Field.TermVector termVectorOption)
Sets the term vector option. |
protected int |
sortFieldType()
Returns the sort field type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DatastoreField(String name,
Field.Store storageOption,
Field.Index indexingOption,
Field.TermVector termVectorOption)
name - the field namestorageOption - the storage optionindexingOption - the indexing optiontermVectorOption - the term vector option| Method Detail |
|---|
protected Field.Index getIndexingOption()
protected void setIndexingOption(Field.Index indexingOption)
indexingOption - the indexing optionprotected String getName()
protected void setName(String name)
name - the field nameprotected Field.Store getStorageOption()
protected void setStorageOption(Field.Store storageOption)
storageOption - the storage optionprotected Field.TermVector getTermVectorOption()
protected void setTermVectorOption(Field.TermVector termVectorOption)
termVectorOption - the term vector option
protected void appendForWrite(Document document,
Object value)
document - the Lucene documentvalue - the input value to writeprotected Fieldable makeFieldable(Object value)
value - the value
protected Query makeRangeQuery(String literalLowerValue,
String literalUpperValue,
boolean lowerBoundaryIsInclusive,
boolean upperBoundaryIsInclusive)
throws DiscoveryException
literalLowerValue - the literal lower boundary valueliteralUpperValue - the literal upper boundary valuelowerBoundaryIsInclusive - (>= versus >)upperBoundaryIsInclusive - (<= versus <)
DiscoveryException - if the supplied value cannot be converted
protected String makeValueToQuery(String value,
boolean isLowerBoundary,
boolean isUpperBoundary)
throws DiscoveryException
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)
storedValue - the value stored within the Lucene document
protected int sortFieldType()
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||