Skip to content

Commit b89a041

Browse files
committed
Move annotation LiteralParameter to SPI for use in other modules
1 parent 6d69b41 commit b89a041

File tree

12 files changed

+12
-10
lines changed

12 files changed

+12
-10
lines changed

presto-main-base/src/main/java/com/facebook/presto/operator/annotations/ImplementationDependency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import com.facebook.presto.spi.function.Convention;
2121
import com.facebook.presto.spi.function.FunctionDependency;
2222
import com.facebook.presto.spi.function.InvocationConvention;
23+
import com.facebook.presto.spi.function.LiteralParameter;
2324
import com.facebook.presto.spi.function.OperatorDependency;
2425
import com.facebook.presto.spi.function.TypeParameter;
25-
import com.facebook.presto.type.LiteralParameter;
2626

2727
import java.lang.annotation.Annotation;
2828
import java.lang.reflect.AnnotatedElement;

presto-main-base/src/main/java/com/facebook/presto/operator/scalar/CharacterStringCasts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
package com.facebook.presto.operator.scalar;
1515

1616
import com.facebook.presto.common.function.OperatorType;
17+
import com.facebook.presto.spi.function.LiteralParameter;
1718
import com.facebook.presto.spi.function.LiteralParameters;
1819
import com.facebook.presto.spi.function.ScalarOperator;
1920
import com.facebook.presto.spi.function.SqlType;
20-
import com.facebook.presto.type.LiteralParameter;
2121
import com.google.common.collect.ImmutableList;
2222
import io.airlift.slice.Slice;
2323
import io.airlift.slice.SliceUtf8;

presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JoniRegexpCasts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
import com.facebook.presto.common.function.OperatorType;
1717
import com.facebook.presto.spi.PrestoException;
18+
import com.facebook.presto.spi.function.LiteralParameter;
1819
import com.facebook.presto.spi.function.LiteralParameters;
1920
import com.facebook.presto.spi.function.ScalarOperator;
2021
import com.facebook.presto.spi.function.SqlType;
2122
import com.facebook.presto.type.JoniRegexpType;
22-
import com.facebook.presto.type.LiteralParameter;
2323
import io.airlift.jcodings.specific.NonStrictUTF8Encoding;
2424
import io.airlift.joni.Option;
2525
import io.airlift.joni.Regex;

presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JsonFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import com.facebook.presto.common.type.StandardTypes;
2222
import com.facebook.presto.common.type.Type;
2323
import com.facebook.presto.spi.PrestoException;
24+
import com.facebook.presto.spi.function.LiteralParameter;
2425
import com.facebook.presto.spi.function.LiteralParameters;
2526
import com.facebook.presto.spi.function.ScalarFunction;
2627
import com.facebook.presto.spi.function.ScalarOperator;
2728
import com.facebook.presto.spi.function.SqlNullable;
2829
import com.facebook.presto.spi.function.SqlType;
2930
import com.facebook.presto.type.JsonPathType;
30-
import com.facebook.presto.type.LiteralParameter;
3131
import com.fasterxml.jackson.core.JsonFactory;
3232
import com.fasterxml.jackson.core.JsonParser;
3333
import com.fasterxml.jackson.core.JsonToken;

presto-main-base/src/main/java/com/facebook/presto/operator/scalar/MathFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import com.facebook.presto.operator.aggregation.TypedSet;
2222
import com.facebook.presto.spi.PrestoException;
2323
import com.facebook.presto.spi.function.Description;
24+
import com.facebook.presto.spi.function.LiteralParameter;
2425
import com.facebook.presto.spi.function.LiteralParameters;
2526
import com.facebook.presto.spi.function.ScalarFunction;
2627
import com.facebook.presto.spi.function.Signature;
2728
import com.facebook.presto.spi.function.SqlNullable;
2829
import com.facebook.presto.spi.function.SqlType;
2930
import com.facebook.presto.type.Constraint;
30-
import com.facebook.presto.type.LiteralParameter;
3131
import com.facebook.presto.util.SecureRandomGeneration;
3232
import com.google.common.primitives.Doubles;
3333
import io.airlift.slice.Slice;

