private MapHashCodeOperator() { super(HASH_CODE, ImmutableList.of(comparableTypeParameter("K"), comparableTypeParameter("V")), ImmutableList.of(), parseTypeSignature(StandardTypes.BIGINT), ImmutableList.of(parseTypeSignature("map(K,V)"))); }
private QuantileDigestAggregationFunction(TypeSignature... typeSignatures) { super( NAME, ImmutableList.of(comparableTypeParameter("V")), ImmutableList.of(), parseTypeSignature("qdigest(V)"), ImmutableList.copyOf(typeSignatures)); }
public ChecksumAggregationFunction() { super(NAME, ImmutableList.of(comparableTypeParameter("T")), ImmutableList.of(), parseTypeSignature(StandardTypes.VARBINARY), ImmutableList.of(parseTypeSignature("T"))); }
public Histogram(HistogramGroupImplementation groupMode) { super(NAME, ImmutableList.of(comparableTypeParameter("K")), ImmutableList.of(), parseTypeSignature("map(K,bigint)"), ImmutableList.of(parseTypeSignature("K"))); this.groupMode = groupMode; }
public MergeQuantileDigestFunction() { super(NAME, ImmutableList.of(comparableTypeParameter("T")), ImmutableList.of(), parseTypeSignature("qdigest(T)"), ImmutableList.of(parseTypeSignature("qdigest(T)"))); }
private JsonToMapCast() { super(OperatorType.CAST, ImmutableList.of(comparableTypeParameter("K"), typeVariable("V")), ImmutableList.of(), parseTypeSignature("map(K,V)"), ImmutableList.of(parseTypeSignature(StandardTypes.JSON))); }
public MapUnionAggregation() { super(NAME, ImmutableList.of(comparableTypeParameter("K"), typeVariable("V")), ImmutableList.of(), parseTypeSignature("map<K,V>"), ImmutableList.of(parseTypeSignature("map<K,V>"))); }
public MapAggregationFunction() { super(NAME, ImmutableList.of(comparableTypeParameter("K"), typeVariable("V")), ImmutableList.of(), parseTypeSignature("map(K,V)"), ImmutableList.of(parseTypeSignature("K"), parseTypeSignature("V"))); }
private JsonStringToMapCast() { super(new Signature( JSON_STRING_TO_MAP_NAME, SCALAR, ImmutableList.of(comparableTypeParameter("K"), typeVariable("V")), ImmutableList.of(), parseTypeSignature("map(K,V)"), ImmutableList.of(parseTypeSignature(StandardTypes.VARCHAR)), false)); }
public MultimapAggregationFunction(MultimapAggGroupImplementation groupMode) { super(NAME, ImmutableList.of(comparableTypeParameter("K"), typeVariable("V")), ImmutableList.of(), parseTypeSignature("map(K,array(V))"), ImmutableList.of(parseTypeSignature("K"), parseTypeSignature("V"))); this.groupMode = groupMode; }
public MapConstructor() { super(new Signature( "map", FunctionKind.SCALAR, ImmutableList.of(comparableTypeParameter("K"), typeVariable("V")), ImmutableList.of(), TypeSignature.parseTypeSignature("map(K,V)"), ImmutableList.of(TypeSignature.parseTypeSignature("array(K)"), TypeSignature.parseTypeSignature("array(V)")), false)); }
typeVariableConstraints.add(comparableTypeParameter(name));
.returnType(parseTypeSignature("boolean")) .argumentTypes(parseTypeSignature("T"), parseTypeSignature("T")) .typeVariableConstraints(ImmutableList.of(comparableTypeParameter("T"))) .build();
.returnType(parseTypeSignature("T")) .argumentTypes(parseTypeSignature("array(T)"), parseTypeSignature("T")) .typeVariableConstraints(ImmutableList.of(comparableTypeParameter("T"))) .build();
private MapEqualOperator() { super(EQUAL, ImmutableList.of(comparableTypeParameter("K"), comparableTypeParameter("V")), StandardTypes.BOOLEAN, ImmutableList.of("map(K,V)", "map(K,V)")); }
private ArrayHashCodeOperator() { super(HASH_CODE, ImmutableList.of(comparableTypeParameter("T")), StandardTypes.BIGINT, ImmutableList.of("array(T)")); }
public ArrayContains() { super(FUNCTION_NAME, ImmutableList.of(comparableTypeParameter("T")), StandardTypes.BOOLEAN, ImmutableList.of("array(T)", "T")); }
private ArrayEqualOperator() { super(EQUAL, ImmutableList.of(comparableTypeParameter("T")), StandardTypes.BOOLEAN, ImmutableList.of("array(T)", "array(T)")); }
public MultimapAggregationFunction() { super(NAME, ImmutableList.of(comparableTypeParameter("K"), typeParameter("V")), "map(K,array(V))", ImmutableList.of("K", "V")); }
public MapAggregationFunction() { super(NAME, ImmutableList.of(comparableTypeParameter("K"), typeParameter("V")), "map(K,V)", ImmutableList.of("K", "V")); }