@TypeParameter("K") @TypeParameter("V") public MapEntriesFunction(@TypeParameter("array(row(K,V))") Type arrayType) { pageBuilder = new PageBuilder(ImmutableList.of(arrayType)); }
static void validateImplementationDependencyAnnotation(AnnotatedElement element, Annotation annotation, Set<String> typeParametersNames, Collection<String> literalParameters) { if (annotation instanceof TypeParameter) { checkTypeParameters(parseTypeSignature(((TypeParameter) annotation).value()), typeParametersNames, element); } if (annotation instanceof LiteralParameter) { checkArgument(literalParameters.contains(((LiteralParameter) annotation).value()), "Parameter injected by @LiteralParameter must be declared with @LiteralParameters on the method [%s]", element); } }
@TypeParameter("K") @TypeParameter("V") public MapFromEntriesFunction(@TypeParameter("map(K,V)") Type mapType) { pageBuilder = new PageBuilder(ImmutableList.of(mapType)); }
static void validateImplementationDependencyAnnotation(AnnotatedElement element, Annotation annotation, Set<String> typeParametersNames, Collection<String> literalParameters) { if (annotation instanceof TypeParameter) { checkTypeParameters(parseTypeSignature(((TypeParameter) annotation).value()), typeParametersNames, element); } if (annotation instanceof LiteralParameter) { checkArgument(literalParameters.contains(((LiteralParameter) annotation).value()), "Parameter injected by @LiteralParameter must be declared with @LiteralParameters on the method [%s]", element); } }
@TypeParameter("K") @TypeParameter("V") public MapEntriesFunction(@TypeParameter("array(row(K,V))") Type arrayType) { pageBuilder = new PageBuilder(ImmutableList.of(arrayType)); }
@TypeParameter("T") public ArraySortComparatorFunction(@TypeParameter("T") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayReverseFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayReverseFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayRemoveFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("T") public ArraySortComparatorFunction(@TypeParameter("T") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayShuffleFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayRemoveFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayDistinctFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArrayIntersectFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArraySortFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("E") public ArraySortFunction(@TypeParameter("E") Type elementType) { pageBuilder = new PageBuilder(ImmutableList.of(elementType)); }
@TypeParameter("K") @TypeParameter("V") public MultimapFromEntriesFunction(@TypeParameter("map(K,array(V))") Type mapType) { pageBuilder = new PageBuilder(ImmutableList.of(mapType)); initializeEntryIndicesList(INITIAL_ENTRY_COUNT); }
@TypeParameter("T") public ConstructorInjectionScalarFunction(@TypeParameter("T") Type type) { this.type = type; }
@TypeParameter("T") public ConstructorInjectionScalarFunction(@TypeParameter("T") Type type) { this.type = type; }
@TypeParameter("K") @TypeParameter("V") @SqlType(StandardTypes.BIGINT) public static long mapCardinality(@SqlType("map(K,V)") Block block) { return block.getPositionCount() / 2; } }