presto-main-base/src/main/java/com/facebook/presto/operator/scalar/StringFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
import com.facebook.presto.common.type.StandardTypes;
2020
import com.facebook.presto.spi.PrestoException;
2121
import com.facebook.presto.spi.function.Description;
22+
import com.facebook.presto.spi.function.LiteralParameter;
2223
import com.facebook.presto.spi.function.LiteralParameters;
2324
import com.facebook.presto.spi.function.ScalarFunction;
2425
import com.facebook.presto.spi.function.ScalarOperator;
2526
import com.facebook.presto.spi.function.SqlNullable;
2627
import com.facebook.presto.spi.function.SqlType;
2728
import com.facebook.presto.type.CodePointsType;
2829
import com.facebook.presto.type.Constraint;
29-
import com.facebook.presto.type.LiteralParameter;
3030
import com.google.common.primitives.Ints;
3131
import io.airlift.slice.InvalidCodePointException;
3232
import io.airlift.slice.InvalidUtf8Exception;

presto-main-base/src/main/java/com/facebook/presto/type/BigintOperators.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.facebook.presto.spi.function.BlockIndex;
2121
import com.facebook.presto.spi.function.BlockPosition;
2222
import com.facebook.presto.spi.function.IsNull;
23+
import com.facebook.presto.spi.function.LiteralParameter;
2324
import com.facebook.presto.spi.function.LiteralParameters;
2425
import com.facebook.presto.spi.function.ScalarOperator;
2526
import com.facebook.presto.spi.function.SqlNullable;

presto-main-base/src/main/java/com/facebook/presto/type/LikeFunctions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import com.facebook.presto.common.function.OperatorType;
1717
import com.facebook.presto.common.type.StandardTypes;
1818
import com.facebook.presto.spi.PrestoException;
19+
import com.facebook.presto.spi.function.LiteralParameter;
1920
import com.facebook.presto.spi.function.LiteralParameters;
2021
import com.facebook.presto.spi.function.ScalarFunction;
2122
import com.facebook.presto.spi.function.ScalarOperator;

presto-main-base/src/test/java/com/facebook/presto/operator/TestAnnotationEngineForAggregates.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import com.facebook.presto.spi.function.Description;
4444
import com.facebook.presto.spi.function.FunctionKind;
4545
import com.facebook.presto.spi.function.InputFunction;
46+
import com.facebook.presto.spi.function.LiteralParameter;
4647
import com.facebook.presto.spi.function.LiteralParameters;
4748
import com.facebook.presto.spi.function.LongVariableConstraint;
4849
import com.facebook.presto.spi.function.OperatorDependency;
@@ -53,7 +54,6 @@
5354
import com.facebook.presto.spi.function.TypeParameterSpecialization;
5455
import com.facebook.presto.spi.function.aggregation.AggregationMetadata;
5556
import com.facebook.presto.type.Constraint;
56-
import com.facebook.presto.type.LiteralParameter;
5757
import com.google.common.collect.ImmutableList;
5858
import com.google.common.collect.ImmutableSet;
5959
import io.airlift.slice.Slice;

presto-main-base/src/test/java/com/facebook/presto/operator/TestAnnotationEngineForScalars.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
import com.facebook.presto.spi.function.Description;
3131
import com.facebook.presto.spi.function.FunctionKind;
3232
import com.facebook.presto.spi.function.IsNull;
33+
import com.facebook.presto.spi.function.LiteralParameter;
3334
import com.facebook.presto.spi.function.LiteralParameters;
3435
import com.facebook.presto.spi.function.ScalarFunction;
3536
import com.facebook.presto.spi.function.Signature;
3637
import com.facebook.presto.spi.function.SqlNullable;
3738
import com.facebook.presto.spi.function.SqlType;
3839
import com.facebook.presto.spi.function.TypeParameter;
39-
import com.facebook.presto.type.LiteralParameter;
4040
import com.google.common.collect.ImmutableList;
4141
import com.google.common.collect.ImmutableSet;
4242
import io.airlift.slice.Slice;

0 commit comments

Comments
 (0)