Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
Public Member Functions | List of all members
graphar::ExpressionNot Class Reference

#include <expression.h>

Inheritance diagram for graphar::ExpressionNot:
graphar::ExpressionUnaryOp graphar::Expression

Public Member Functions

 ExpressionNot (std::shared_ptr< Expression > expr)
 
 ExpressionNot (const ExpressionNot &other)=default
 
Result< ArrowExpression > Evaluate () override
 Evaluate Expression as arrow::compute::Expression e.g. new ExpressionEqual(new ExpressionProperty("a"), new ExpressionLiteral(1)) will be parsed as arrow::compute::equal(arrow::compute::field_ref("a"), arrow::compute::literal(1)) More...
 
- Public Member Functions inherited from graphar::ExpressionUnaryOp
 ExpressionUnaryOp (std::shared_ptr< Expression > expr)
 
 ExpressionUnaryOp (const ExpressionUnaryOp &other)=default
 
- Public Member Functions inherited from graphar::Expression
 Expression (const Expression &other)=default
 

Additional Inherited Members

- Protected Attributes inherited from graphar::ExpressionUnaryOp
std::shared_ptr< Expressionexpr_
 

Detailed Description

This class constructs a NOT operator expression. e.g. new ExpressionNot(new ExpressionLiteral(true)) => NOT TRUE

Definition at line 116 of file expression.h.

Member Function Documentation

◆ Evaluate()

Result< ArrowExpression > graphar::ExpressionNot::Evaluate ( )
overridevirtual

Evaluate Expression as arrow::compute::Expression e.g. new ExpressionEqual(new ExpressionProperty("a"), new ExpressionLiteral(1)) will be parsed as arrow::compute::equal(arrow::compute::field_ref("a"), arrow::compute::literal(1))

Returns
The arrow::compute::Expression instance

Implements graphar::Expression.

Definition at line 28 of file expression.cc.


The documentation for this class was generated from the following files: