The distance from a provided Point to a Point retrieved from a ValueSource via FunctionValues.ObjectVal(int). The distance is calculated via a IDistanceCalculator. @lucene.experimental
Inheritance: ValueSource
コード例 #1
0
 public DoubleDocValuesAnonymousClass(DistanceToShapeValueSource outerInstance, FunctionValues shapeValues)
     : base(outerInstance)
 {
     // LUCENENET specific - added guard clauses
     this.outerInstance = outerInstance ?? throw new ArgumentNullException(nameof(outerInstance));
     this.shapeValues   = shapeValues ?? throw new ArgumentNullException(nameof(shapeValues));
 }
コード例 #2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || GetType() != o.GetType())
            {
                return(false);
            }

            DistanceToShapeValueSource that = (DistanceToShapeValueSource)o;

            if (!queryPoint.Equals(that.queryPoint))
            {
                return(false);
            }
            if (that.multiplier.CompareTo(multiplier) != 0)
            {
                return(false);
            }
            if (!shapeValueSource.Equals(that.shapeValueSource))
            {
                return(false);
            }
            if (!distCalc.Equals(that.distCalc))
            {
                return(false);
            }

            return(true);
        }
コード例 #3
0
 public DoubleDocValuesAnonymousHelper(DistanceToShapeValueSource outerInstance, FunctionValues shapeValues)
     : base(outerInstance)
 {
     this.outerInstance = outerInstance;
     this.shapeValues   = shapeValues;
 }
コード例 #4
0
 public DoubleDocValuesAnonymousHelper(DistanceToShapeValueSource outerInstance, FunctionValues shapeValues)
     : base(outerInstance)
 {
     this.outerInstance = outerInstance;
     this.shapeValues = shapeValues;
 }