File: Expression.Rd

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (24 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expression.R
\name{Expression}
\alias{Expression}
\title{Arrow expressions}
\description{
\code{Expression}s are used to define filter logic for passing to a \link{Dataset}
\link{Scanner}.

\code{Expression$scalar(x)} constructs an \code{Expression} which always evaluates to
the provided scalar (length-1) R value.

\code{Expression$field_ref(name)} is used to construct an \code{Expression} which
evaluates to the named column in the \code{Dataset} against which it is evaluated.

\code{Expression$create(function_name, ..., options)} builds a function-call
\code{Expression} containing one or more \code{Expression}s. Anything in \code{...} that
is not already an expression will be wrapped in \code{Expression$scalar()}.

\code{Expression$op(FUN, ...)} is for logical and arithmetic operators. Scalar
inputs in \code{...} will be attempted to be cast to the common type of the
\code{Expression}s in the call so that the types of the columns in the \code{Dataset}
are preserved and not unnecessarily upcast, which may be expensive.
}