org.apache.lucene.queryParser.standard.config
Class DateResolutionAttributeImpl
java.lang.Object
   org.apache.lucene.util.AttributeImpl
org.apache.lucene.util.AttributeImpl
       org.apache.lucene.queryParser.standard.config.DateResolutionAttributeImpl
org.apache.lucene.queryParser.standard.config.DateResolutionAttributeImpl
- All Implemented Interfaces: 
- Serializable, Cloneable, DateResolutionAttribute, org.apache.lucene.util.Attribute
- public class DateResolutionAttributeImpl 
- extends org.apache.lucene.util.AttributeImpl- implements DateResolutionAttribute
This attribute is used by ParametricRangeQueryNodeProcessor processor
 and must be defined in the QueryConfigHandler. This attribute tells
 the processor which DateTools.Resolution to use when parsing the date. 
- See Also:
- DateResolutionAttribute, 
Serialized Form
 
 
| Methods inherited from class org.apache.lucene.util.AttributeImpl | 
| clone | 
 
 
DateResolutionAttributeImpl
public DateResolutionAttributeImpl()
setDateResolution
public void setDateResolution(org.apache.lucene.document.DateTools.Resolution dateResolution)
- Description copied from interface: DateResolutionAttribute
- Sets the default date resolution used by RangeQueryNodes for
 fields for which no specific date resolutions has been set. Field
 specific resolutions can be set with
 
- 
- Specified by:
- setDateResolutionin interface- DateResolutionAttribute
 
- 
- Parameters:
- dateResolution- the default date resolution to set
 
getDateResolution
public org.apache.lucene.document.DateTools.Resolution getDateResolution()
- 
- Specified by:
- getDateResolutionin interface- DateResolutionAttribute
 
- 
 
clear
public void clear()
- 
- Specified by:
- clearin class- org.apache.lucene.util.AttributeImpl
 
- 
 
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- 
- Specified by:
- copyToin class- org.apache.lucene.util.AttributeImpl
 
- 
 
equals
public boolean equals(Object other)
- 
- Specified by:
- equalsin class- org.apache.lucene.util.AttributeImpl
 
- 
 
hashCode
public int hashCode()
- 
- Specified by:
- hashCodein class- org.apache.lucene.util.AttributeImpl
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- org.apache.lucene.util.AttributeImpl
 
- 
 
Copyright © 2000-2010 Apache Software Foundation.  All Rights Reserved.