public class CEPUtils
extends java.lang.Object
Constructor and Description |
---|
CEPUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<CEPFieldRef> |
getCEPFieldRefFromParKeys(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.util.ImmutableBitSet partitionKeys)
Transform the partition columns into serializable CEPFieldRef.
|
static java.util.ArrayList<CEPPattern> |
getCEPPatternFromPattern(Schema upStreamSchema,
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode call,
java.util.Map<java.lang.String,org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> patternDefs)
Construct a list of
CEPPattern s from a RexNode . |
static CEPFieldRef |
getFieldRef(CEPOperation opr)
a function that finds a pattern reference recursively.
|
static Schema.FieldType |
getFieldType(Schema streamSchema,
CEPOperation measureOperation) |
static java.lang.String |
getRegexFromPattern(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode call)
Recursively construct a regular expression from a
RexNode . |
static java.util.ArrayList<OrderKey> |
makeOrderKeysFromCollation(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelCollation orderKeys)
Transform a list of keys in Calcite to
ORDER BY to OrderKey s. |
public static java.util.ArrayList<CEPPattern> getCEPPatternFromPattern(Schema upStreamSchema, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode call, java.util.Map<java.lang.String,org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> patternDefs)
CEPPattern
s from a RexNode
.public static java.lang.String getRegexFromPattern(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode call)
RexNode
.public static java.util.ArrayList<OrderKey> makeOrderKeysFromCollation(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelCollation orderKeys)
ORDER BY
to OrderKey
s.public static java.util.List<CEPFieldRef> getCEPFieldRefFromParKeys(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.util.ImmutableBitSet partitionKeys)
public static CEPFieldRef getFieldRef(CEPOperation opr)
public static Schema.FieldType getFieldType(Schema streamSchema, CEPOperation measureOperation)