• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PropertyIsNull类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.opengis.filter.PropertyIsNull的典型用法代码示例。如果您正苦于以下问题:Java PropertyIsNull类的具体用法?Java PropertyIsNull怎么用?Java PropertyIsNull使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PropertyIsNull类属于org.opengis.filter包,在下文中一共展示了PropertyIsNull类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
/**
 * Write the FilterBuilder for a Not filter
 * 
 * @param filter the filter to visit
 * @param extraData extra data (unused by this method)
 * 
 */
public Object visit(Not filter, Object extraData) {
    if(filter.getFilter() instanceof PropertyIsNull) {
        Expression expr = ((PropertyIsNull) filter.getFilter()).getExpression();
        expr.accept(this, extraData);
    } else {
        filter.getFilter().accept(this, extraData);
    }

    if(filter.getFilter() instanceof PropertyIsNull) {
        queryBuilder = ImmutableMap.of("exists", ImmutableMap.of("field", field));
    } else {
        queryBuilder = ImmutableMap.of("bool", ImmutableMap.of("must_not", queryBuilder));
    }
    return extraData;
}
 
开发者ID:ngageoint,项目名称:elasticgeo,代码行数:23,代码来源:FilterToElastic.java


示例2: createFilterCapabilities

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
/**
 * Sets the capabilities of this filter.
 *
 * @return FilterCapabilities for this Filter
 */
protected FilterCapabilities createFilterCapabilities() {
    FilterCapabilities capabilities = new FilterCapabilities();

    capabilities.addAll(FilterCapabilities.LOGICAL_OPENGIS);
    capabilities.addAll(FilterCapabilities.SIMPLE_COMPARISONS_OPENGIS);
    capabilities.addType(PropertyIsNull.class);
    capabilities.addType(PropertyIsBetween.class);
    capabilities.addType(Id.class);
    capabilities.addType(IncludeFilter.class);
    capabilities.addType(ExcludeFilter.class);
    capabilities.addType(PropertyIsLike.class);

    // spatial filters
    capabilities.addType(BBOX.class);
    capabilities.addType(Contains.class);
    //capabilities.addType(Crosses.class);
    capabilities.addType(Disjoint.class);
    //capabilities.addType(Equals.class);
    capabilities.addType(Intersects.class);
    //capabilities.addType(Overlaps.class);
    //capabilities.addType(Touches.class);
    capabilities.addType(Within.class);
    capabilities.addType(DWithin.class);
    capabilities.addType(Beyond.class);

    //temporal filters
    capabilities.addType(After.class);
    capabilities.addType(Before.class);
    capabilities.addType(Begins.class);
    capabilities.addType(BegunBy.class);
    capabilities.addType(During.class);
    capabilities.addType(Ends.class);
    capabilities.addType(EndedBy.class);
    capabilities.addType(TContains.class);
    capabilities.addType(TEquals.class);

    return capabilities;
}
 
开发者ID:ngageoint,项目名称:elasticgeo,代码行数:44,代码来源:FilterToElastic.java


示例3: testPropertyIsNull

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Test
public void testPropertyIsNull() {
    PropertyIsNull filter = ff.isNull(ff.property("prop"));
    Map<String,Object> expected = ImmutableMap.of("bool", ImmutableMap.of("must_not",
            ImmutableMap.of("exists", ImmutableMap.of("field", "prop"))));

    builder.visit(filter, null);
    assertTrue(builder.createFilterCapabilities().fullySupports(filter));
    assertEquals(expected, builder.getQueryBuilder());
}
 
开发者ID:ngageoint,项目名称:elasticgeo,代码行数:11,代码来源:ElasticFilterTest.java


示例4: testGetFeaturesWithIsNullFilter

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Test
public void testGetFeaturesWithIsNullFilter() throws Exception {
    init();
    FilterFactory ff = dataStore.getFilterFactory();
    PropertyIsNull f = ff.isNull(ff.property("security_ss"));
    SimpleFeatureCollection features = featureSource.getFeatures(f);
    assertEquals(1, features.size());
}
 
