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

#include <expression.h>

Inheritance diagram for graphar::ExpressionLessThan:
graphar::ExpressionBinaryOp graphar::Expression

Public Member Functions

 ExpressionLessThan (std::shared_ptr< Expression > lhs, std::shared_ptr< Expression > rhs)
 
 ExpressionLessThan (const ExpressionLessThan &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 THAN operator expression. e.g. new ExpressionLessThan(new ExpressionProperty("a"), new ExpressionLiteral(1)) => a < 1

Definition at line 227 of file expression.h.

Member Function Documentation

◆ Evaluate()

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


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