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

#include <expression.h>

Inheritance diagram for graphar::Expression:
graphar::ExpressionBinaryOp graphar::ExpressionLiteral< T, IsScalar, typename > graphar::ExpressionProperty graphar::ExpressionUnaryOp graphar::ExpressionAnd graphar::ExpressionEqual graphar::ExpressionGreaterEqual graphar::ExpressionGreaterThan graphar::ExpressionLessEqual graphar::ExpressionLessThan graphar::ExpressionNotEqual graphar::ExpressionOr graphar::ExpressionNot

Public Member Functions

 Expression (const Expression &other)=default
 
virtual Result< ArrowExpression > Evaluate ()=0
 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...
 

Detailed Description

This class wraps an arrow::compute::Expression and provides a way to construct it

Definition at line 37 of file expression.h.

Member Function Documentation

◆ Evaluate()

virtual Result<ArrowExpression> graphar::Expression::Evaluate ( )
pure virtual

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

Implemented in graphar::ExpressionOr, graphar::ExpressionAnd, graphar::ExpressionLessEqual, graphar::ExpressionLessThan, graphar::ExpressionGreaterEqual, graphar::ExpressionGreaterThan, graphar::ExpressionNotEqual, graphar::ExpressionEqual, graphar::ExpressionNot, graphar::ExpressionProperty, and graphar::ExpressionLiteral< T, IsScalar, typename >.


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