pyarrow.gandiva.Projector

class pyarrow.gandiva.Projector

Bases: pyarrow.lib._Weakrefable

A Gandiva projection executor.

The projector contains the optimized projection function.

To create a projector, use the pyarrow.gandiva.make_projector() function.

See also

pyarrow.gandiva.make_projector

Factory function for projectors

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs)

Initialize self.

evaluate(self, RecordBatch batch, …)

Evaluate the projection to create a new record batch.

Attributes

llvm_ir

The optimized LLVM Internal Representation (IR) code.

evaluate(self, RecordBatch batch, SelectionVector selection=None)

Evaluate the projection to create a new record batch.

Parameters
  • batch (pyarrow.RecordBatch) – Input record batch. Must match the schema provided on creation.

  • selection (SelectionVector, optional) – Vector of row indices to project, if a Filter has already been run.

Returns

pyarrow.RecordBatch

llvm_ir

The optimized LLVM Internal Representation (IR) code.