diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Accumulator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Accumulator.java index 4a5fbb9c78bd..973fb34b4042 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Accumulator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Accumulator.java @@ -24,6 +24,9 @@ * during the flow execution. * *

Accumulators are inspired by the Hadoop/MapReduce counters. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.INTERNAL) +@Deprecated public interface Accumulator {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/AccumulatorProvider.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/AccumulatorProvider.java index bb4e1cd4065b..d3e396ff491e 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/AccumulatorProvider.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/AccumulatorProvider.java @@ -25,8 +25,11 @@ /** * Provides access to an accumulator backend service. It is intended to be implemented by third * party to support different type of services. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.EXECUTOR) +@Deprecated public interface AccumulatorProvider { static AccumulatorProvider.Factory of(Pipeline pipeline) { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Counter.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Counter.java index b5e93ef5d3b9..bf4ec27fe9d9 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Counter.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Counter.java @@ -19,8 +19,13 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Counter is a type of accumulator making a sum from integral numbers. */ +/** + * Counter is a type of accumulator making a sum from integral numbers. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public interface Counter extends Accumulator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Histogram.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Histogram.java index 18c71ede8a74..307012f527c2 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Histogram.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Histogram.java @@ -19,8 +19,13 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Histogram is a type of accumulator recording a distribution of different values. */ +/** + * Histogram is a type of accumulator recording a distribution of different values. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public interface Histogram extends Accumulator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Timer.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Timer.java index 538b908fceac..422530f0e6f2 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Timer.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/Timer.java @@ -24,8 +24,11 @@ /** * Timer provides convenience API very similar to {@link Histogram} but extended by time unit * support. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) +@Deprecated public interface Timer extends Accumulator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/VoidAccumulatorProvider.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/VoidAccumulatorProvider.java index 154d66986a0d..d163fd952d4c 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/VoidAccumulatorProvider.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/accumulators/VoidAccumulatorProvider.java @@ -26,8 +26,11 @@ /** * Placeholder implementation of {@link AccumulatorProvider} that may be used in executors as a * default. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.EXECUTOR) +@Deprecated public class VoidAccumulatorProvider implements AccumulatorProvider { private static final Logger LOG = LoggerFactory.getLogger(VoidAccumulatorProvider.class); diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunction.java index e641a009d46e..e9849f180ebf 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunction.java @@ -26,9 +26,11 @@ * @param the type of the left operand * @param the type of the right operand * @param the type of the result of the function application + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface BinaryFunction extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunctor.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunctor.java index 3f1b28bb1a7c..f133de1add49 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunctor.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/BinaryFunctor.java @@ -21,9 +21,14 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; import org.apache.beam.sdk.extensions.euphoria.core.client.io.Collector; -/** Functor of two arguments. */ +/** + * Functor of two arguments. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface BinaryFunctor extends Serializable { void apply(LeftT left, RightT right, Collector context); diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableBinaryFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableBinaryFunction.java index 656b7dd38956..c59a27b3fcc3 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableBinaryFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableBinaryFunction.java @@ -19,7 +19,12 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Function of two arguments of the same type. */ +/** + * unction of two arguments of the same type. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface CombinableBinaryFunction extends SameArgsBinaryFunction {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableReduceFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableReduceFunction.java index 41a6ae98f4d4..f862a865c61f 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableReduceFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CombinableReduceFunction.java @@ -22,7 +22,10 @@ /** * Function reducing stream of elements into single one of the same type. The applied function has * to be commutative associative. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface CombinableReduceFunction extends ReduceFunction {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CompositeUnaryFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CompositeUnaryFunction.java index b5e086ae7917..3e46f8302b47 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CompositeUnaryFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/CompositeUnaryFunction.java @@ -19,8 +19,13 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** A function that is composition of two unary functions. */ +/** + * A function that is composition of two unary functions. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public class CompositeUnaryFunction implements UnaryFunction { private final UnaryFunction first; diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Consumer.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Consumer.java index 6d426ea5856b..876ae4971fa5 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Consumer.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Consumer.java @@ -20,9 +20,14 @@ import java.io.Serializable; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** A consumer of given type. */ +/** + * A consumer of given type. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface Consumer extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ExtractEventTime.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ExtractEventTime.java index 1a9e1d1520bd..66f00ec115ac 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ExtractEventTime.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ExtractEventTime.java @@ -20,9 +20,13 @@ import java.io.Serializable; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** @param type of input to extract timestamp from */ +/** + * @param type of input to extract timestamp from + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface ExtractEventTime extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunction.java index f1ed706dd935..cc52486283dc 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunction.java @@ -22,7 +22,10 @@ /** * Reduce function reducing iterable of elements into single element (of possibly different type). + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface ReduceFunction extends UnaryFunction, OutputT> {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunctor.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunctor.java index 234b5d9e6915..74fc0aeffd32 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunctor.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/ReduceFunctor.java @@ -24,9 +24,12 @@ /** * Reduce function reducing iterable of elements into multiple elements (of possibly different * type). + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface ReduceFunctor extends UnaryFunctor, OutputT> { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/SameArgsBinaryFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/SameArgsBinaryFunction.java index adcdfbff3d74..3fc96d05e15b 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/SameArgsBinaryFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/SameArgsBinaryFunction.java @@ -19,8 +19,13 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Function of two arguments of the same type. */ +/** + * Function of two arguments of the same type. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.INTERNAL) @FunctionalInterface +@Deprecated public interface SameArgsBinaryFunction extends BinaryFunction {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Supplier.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Supplier.java index b7c3f51baf62..e2d5a4562727 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Supplier.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/Supplier.java @@ -26,8 +26,10 @@ * {@link #get()}. * * @param the type of results supplied by this supplier + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @FunctionalInterface +@Deprecated public interface Supplier extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/TernaryFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/TernaryFunction.java index e70009b2bbac..169244925429 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/TernaryFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/TernaryFunction.java @@ -20,9 +20,14 @@ import java.io.Serializable; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Function taking three arguments. */ +/** + * Function taking three arguments. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface TernaryFunction extends Serializable { OutputT apply(FirstT first, SecondT second, ThirdT third); diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunction.java index 3940706a6938..a0fe4fe8bd9a 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunction.java @@ -25,9 +25,11 @@ * * @param the type of the element processed * @param the type of the result applying element to the function + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface UnaryFunction extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctionEnv.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctionEnv.java index ae39e66349d5..eb4f9b837d70 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctionEnv.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctionEnv.java @@ -26,9 +26,11 @@ * * @param the type of the element processed * @param the type of the result applying element to the function + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface UnaryFunctionEnv extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctor.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctor.java index d239c9e2a864..5e85c7cb9772 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctor.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryFunctor.java @@ -24,9 +24,12 @@ /** * Functor of single argument. Functor can produce zero or more elements in return to a call, for * which it uses a collector. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface UnaryFunctor extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryPredicate.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryPredicate.java index e2115ebc5dc4..de2bd95cf468 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryPredicate.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/UnaryPredicate.java @@ -19,7 +19,12 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Binary function of X returning boolean. */ +/** + * Binary function of X returning boolean. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface UnaryPredicate extends UnaryFunction {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/VoidFunction.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/VoidFunction.java index 8e2a7c9d996a..79f66b10274b 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/VoidFunction.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/functional/VoidFunction.java @@ -20,9 +20,14 @@ import java.io.Serializable; import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Function taking zero arguments. */ +/** + * Function taking zero arguments. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) @FunctionalInterface +@Deprecated public interface VoidFunction extends Serializable { T apply(); diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Collector.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Collector.java index d3f772a72d67..4875f6168712 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Collector.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Collector.java @@ -23,8 +23,10 @@ * Extends {@link Environment} with write capability. Used in user defined functors. * * @param the type of elements collected through this context + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) +@Deprecated public interface Collector extends Environment { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Context.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Context.java index 8ea8801d8b45..33ec863b94a5 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Context.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Context.java @@ -19,6 +19,11 @@ import org.apache.beam.sdk.extensions.euphoria.core.annotation.audience.Audience; -/** Used in user defined functions to access environment methods. */ +/** + * Used in user defined functions to access environment methods. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public interface Context extends Environment {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Environment.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Environment.java index 766b7f2f3444..ca4d1c77e348 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Environment.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/io/Environment.java @@ -22,8 +22,13 @@ import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.Histogram; import org.apache.beam.sdk.extensions.euphoria.core.client.accumulators.Timer; -/** Defines basic methods available in user defined functions. */ +/** + * Defines basic methods available in user defined functions. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public interface Environment { // ---------------- Aggregator related methods ------------ diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/lib/Split.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/lib/Split.java index c5cd4a409dcd..2ad2cc372b58 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/lib/Split.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/lib/Split.java @@ -28,9 +28,12 @@ /** * Composite operator using two {@link Filter} operators to split a {@link PCollection} into two * subsets using provided {@link UnaryPredicate}. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.ZERO, repartitions = 0) +@Deprecated public class Split { static final String DEFAULT_NAME = "Split"; diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/AssignEventTime.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/AssignEventTime.java index ee586aa5dd06..c222397a0ab7 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/AssignEventTime.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/AssignEventTime.java @@ -45,6 +45,8 @@ * .eventTimeBy(evt-time-fn) * .output(); * } + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.ZERO, repartitions = 0) @@ -52,6 +54,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class AssignEventTime extends Operator implements CompositeOperator { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CompositeOperator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CompositeOperator.java index fef2ff877829..582049fae318 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CompositeOperator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CompositeOperator.java @@ -25,7 +25,9 @@ * * @param type of input * @param type of output + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public interface CompositeOperator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CountByKey.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CountByKey.java index 09ac0215b62e..498658979bb1 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CountByKey.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CountByKey.java @@ -61,6 +61,8 @@ *

  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.CONSTANT, repartitions = 1) @@ -68,6 +70,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class CountByKey extends ShuffleOperator> implements CompositeOperator> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Distinct.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Distinct.java index ca42a7e8330c..cbd9286b9f61 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Distinct.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Distinct.java @@ -64,6 +64,8 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Recommended( @@ -77,6 +79,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class Distinct extends ShuffleOperator implements CompositeOperator { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Filter.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Filter.java index 10522f02bbab..6283ffe47258 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Filter.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Filter.java @@ -46,6 +46,8 @@ *
  • {@code by .......................} apply {@link UnaryPredicate} to input elements *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.ZERO, repartitions = 0) @@ -53,6 +55,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class Filter extends Operator implements CompositeOperator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FlatMap.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FlatMap.java index dd92854d616c..5a3f17cb9e23 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FlatMap.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FlatMap.java @@ -79,12 +79,15 @@ * using {@link ExtractEventTime} *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Basic(state = StateComplexity.ZERO, repartitions = 0) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class FlatMap extends Operator implements TypeAware.Output { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FullJoin.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FullJoin.java index 03841d828d80..63312a735e33 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FullJoin.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/FullJoin.java @@ -52,11 +52,14 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code (output | outputValues) ..} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class FullJoin { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Join.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Join.java index fe268b36b4a3..06b28d08b586 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Join.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Join.java @@ -67,6 +67,8 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code (output | outputValues) ..} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Recommended( @@ -79,6 +81,7 @@ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class Join extends ShuffleOperator> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/LeftJoin.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/LeftJoin.java index d992b409049b..688162061c32 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/LeftJoin.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/LeftJoin.java @@ -51,11 +51,14 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code (output | outputValues) ..} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class LeftJoin { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/MapElements.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/MapElements.java index 53422537414f..86d24c82fc7c 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/MapElements.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/MapElements.java @@ -47,12 +47,15 @@ * to input elements *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.ZERO, repartitions = 0) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class MapElements extends Operator implements CompositeOperator, TypeAware.Output { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceByKey.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceByKey.java index 45a5b30560b7..7b7a368ee997 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceByKey.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceByKey.java @@ -87,6 +87,7 @@ * @param Output type of #valueBy method * @param type of accumulator (if CombineFn used) * @param Type of output value + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Recommended( @@ -100,6 +101,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class ReduceByKey extends ShuffleOperator> implements TypeAware.Value { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceWindow.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceWindow.java index 0dfc4d9c9db3..b7318cecf9ff 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceWindow.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/ReduceWindow.java @@ -74,6 +74,8 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.CONSTANT_IF_COMBINABLE, repartitions = 1) @@ -81,6 +83,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class ReduceWindow extends ShuffleOperator implements TypeAware.Value, CompositeOperator { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/RightJoin.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/RightJoin.java index bb801b999c36..c35657029333 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/RightJoin.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/RightJoin.java @@ -52,11 +52,14 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code (output | outputValues) ..} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class RightJoin { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/SumByKey.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/SumByKey.java index 15d070b75697..c14b933a0c51 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/SumByKey.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/SumByKey.java @@ -73,6 +73,8 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code (output | outputValues) ..} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.CONSTANT, repartitions = 1) @@ -80,6 +82,7 @@ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class SumByKey extends ShuffleOperator> implements CompositeOperator> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/TopPerKey.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/TopPerKey.java index 3cd27925bdcf..21f4544ce417 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/TopPerKey.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/TopPerKey.java @@ -78,12 +78,15 @@ *
  • {@code [accumulationMode] .......} windowing accumulation mode, follows [triggeredBy] *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Derived(state = StateComplexity.CONSTANT, repartitions = 1) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class TopPerKey> extends ShuffleOperator> implements TypeAware.Value, CompositeOperator> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Union.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Union.java index def5d422ff51..de7db2cb9d86 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Union.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/Union.java @@ -63,12 +63,15 @@ *
  • {@code of .......................} input datasets *
  • {@code output ...................} build output dataset * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.CLIENT) @Basic(state = StateComplexity.ZERO, repartitions = 0) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class Union extends Operator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/Builders.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/Builders.java index f294cc4761ff..edd6066928e4 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/Builders.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/Builders.java @@ -45,12 +45,15 @@ * * *

    For internal usage only. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.INTERNAL) @SuppressWarnings({ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class Builders { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/OptionalMethodBuilder.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/OptionalMethodBuilder.java index 733664678989..4a47480879ac 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/OptionalMethodBuilder.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/OptionalMethodBuilder.java @@ -24,8 +24,10 @@ * Class to be extended by operator builders that want to make use of `applyIf` call. * * @param the class of the builder that extends this class + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.INTERNAL) +@Deprecated public interface OptionalMethodBuilder< InBuilderT extends OptionalMethodBuilder, OutBuilderT> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/WindowAware.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/WindowAware.java index fad2eb592dfc..dbb82d8dd9d5 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/WindowAware.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/base/WindowAware.java @@ -25,8 +25,10 @@ * Operator aware of windows. * * @param the type of windowed element + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.INTERNAL) +@Deprecated public interface WindowAware { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/hint/OutputHint.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/hint/OutputHint.java index cd9ce28db151..9c15c95cef2b 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/hint/OutputHint.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/hint/OutputHint.java @@ -23,7 +23,7 @@ /** * Specify hints about runtime data characteristics. * - * @deprecated Hints unsupported for now + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.INTERNAL) @Deprecated diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAware.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAware.java index d750192425d8..bafa8fc43a33 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAware.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAware.java @@ -18,7 +18,6 @@ package org.apache.beam.sdk.extensions.euphoria.core.client.type; import java.util.Optional; -import org.apache.beam.sdk.extensions.euphoria.core.client.operator.base.Operator; import org.apache.beam.sdk.values.TypeDescriptor; /** @@ -29,6 +28,8 @@ * are chained together and type of input(s) equals to types of previous transform output(s). Source * transforms needs to know which type of elements are producing explicitly. */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class TypeAware { /** Returns {@link TypeDescriptor} of this operator output type. */ diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAwareness.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAwareness.java index b8efec1225ee..5f2b2e8ecac9 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAwareness.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeAwareness.java @@ -21,6 +21,8 @@ import org.apache.beam.sdk.values.TypeDescriptor; /** Utility methods related to type awareness. */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class TypeAwareness { private static final TypeDescriptor OBJECT_TYPE = new TypeDescriptor() {}; diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeUtils.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeUtils.java index 81956d494510..ba20b4d85845 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeUtils.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/type/TypeUtils.java @@ -24,10 +24,15 @@ import org.apache.beam.sdk.values.TypeParameter; import org.checkerframework.checker.nullness.qual.Nullable; -/** A collections of {@link TypeDescriptor} construction methods. */ +/** + * A collections of {@link TypeDescriptor} construction methods. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class TypeUtils { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Fold.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Fold.java index 6e7066cff07d..5ee82ca0b385 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Fold.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Fold.java @@ -27,6 +27,8 @@ import org.apache.beam.sdk.extensions.euphoria.core.translate.SingleValueContext; /** Apply a folding function. */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class Fold implements Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Max.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Max.java index 44cfd03e3575..18ce9b88543e 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Max.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Max.java @@ -22,8 +22,13 @@ import org.apache.beam.sdk.extensions.euphoria.core.client.functional.CombinableReduceFunction; import org.apache.beam.sdk.extensions.euphoria.core.client.functional.UnaryFunction; -/** Calculate maximum. */ +/** + * Calculate maximum. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public class Max { private Max() {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/PCollectionLists.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/PCollectionLists.java index fb28a89bfc75..13bf07da444f 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/PCollectionLists.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/PCollectionLists.java @@ -22,6 +22,8 @@ import org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.Iterables; /** Utilities related to {@link PCollection}s. */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class PCollectionLists { private PCollectionLists() {} diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Sums.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Sums.java index e662c42c744d..d11837802010 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Sums.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/util/Sums.java @@ -23,8 +23,13 @@ import org.apache.beam.sdk.values.TypeDescriptor; import org.apache.beam.sdk.values.TypeDescriptors; -/** Provides commonly used function objects around computing sums. */ +/** + * Provides commonly used function objects around computing sums. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @Audience(Audience.Type.CLIENT) +@Deprecated public class Sums { private static class SumFunction implements ReduceByKey.CombineFunctionWithIdentity { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BeamAccumulatorProvider.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BeamAccumulatorProvider.java index 8de0db850b32..33a5f87ae97e 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BeamAccumulatorProvider.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BeamAccumulatorProvider.java @@ -33,6 +33,8 @@ * Translation of accumulators to {@link Metrics}. Metric's namespace is taken from operator name. * So for better orientation in metrics it's recommended specify operator name with method .named(). */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class BeamAccumulatorProvider implements AccumulatorProvider { private static final Logger LOG = LoggerFactory.getLogger(BeamAccumulatorProvider.class); diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BroadcastHashJoinTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BroadcastHashJoinTranslator.java index 724f28d69234..2af72756f40a 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BroadcastHashJoinTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/BroadcastHashJoinTranslator.java @@ -47,10 +47,13 @@ *
  • Input {@link PCollection} of broadcast side has to be the same instance *
  • Key extractor of broadcast side has to be the same {@link UnaryFunction} instance * + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class BroadcastHashJoinTranslator extends AbstractJoinTranslator { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/CompositeOperatorTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/CompositeOperatorTranslator.java index e1b26eb7ebbc..17ac383bfbb3 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/CompositeOperatorTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/CompositeOperatorTranslator.java @@ -30,10 +30,12 @@ * @param input type * @param output type * @param operator type + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @SuppressWarnings({ "rawtypes" // TODO(https://github.com/apache/beam/issues/20447) }) +@Deprecated public class CompositeOperatorTranslator implements OperatorTranslator { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/EuphoriaOptions.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/EuphoriaOptions.java index 067533b66b52..bf0a17a4f03b 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/EuphoriaOptions.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/EuphoriaOptions.java @@ -25,7 +25,12 @@ import org.apache.beam.sdk.options.Description; import org.apache.beam.sdk.options.PipelineOptions; -/** Pipeline options related to Euphoria DSL translation. */ +/** + * Pipeline options related to Euphoria DSL translation. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ +@Deprecated public interface EuphoriaOptions extends PipelineOptions { /** {@link DefaultValueFactory} of {@link TranslatorProvider}. */ diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/FlatMapTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/FlatMapTranslator.java index 60c94f834530..62d047a8db43 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/FlatMapTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/FlatMapTranslator.java @@ -39,6 +39,8 @@ * @param type of input * @param type of output */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class FlatMapTranslator implements OperatorTranslator> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/JoinTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/JoinTranslator.java index 3e29f661640e..0263dfd2c36a 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/JoinTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/JoinTranslator.java @@ -33,10 +33,15 @@ import org.apache.beam.sdk.values.TupleTag; import org.checkerframework.checker.nullness.qual.Nullable; -/** {@link OperatorTranslator Translator } for Euphoria {@link Join} operator. */ +/** + * {@link OperatorTranslator Translator } for Euphoria {@link Join} operator. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class JoinTranslator extends AbstractJoinTranslator { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTransform.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTransform.java index d2bd5ebde27d..b33a32a0490c 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTransform.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTransform.java @@ -30,10 +30,12 @@ * @param type of input elements * @param type of output elements * @param type of operator to expand + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class OperatorTransform> extends PTransform, PCollection> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTranslator.java index 1a77ef84d0e1..a27c96884b61 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/OperatorTranslator.java @@ -27,10 +27,12 @@ * @param the type of input elements * @param the type of output elements * @param the type of the euphoria operator + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @SuppressWarnings({ "rawtypes" // TODO(https://github.com/apache/beam/issues/20447) }) +@Deprecated public interface OperatorTranslator { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/ReduceByKeyTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/ReduceByKeyTranslator.java index 1ea61bad8ff9..cedcb2a025ab 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/ReduceByKeyTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/ReduceByKeyTranslator.java @@ -49,11 +49,16 @@ import org.apache.beam.sdk.values.TypeDescriptors; import org.checkerframework.checker.nullness.qual.Nullable; -/** Translator for {@code ReduceByKey} operator. */ +/** + * Translator for {@code ReduceByKey} operator. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @SuppressWarnings({ "rawtypes", // TODO(https://github.com/apache/beam/issues/20447) "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class ReduceByKeyTranslator implements OperatorTranslator< InputT, KV, ReduceByKey> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/SingleValueContext.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/SingleValueContext.java index e12df06b6037..d9696c6b13be 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/SingleValueContext.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/SingleValueContext.java @@ -29,11 +29,14 @@ * A {@code Context} that holds only single value. There is no window associated with the value, so * the {@code getWindow()} will always throw {@code UnsupportedOperationException}. This context * will free the value as soon as {@code getAndResetValue()} is called. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.EXECUTOR) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class SingleValueContext implements Context, Collector { private final @Nullable Context wrap; diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TimestampExtractTransform.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TimestampExtractTransform.java index 4e0b5c7f0782..ffc06648ba4f 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TimestampExtractTransform.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TimestampExtractTransform.java @@ -32,10 +32,12 @@ * * @param input type * @param output type + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class TimestampExtractTransform extends PTransform, PCollection> { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TranslatorProvider.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TranslatorProvider.java index 0c803f6b8c8d..2ccefaafb4cf 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TranslatorProvider.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/TranslatorProvider.java @@ -21,7 +21,12 @@ import org.apache.beam.sdk.Pipeline; import org.apache.beam.sdk.extensions.euphoria.core.client.operator.base.Operator; -/** Simple interface that allows user to define translation of his own. */ +/** + * Simple interface that allows user to define translation of his own. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ +@Deprecated public interface TranslatorProvider { static TranslatorProvider of(Pipeline pipeline) { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/UnionTranslator.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/UnionTranslator.java index 1fe990de847f..f38ab1d8da0f 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/UnionTranslator.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/UnionTranslator.java @@ -23,10 +23,15 @@ import org.apache.beam.sdk.values.PCollectionList; import org.apache.beam.sdk.values.TypeDescriptor; -/** Euphoria to Beam translation of {@link Union} operator. */ +/** + * Euphoria to Beam translation of {@link Union} operator. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class UnionTranslator implements OperatorTranslator> { @Override diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/AdaptableCollector.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/AdaptableCollector.java index b17a9ed0716f..a5556b53c15e 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/AdaptableCollector.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/AdaptableCollector.java @@ -35,12 +35,15 @@ * Implementation of {@link Collector} which forwards output elements through {@link * CollectorAdapter} to given {@link DoFn.ProcessContext}. The {@link DoFn.ProcessContext} needs to * be set by {@link AdaptableCollector#setProcessContext(DoFn.ProcessContext)} manually before use. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @NotThreadSafe @Audience(Audience.Type.EXECUTOR) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class AdaptableCollector implements Collector, Context, Serializable { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/CollectorAdapter.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/CollectorAdapter.java index 42e3720243e7..f52debdbce82 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/CollectorAdapter.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/CollectorAdapter.java @@ -26,7 +26,9 @@ * * @param type of output * @param type of element + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public interface CollectorAdapter extends Serializable { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/SingleValueCollector.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/SingleValueCollector.java index 8c6610ad9352..6968c2d3d185 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/SingleValueCollector.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/collector/SingleValueCollector.java @@ -28,10 +28,15 @@ import org.apache.beam.sdk.extensions.euphoria.core.client.io.Context; import org.checkerframework.checker.nullness.qual.Nullable; -/** {@code Collector} for combinable functors. */ +/** + * {@code Collector} for combinable functors. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. + */ @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class SingleValueCollector implements Collector, Serializable { private static final String UNSUPPORTED = "Accumulators are supported for named operators only."; diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/CompositeProvider.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/CompositeProvider.java index 03c79150cee9..ef82a2d08d42 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/CompositeProvider.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/CompositeProvider.java @@ -31,6 +31,8 @@ * An implementation of {@link TranslatorProvider} which allows to stack other {@link * TranslatorProvider TranslatorProviders} in order given on construction time. */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class CompositeProvider implements TranslatorProvider { private final List orderedTranslatorsChain; diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/GenericTranslatorProvider.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/GenericTranslatorProvider.java index b30473b3c9ec..0bfee5a25172 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/GenericTranslatorProvider.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/translate/provider/GenericTranslatorProvider.java @@ -45,10 +45,13 @@ *

    {@link OperatorTranslator Translators} can be added by calling variants of {@link * GenericTranslatorProvider.Builder#register(Class, OperatorTranslator) register} method during * build. Order of registration is important. Building is started by {@link #newBuilder()}. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @SuppressWarnings({ "rawtypes" // TODO(https://github.com/apache/beam/issues/20447) }) +@Deprecated public class GenericTranslatorProvider implements TranslatorProvider { public static GenericTranslatorProvider createWithDefaultTranslators() { diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/IOUtils.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/IOUtils.java index 1ed8c6f5f89c..438a8f2605f9 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/IOUtils.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/IOUtils.java @@ -21,6 +21,8 @@ import java.util.stream.Stream; /** Util class that helps iterate over methods throwing {@link IOException}. */ +/** @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ +@Deprecated public class IOUtils { /** diff --git a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/InstanceUtils.java b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/InstanceUtils.java index 93a419ac8f2e..6966416e8939 100644 --- a/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/InstanceUtils.java +++ b/sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/util/InstanceUtils.java @@ -23,11 +23,14 @@ /** * Util class that helps instantiations of objects throwing {@link RuntimeException}. For core * purposes only. Should not be used in client code. + * + * @deprecated Use Java SDK directly, Euphoria is scheduled for removal in a future release. */ @Audience(Audience.Type.EXECUTOR) @SuppressWarnings({ "nullness" // TODO(https://github.com/apache/beam/issues/20497) }) +@Deprecated public class InstanceUtils { public static T create(Class cls) {