Package org.springframework.data.solr.core.geo

Examples of org.springframework.data.solr.core.geo.Point


        { DefaultValueFunction.defaultValue(new SimpleField("field_1"), 1), "{!func}def(field_1,1)" },
        { DefaultValueFunction.defaultValue(new SimpleField("field_1"), new Foo()), "{!func}def(field_1,foo())" },
        { DefaultValueFunction.defaultValue(new Foo(), "value"), "{!func}def(foo(),value)" },
        { DefaultValueFunction.defaultValue(new Foo(), 1), "{!func}def(foo(),1)" },
        { DefaultValueFunction.defaultValue(new Foo(), new Bar()), "{!func}def(foo(),bar())" },
        { DistanceFunction.euclideanDistance().between(new Point(1, 2), new Point(3, 4)), "{!func}dist(2,1,2,3,4)" },
        { DistanceFunction.euclideanDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(2,1,2,3,4,5,6)" },
        { DistanceFunction.infiniteNormDistance().between(new Point(1, 2), new Point(3, 4)),
            "{!func}dist(Infinite,1,2,3,4)" },
        { DistanceFunction.infiniteNormDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(Infinite,1,2,3,4,5,6)" },
        { DistanceFunction.manhattanDistance().between(new Point(1, 2), new Point(3, 4)), "{!func}dist(1,1,2,3,4)" },
        { DistanceFunction.manhattanDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(1,1,2,3,4,5,6)" },
        { DistanceFunction.sparsenessDistance().between(new Point(1, 2), new Point(3, 4)), "{!func}dist(0,1,2,3,4)" },
        { DistanceFunction.sparsenessDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(0,1,2,3,4,5,6)" },
        { DivideFunction.divide(new Foo()).by(new Bar()), "{!func}div(foo(),bar())" },
        { DivideFunction.divide(new Foo()).by(Long.valueOf(3)), "{!func}div(foo(),3)" },
        { DivideFunction.divide(new Foo()).by("field_1"), "{!func}div(foo(),field_1)" },
        { DivideFunction.divide(new Foo()).by(new SimpleField("field_1")), "{!func}div(foo(),field_1)" },
View Full Code Here


    }

    @Test
    public void testConvertPointXYToString() {
      Assert.assertEquals("48.303056,14.290556",
          GeoConverters.Point3DToStringConverter.INSTANCE.convert(new Point(48.303056, 14.290556)));
    }
View Full Code Here

    }

    @Test
    public void testConvertPointXYToStringWithNegativeValue() {
      Assert.assertEquals("45.17614,-93.87341",
          GeoConverters.Point3DToStringConverter.INSTANCE.convert(new Point(45.17614, -93.87341)));
    }
View Full Code Here

    }

    @Test
    public void testConvertPointXYZToString() {
      Assert.assertEquals("48.303056,14.290556,12.78",
          GeoConverters.Point3DToStringConverter.INSTANCE.convert(new Point(48.303056, 14.290556, 12.78)));
    }
View Full Code Here

    }

    @Test
    public void testConvertPointXYZToStringWithNegativeValue() {
      Assert.assertEquals("45.17614,-93.87341,-12.78",
          GeoConverters.Point3DToStringConverter.INSTANCE.convert(new Point(45.17614, -93.87341, -12.78)));
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.geo.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.