org.apache.lucene.queryParser.standard.config
public class: FieldDateResolutionMapAttributeImpl [javadoc |
source]
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.queryParser.standard.config.FieldDateResolutionMapAttributeImpl
All Implemented Interfaces:
FieldDateResolutionMapAttribute, Cloneable, Attribute, Serializable
This attribute enables the user to define a default DateResolution per field.
it's used by
FieldDateResolutionFCListener#buildFieldConfig(org.apache.lucene.queryParser.core.config.FieldConfig)
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.lucene.queryParser.standard.config.FieldDateResolutionMapAttributeImpl Detail: |
public void clear() {
throw new UnsupportedOperationException();
}
|
public void copyTo(AttributeImpl target) {
throw new UnsupportedOperationException();
}
|
public boolean equals(Object other) {
if (other instanceof FieldDateResolutionMapAttributeImpl && other != null
&& ((FieldDateResolutionMapAttributeImpl) other).dateRes.equals(this.dateRes) ) {
return true;
}
return false;
}
|
public Map<CharSequence, Resolution> getFieldDateResolutionMap() {
return this.dateRes;
}
|
public int hashCode() {
final int prime = 97;
if (this.dateRes != null)
return this.dateRes.hashCode() * prime;
else
return Float.valueOf(prime).hashCode();
}
|
public void setFieldDateResolutionMap(Map<CharSequence, Resolution> dateRes) {
this.dateRes = dateRes;
}
|
public String toString() {
return "< fieldDateResolutionMapAttribute map=" + this.dateRes + "/ >";
}
|