Package org.apache.calcite.piglet
Class PigRelSqlUdfs
java.lang.Object
org.apache.calcite.piglet.PigRelSqlUdfs
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.pig.data.Tuple
Implementation for PIG_BAG functions.static org.apache.pig.data.Tuple
buildTuple
(Object... elements) Implementation for PIG_TUPLE functions.static List
projectMultiset
(Object... objects) Implementation for BAG_PROJECTION functions.
-
Method Details
-
buildTuple
Implementation for PIG_TUPLE functions. Builds a Pig Tuple from an array of objects- Parameters:
elements
- Array of element objects- Returns:
- Pig Tuple
-
buildBag
Implementation for PIG_BAG functions. Builds a Pig DataBag from the corresponding input- Parameters:
elements
- Input that contains a bag- Returns:
- Pig Tuple
-
projectMultiset
Implementation for BAG_PROJECTION functions. Builds a new multiset by projecting certain columns from another multiset.- Parameters:
objects
- Input argument, the first one is a multiset, the remaining are indexes of column to project.- Returns:
- The projected multiset
-