Package org.geotools.data

Examples of org.geotools.data.Join.filter()


        dataStore.setExposePrimaryKeyColumns(exposePrimaryKeys);
        FilterFactory ff = dataStore.getFilterFactory();
        Query q = new Query(tname("ft1"));
        Join j = new Join(tname("ftjoin"),
            ff.equal(ff.property(aname("stringProperty")), ff.property(aname("name")), true));
        j.filter(ff.greater(ff.property(aname("join1intProperty")), ff.literal(1)));
        q.getJoins().add(j);
        q.setFilter(ff.less(ff.property(aname("intProperty")), ff.literal(3)));
       
        assertEquals(1, dataStore.getFeatureSource(tname("ft1")).getCount(q));
    }
View Full Code Here


        assertEquals(1, features.size());
       
        //test with post filter on table being joined
        q = new Query(tname("ft1"));
        Join join = new Join(tname("ftjoin"), j);
        join.filter(ff.equal(
            ff.function("__equals", ff.property(aname("name")), ff.literal("one")),
            ff.literal(true), true));
        q.getJoins().add(join);
       
        features = dataStore.getFeatureSource(tname("ft1")).getFeatures(q);
View Full Code Here

       
        //test with post filter on table being joined
        q = new Query(tname("ft1"));
        join = new Join(tname("ftjoin"), j);
        join.setProperties(Query.NO_PROPERTIES);
        join.filter(ff.equal(
            ff.function("__equals", ff.property(aname("name")), ff.literal("one")),
            ff.literal(true), true));
        q.getJoins().add(join);
       
        features = dataStore.getFeatureSource(tname("ft1")).getFeatures(q);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.