SetComparisonOperator - Teradata Meta Data Services

Teradata Meta Data Services Programmer Guide

Product
Teradata Meta Data Services
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
Product Category
Teradata Tools and Utilities

SetComparisonOperator

Purpose

The CMetaFilterInfo SetComparisonOperator function sets the ComparisonOperator to the type of comparison to use in the property search.

Description

The default value for the ComparisonOperator is EQUAL.

Syntax

void SetComparisonOperator(
   const MetaComparisonOperator &compOp);
 

Argument

In/Out

Description

comparisonOperator

In

Operator which defines the type of comparison for the property search. The values are:

  • EQUAL
  • LESS_THAN
  • GREATER_THAN
  • NOT_EQUAL
  • LESS_THAN_OR_EQUAL
  • GREATER_THAN_OR_EQUAL
  • IS_NULL (matches properties in which the property value has never been set)
  • IS_NOT_NULL (matches properties in which a value has been set. This value can be zero).
  • REGEX (applicable to string comparisons only – searches for a character string pattern within another character string or character string expression)
  • Example  

    filterInfo.SetComparisonOperator(REGEX);