开发者ID:ngageoint,项目名称:elasticgeo,代码行数:9,代码来源:ElasticFeatureFilterIT.java


示例5: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Override
public Object visit(
		final PropertyIsNull filter,
		final Object data ) {
	return new ExtractGeometryFilterVisitorResult(
			infinity(),
			null);
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:9,代码来源:ExtractGeometryFilterVisitor.java


示例6: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Override
public Object visit(
		final PropertyIsNull filter,
		final Object data ) {

	return new PropertyConstraintSet();
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:8,代码来源:PropertyFilterVisitor.java


示例7: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Override
public Object visit(
		final PropertyIsNull filter,
		final Object extraData ) {
	if (!usesProperty(filter)) {
		return Filter.INCLUDE;
	}
	return super.visit(
			filter,
			extraData);
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:12,代码来源:PropertyIgnoringFilterVisitor.java


示例8: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public Object visit(PropertyIsNull filter, Object userData) {
	String propertyName = getPropertyName(filter.getExpression());
	String finalName = parsePropertyName(propertyName, userData);
	return Restrictions.isNull(finalName);
}
 
开发者ID:geomajas,项目名称:geomajas-project-server,代码行数:8,代码来源:CriteriaVisitor.java


示例9: addFilter

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
/**
 * Adds the filter.
 *
 * @param node the node
 * @return the filter
 */
private Filter addFilter(FilterNode node) {
    Filter filter = node.getFilter();

    FilterConfigInterface filterConfig = node.getFilterConfig();

    if (filter instanceof LogicFilterImpl) {
        List<Filter> filterList = new ArrayList<Filter>();

        createFilterList(node, filterList);

        return filterConfig.createLogicFilter(filterList);
    }

    List<Expression> parameterFilter = new ArrayList<Expression>();

    if (filter instanceof FidFilterImpl) {
        createExpressionParameterList(node, 1, parameterFilter);
    } else if (filter instanceof BinaryTemporalOperator) {
        createExpressionParameterList(node, 2, parameterFilter);
    } else if (filter instanceof PropertyIsBetween) {
        createExpressionParameterList(node, 3, parameterFilter);
    } else if (filter instanceof PropertyIsNull) {
        createExpressionParameterList(node, 1, parameterFilter);
    } else if (filter instanceof PropertyIsLike) {
        createExpressionParameterList(node, 6, parameterFilter);
    } else if (filter instanceof BinarySpatialOperator) {
        createExpressionParameterList(node, 2, parameterFilter);
    } else if (filter instanceof BinaryComparisonAbstract) {
        if (filter instanceof Not) {
            createExpressionParameterList(node, 1, parameterFilter);
        } else if (filter instanceof PropertyIsGreaterThan) {
            createExpressionParameterList(node, 2, parameterFilter);
        } else {
            createExpressionParameterList(node, 3, parameterFilter);
        }
    } else {
        return filter;
    }

    return filterConfig.createFilter(parameterFilter);
}
 
开发者ID:robward-scisys,项目名称:sldeditor,代码行数:48,代码来源:ExpressionPanelv2.java


示例10: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Override
public Object visit(PropertyIsNull pin, Object o) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
 
开发者ID:DennisPallett,项目名称:gt-jdbc-monetdb-simple,代码行数:5,代码来源:FilterToSQL.java


示例11: visit

import org.opengis.filter.PropertyIsNull; //导入依赖的package包/类
@Override
public Object visit(
		final PropertyIsNull filter,
		final Object data ) {
	return new TemporalConstraints();
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:7,代码来源:ExtractTimeFilterVisitor.java



注:本文中的org.opengis.filter.PropertyIsNull类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PsiDeclarationStatement类代码示例发布时间:2022-05-23
下一篇:
Java GetApplicationAttemptsResponseProto类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap