本文整理汇总了Java中org.opengis.filter.temporal.BinaryTemporalOperator类的典型用法代码示例。如果您正苦于以下问题:Java BinaryTemporalOperator类的具体用法?Java BinaryTemporalOperator怎么用?Java BinaryTemporalOperator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BinaryTemporalOperator类属于org.opengis.filter.temporal包,在下文中一共展示了BinaryTemporalOperator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addFilter
import org.opengis.filter.temporal.BinaryTemporalOperator; //导入依赖的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);
}
示例2: visitBinaryTemporalOperator
import org.opengis.filter.temporal.BinaryTemporalOperator; //导入依赖的package包/类
/**
* Handles the general case of two expressions in a binary temporal filter.
* <p>
* Subclasses should override if they support more temporal operators than what is handled in
* this base class.
* </p>
*/
protected Object visitBinaryTemporalOperator(BinaryTemporalOperator filter, Expression e1,
Expression e2, Object extraData) {
throw new UnsupportedOperationException("Join version of binary temporal operator not supported");
}