org.apache.lucene.queryParser.standard.config
public class: DateResolutionAttributeImpl [javadoc |
source]
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.queryParser.standard.config.DateResolutionAttributeImpl
All Implemented Interfaces:
DateResolutionAttribute, Cloneable, Attribute, Serializable
This attribute is used by
ParametricRangeQueryNodeProcessor processor
and must be defined in the
QueryConfigHandler . This attribute tells
the processor which
Resolution to use when parsing the date.
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.lucene.queryParser.standard.config.DateResolutionAttributeImpl Detail: |
public void clear() {
throw new UnsupportedOperationException();
}
|
public void copyTo(AttributeImpl target) {
throw new UnsupportedOperationException();
}
|
public boolean equals(Object other) {
if (other instanceof DateResolutionAttributeImpl) {
DateResolutionAttributeImpl dateResAttr = (DateResolutionAttributeImpl) other;
if (dateResAttr.getDateResolution() == getDateResolution()
|| dateResAttr.getDateResolution().equals(getDateResolution())) {
return true;
}
}
return false;
}
|
public Resolution getDateResolution() {
return this.dateResolution;
}
|
public int hashCode() {
return (this.dateResolution == null) ? 0 : this.dateResolution.hashCode();
}
|
public void setDateResolution(Resolution dateResolution) {
this.dateResolution = dateResolution;
}
|
public String toString() {
return "< dateResolutionAttribute dateResolution='" + this.dateResolution
+ "'/ >";
}
|