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

#include <expression.h>

Inheritance diagram for graphar::ExpressionProperty:
graphar::Expression

Public Member Functions

 ExpressionProperty (const Property &property)
 
 ExpressionProperty (const std::string &name)
 
 ExpressionProperty (const ExpressionProperty &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::Expression
 Expression (const Expression &other)=default
 

Detailed Description

This class wraps the Property and provides a way to construct property expression

Definition at line 59 of file expression.h.

Member Function Documentation

◆ Evaluate()

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


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