Exemple #1
0
 /*(non-Javadoc) <see cref="Lucene.Net.Search.Function.FieldCacheSource.cachedFieldSourceEquals(Lucene.Net.Search.Function.FieldCacheSource) */
 public override bool CachedFieldSourceEquals(FieldCacheSource o)
 {
     if (o.GetType() != typeof(ShortFieldSource))
     {
         return false;
     }
     ShortFieldSource other = (ShortFieldSource) o;
     return this.parser == null?other.parser == null:this.parser.GetType() == other.parser.GetType();
 }
Exemple #2
0
        /*(non-Javadoc) @see Lucene.Net.Search.Function.FieldCacheSource#cachedFieldSourceEquals(Lucene.Net.Search.Function.FieldCacheSource) */
        public override bool CachedFieldSourceEquals(FieldCacheSource o)
        {
            if (o.GetType() != typeof(ByteFieldSource))
            {
                return(false);
            }
            ByteFieldSource other = (ByteFieldSource)o;

            return(this.parser == null?other.parser == null:this.parser.GetType() == other.parser.GetType());
        }
Exemple #3
0
        /*(non-Javadoc) <see cref="java.lang.Object.equals(java.lang.Object) */
        public override bool Equals(object o)
        {
            if (!(o is FieldCacheSource))
            {
                return(false);
            }
            FieldCacheSource other = (FieldCacheSource)o;

            return(this.field.Equals(other.field) && CachedFieldSourceEquals(other));
        }
Exemple #4
0
 /// <summary> Check if equals to another <see cref="FieldCacheSource" />, already knowing that cache and field are equal.  </summary>
 /// <seealso cref="object.Equals(object)">
 /// </seealso>
 public abstract bool CachedFieldSourceEquals(FieldCacheSource other);
			public override bool CachedFieldSourceEquals(FieldCacheSource other)
			{
				throw new System.NotSupportedException(Lucene.Net.Search.Function.JustCompileSearchFunction.UNSUPPORTED_MSG);
			}
Exemple #6
0
		/// <summary> Check if equals to another {@link FieldCacheSource}, already knowing that cache and field are equal.  </summary>
		/// <seealso cref="Object.equals(java.lang.Object)">
		/// </seealso>
		public abstract bool CachedFieldSourceEquals(FieldCacheSource other);
 public override bool CachedFieldSourceEquals(FieldCacheSource other)
 {
     throw new System.NotSupportedException(Lucene.Net.Search.Function.JustCompileSearchFunction.UNSUPPORTED_MSG);
 }