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

#include <expression.h>

Inheritance diagram for graphar::ExpressionLessEqual:
graphar::ExpressionBinaryOp graphar::Expression

Public Member Functions

 ExpressionLessEqual (std::shared_ptr< Expression > lhs, std::shared_ptr< Expression > rhs)
 
 ExpressionLessEqual (const ExpressionLessEqual &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::ExpressionBinaryOp
 ExpressionBinaryOp (std::shared_ptr< Expression > lhs, std::shared_ptr< Expression > rhs)
 
 ExpressionBinaryOp (const ExpressionBinaryOp &other)=default
 
- Public Member Functions inherited from graphar::Expression
 Expression (const Expression &other)=default
 

Additional Inherited Members

- Protected Member Functions inherited from graphar::ExpressionBinaryOp
Status CheckNullArgs (std::shared_ptr< Expression > lhs, std::shared_ptr< Expression > rhs) noexcept
 
- Protected Attributes inherited from graphar::ExpressionBinaryOp
std::shared_ptr< Expressionlhs_
 
std::shared_ptr< Expressionrhs_
 

Detailed Description

This class constructs a LESS EQUAL operator expression. e.g. new ExpressionLessEqual(new ExpressionProperty("a"), new ExpressionLiteral(1)) => a <= 1

Definition at line 244 of file expression.h.

Member Function Documentation

◆ Evaluate()

Result< ArrowExpression > graphar::ExpressionLessEqual::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 68 of file expression.cc.


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