A B C D E F G H I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractTestBase - Class in org.apache.flink.test.util
-
Base class for unit tests that run multiple tests and want to reuse the same Flink cluster.
- AbstractTestBase() - Constructor for class org.apache.flink.test.util.AbstractTestBase
- AbstractTestBaseJUnit4 - Class in org.apache.flink.test.util
-
Deprecated.Use
AbstractTestBase
instead. - AbstractTestBaseJUnit4() - Constructor for class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- addArgument(String) - Method in class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
-
Adds a program argument.
- addArgument(String, String) - Method in class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
-
Convenience method for providing key-value program arguments.
- addConfigAsMainClassArgs(Configuration) - Method in class org.apache.flink.test.util.TestProcessBuilder
- addJar(URI) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- addJar(Path) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- addJars(URI...) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- addJars(Path...) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- addJars(List<Path>) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- addJvmArg(String) - Method in class org.apache.flink.test.util.TestProcessBuilder
- addMainClassArg(String) - Method in class org.apache.flink.test.util.TestProcessBuilder
- after() - Method in class org.apache.flink.test.util.MiniClusterWithClientResource
- afterAll(ExtensionContext) - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- afterEach(ExtensionContext) - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- asFile(String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- assertJarContainsOnlyFilesMatching(Path, Collection<String>) - Static method in class org.apache.flink.packaging.PackagingTestUtils
-
Verifies that all files in the jar match one of the provided allow strings.
- assertJarContainsServiceEntry(Path, Class<?>) - Static method in class org.apache.flink.packaging.PackagingTestUtils
-
Verifies that the given jar contains a service entry file for the given service.
- assertSerializedAsPojo(Class<T>) - Static method in class org.apache.flink.types.PojoTestUtils
-
Verifies that instances of the given class fulfill all conditions to be serialized with the
PojoSerializer
, as documented here. - assertSerializedAsPojoWithoutKryo(Class<T>) - Static method in class org.apache.flink.types.PojoTestUtils
-
Verifies that instances of the given class fulfill all conditions to be serialized with the
PojoSerializer
, as documented here, without any field being serialized with Kryo. - assertThatCounter(Metric) - Static method in class org.apache.flink.metrics.testutils.MetricAssertions
- assertThatGauge(Metric) - Static method in class org.apache.flink.metrics.testutils.MetricAssertions
B
- before() - Method in class org.apache.flink.test.util.MiniClusterWithClientResource
- beforeAll(ExtensionContext) - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- beforeEach(ExtensionContext) - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- build() - Method in class org.apache.flink.connector.upserttest.sink.UpsertTestSinkBuilder
-
Constructs the
UpsertTestSink
with the configured properties. - build() - Method in class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
- build() - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- builder() - Static method in class org.apache.flink.connector.upserttest.sink.UpsertTestSink
-
Create a
UpsertTestSinkBuilder
to construct a newUpsertTestSink
.
C
- cancel() - Method in class org.apache.flink.streaming.util.FiniteTestSource
- CENTERS_2D_AFTER_20_ITERATIONS_DOUBLE_DIGIT - Static variable in class org.apache.flink.test.testdata.KMeansData
- CENTERS_2D_AFTER_SINGLE_ITERATION_DOUBLE_DIGIT - Static variable in class org.apache.flink.test.testdata.KMeansData
- CENTERS_AFTER_20_ITERATIONS_DOUBLE_DIGIT - Static variable in class org.apache.flink.test.testdata.KMeansData
- CENTERS_AFTER_20_ITERATIONS_SINGLE_DIGIT - Static variable in class org.apache.flink.test.testdata.KMeansData
- CENTERS_AFTER_ONE_STEP - Static variable in class org.apache.flink.test.testdata.KMeansData
- CENTERS_AFTER_ONE_STEP_SINGLE_DIGIT - Static variable in class org.apache.flink.test.testdata.KMeansData
- checkLinesAgainstRegexp(String, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- checkOddEvenResult(BufferedReader) - Static method in class org.apache.flink.test.testdata.ConnectedComponentsData
- checkOddEvenResult(BufferedReader) - Static method in class org.apache.flink.test.testdata.TransitiveClosureData
- checkOddEvenResult(List<Tuple2<Long, Long>>) - Static method in class org.apache.flink.test.testdata.ConnectedComponentsData
- checkResultsWithDelta(String, List<String>, double) - Static method in class org.apache.flink.test.testdata.KMeansData
- cleanup() - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- cleanupRunningJobs() - Method in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- cleanupRunningJobs(MiniClusterClient) - Method in class org.apache.flink.test.util.AbstractTestBase
- close() - Method in class org.apache.flink.test.streaming.runtime.util.TestListResultSink
- CLUSTER - org.apache.flink.test.util.MultipleProgramsTestBase.TestExecutionMode
- CLUSTER - org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4.TestExecutionMode
-
Deprecated.
- CLUSTER_OBJECT_REUSE - org.apache.flink.test.util.MultipleProgramsTestBase.TestExecutionMode
- CLUSTER_OBJECT_REUSE - org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4.TestExecutionMode
-
Deprecated.
- command(List<String>) - Method in class org.apache.flink.test.util.ShellScript.ShellScriptBuilder
- compare(T, T) - Method in class org.apache.flink.test.util.TestBaseUtils.TupleComparator
- compareKeyValuePairsWithDelta(String, String, String, double) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareOrderedResultAsText(List<T>, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareResultAsText(List<T>, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareResultAsTuples(List<T>, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareResultCollections(List<X>, List<X>, Comparator<X>) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareResultsByLinesInMemory(String, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareResultsByLinesInMemory(String, String, String[]) - Static method in class org.apache.flink.test.util.TestBaseUtils
- compareResultsByLinesInMemoryWithStrictOrder(String, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- ConnectedComponentsData - Class in org.apache.flink.test.testdata
-
Test data for ConnectedComponents programs.
- containsResultAsText(List<T>, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
-
The expected string contains all expected results separate with line break, check whether all elements in result are contained in the expected string.
- COUNTS - Static variable in class org.apache.flink.test.testdata.WordCountData
- COUNTS_AS_TUPLES - Static variable in class org.apache.flink.test.testdata.WordCountData
- createAndRegisterTempFile(String) - Method in class org.apache.flink.test.util.AbstractTestBase
- createAndRegisterTempFile(String) - Method in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- createDynamicTableSink(DynamicTableFactory.Context) - Method in class org.apache.flink.connector.upserttest.table.UpsertTestDynamicTableSinkFactory
- createList() - Method in class org.apache.flink.test.streaming.runtime.util.TestListWrapper
-
Creates and stores a list, returns with the id.
- createShellScriptBuilder() - Static method in class org.apache.flink.test.util.ShellScript
- createTempFile(String, String) - Method in class org.apache.flink.test.util.AbstractTestBase
- createTempFile(String, String) - Method in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- createWriter(WriterInitContext) - Method in class org.apache.flink.connector.upserttest.sink.UpsertTestSink
D
- DATAPOINTS - Static variable in class org.apache.flink.test.testdata.KMeansData
- DATAPOINTS_2D - Static variable in class org.apache.flink.test.testdata.KMeansData
- DELIMITER - Static variable in class org.apache.flink.metrics.testutils.MetricListener
- destroy() - Method in class org.apache.flink.test.util.TestProcessBuilder.TestProcess
- DOCS - Static variable in class org.apache.flink.test.testdata.WebLogAnalysisData
E
- EDGES - Static variable in class org.apache.flink.test.testdata.EnumTriangleData
- EDGES - Static variable in class org.apache.flink.test.testdata.PageRankData
- EnumTriangleData - Class in org.apache.flink.test.testdata
-
Test data for EnumTriangle programs.
- EnumTriangleData() - Constructor for class org.apache.flink.test.testdata.EnumTriangleData
- env(String, String) - Method in class org.apache.flink.test.util.ShellScript.ShellScriptBuilder
- EXCEPTED_RESULT - Static variable in class org.apache.flink.test.testdata.WebLogAnalysisData
- execute(String) - Method in class org.apache.flink.streaming.util.TestStreamEnvironment
- executeAsync(String) - Method in class org.apache.flink.streaming.util.TestStreamEnvironment
- executionModes() - Static method in class org.apache.flink.test.util.MultipleProgramsTestBase
- executionModes() - Static method in class org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4
-
Deprecated.
F
- factoryIdentifier() - Method in class org.apache.flink.connector.upserttest.table.UpsertTestDynamicTableSinkFactory
- FileUtils - Class in org.apache.flink.test.util
-
Collection of file-related utilities.
- FileUtils() - Constructor for class org.apache.flink.test.util.FileUtils
- findFlinkDist() - Static method in class org.apache.flink.test.util.FileUtils
- FiniteTestSource<T> - Class in org.apache.flink.streaming.util
-
A stream source that: 1) emits a list of elements without allowing checkpoints, 2) then waits for two more checkpoints to complete, 3) then re-emits the same elements before 4) waiting for another two checkpoints and 5) exiting.
- FiniteTestSource(Iterable<T>) - Constructor for class org.apache.flink.streaming.util.FiniteTestSource
- FiniteTestSource(BooleanSupplier, long, Iterable<T>) - Constructor for class org.apache.flink.streaming.util.FiniteTestSource
- FiniteTestSource(BooleanSupplier, Iterable<T>) - Constructor for class org.apache.flink.streaming.util.FiniteTestSource
- FiniteTestSource(T...) - Constructor for class org.apache.flink.streaming.util.FiniteTestSource
G
- GatewayClientMode(String, int) - Constructor for class org.apache.flink.test.util.SQLJobClientMode.GatewayClientMode
- GatewaySqlClient(String, int) - Constructor for class org.apache.flink.test.util.SQLJobClientMode.GatewaySqlClient
- get() - Method in class org.apache.flink.test.parameters.ParameterProperty
-
Retrieves the value of this property.
- get(V) - Method in class org.apache.flink.test.parameters.ParameterProperty
-
Retrieves the value of this property, or the given default if no value was set.
- getArguments() - Method in class org.apache.flink.test.util.JobSubmission
- getClientConfiguration() - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- getClientMode() - Method in class org.apache.flink.test.util.SQLJobSubmission
- getClientSecurityConfigurationMap() - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- getClusterClient() - Method in class org.apache.flink.test.util.MiniClusterWithClientResource
- getCounter(String...) - Method in class org.apache.flink.metrics.testutils.MetricListener
-
Get registered
Counter
with identifier relative to the root metric group. - getEmbeddedSqlClient() - Static method in interface org.apache.flink.test.util.SQLJobClientMode
- getEnumeratingVertices(int) - Static method in class org.apache.flink.test.testdata.ConnectedComponentsData
- getEnvProcessor() - Method in class org.apache.flink.test.util.SQLJobSubmission
- getErrorOutput() - Method in class org.apache.flink.test.util.TestProcessBuilder.TestProcess
- getExecutorFactory(Configuration) - Method in class org.apache.flink.test.util.MiniClusterPipelineExecutorServiceLoader
- getExecutorNames() - Method in class org.apache.flink.test.util.MiniClusterPipelineExecutorServiceLoader
- getGatewaySqlClient(String, int) - Static method in interface org.apache.flink.test.util.SQLJobClientMode
- getGauge(String...) - Method in class org.apache.flink.metrics.testutils.MetricListener
-
Get registered
Gauge
with identifier relative to the root metric group. - getHadoopServicePrincipal() - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- getHistogram(String...) - Method in class org.apache.flink.metrics.testutils.MetricListener
-
Get registered
Histogram
with identifier relative to the root metric group. - getHiveJDBC(String, int) - Static method in interface org.apache.flink.test.util.SQLJobClientMode
- getHost() - Method in class org.apache.flink.test.util.SQLJobClientMode.GatewayClientMode
- getInstance() - Static method in class org.apache.flink.test.streaming.runtime.util.TestListWrapper
- getJar() - Method in class org.apache.flink.test.util.JobSubmission
- getJars() - Method in class org.apache.flink.test.util.SQLJobSubmission
- getLastJobExecutionResult() - Method in class org.apache.flink.streaming.util.TestStreamEnvironment
- getLatestExecutionResult() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- getLatestExecutionResult() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- getList(int) - Method in class org.apache.flink.test.streaming.runtime.util.TestListWrapper
- getMainClass() - Method in class org.apache.flink.test.util.JobSubmission
- getMeter(String...) - Method in class org.apache.flink.metrics.testutils.MetricListener
-
Get registered
Meter
with identifier relative to the root metric group. - getMetric(Class<T>, String...) - Method in class org.apache.flink.metrics.testutils.MetricListener
-
Get registered
Metric
with identifier relative to the root metric group. - getMetricGroup() - Method in class org.apache.flink.metrics.testutils.MetricListener
-
Get the root metric group of this listener.
- getMostRecentCompletedCheckpoint(File) - Static method in class org.apache.flink.test.util.TestUtils
-
Deprecated.please use
CommonTestUtils.getLatestCompletedCheckpointPath(JobID, MiniCluster)
which is less prone toNoSuchFileException
and IO-intensive. - getMostRecentCompletedCheckpointMaybe(File) - Static method in class org.apache.flink.test.util.TestUtils
-
Deprecated.please use
CommonTestUtils.getLatestCompletedCheckpointPath(JobID, MiniCluster)
which is less prone toNoSuchFileException
and IO-intensive. - getNumberOfRecords(BufferedInputStream) - Static method in class org.apache.flink.connector.upserttest.sink.UpsertTestFileUtil
-
Returns the total number of records written using the
UpsertTestSinkWriter
to the given File. - getNumberOfRecords(File) - Static method in class org.apache.flink.connector.upserttest.sink.UpsertTestFileUtil
-
Returns the total number of records written using the
UpsertTestSinkWriter
to the given File. - getNumberSlots() - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- getParallelism() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- getParallelism() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- getParallelism() - Method in class org.apache.flink.test.util.JobSubmission
- getPort() - Method in class org.apache.flink.test.util.SQLJobClientMode.GatewayClientMode
- getProcess() - Method in class org.apache.flink.test.util.TestProcessBuilder.TestProcess
- getProcessOutput() - Method in class org.apache.flink.test.util.TestProcessBuilder.TestProcess
- getPropertyName() - Method in class org.apache.flink.test.parameters.ParameterProperty
- getRandomOddEvenEdges(int, int, long) - Static method in class org.apache.flink.test.testdata.ConnectedComponentsData
-
Creates random edges such that even numbered vertices are connected with even numbered vertices and odd numbered vertices only with other odd numbered ones.
- getRealm() - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- getResource(String) - Static method in class org.apache.flink.test.resources.ResourceTestUtils
-
Searches for a resource file matching the given regex in the given directory.
- getRestClient(String, int, String) - Static method in interface org.apache.flink.test.util.SQLJobClientMode
- getRestClusterClient() - Method in class org.apache.flink.test.util.MiniClusterWithClientResource
-
Returns a
RestClusterClient
that can be used to communicate with this mini cluster. - getRestEndpointVersion() - Method in class org.apache.flink.test.util.SQLJobClientMode.RestClient
- getResult() - Method in class org.apache.flink.test.streaming.runtime.util.TestListResultSink
- getResultReader(String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- getScriptExtension() - Static method in class org.apache.flink.test.util.ShellScript
- getSortedResult() - Method in class org.apache.flink.test.streaming.runtime.util.TestListResultSink
- getSqlLines() - Method in class org.apache.flink.test.util.SQLJobSubmission
- getTempDirPath(String) - Method in class org.apache.flink.test.util.AbstractTestBase
- getTempDirPath(String) - Method in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- getTempFilePath(String) - Method in class org.apache.flink.test.util.AbstractTestBase
- getTempFilePath(String) - Method in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- getTestKeytab() - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- getTestStreamEnvironment() - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- getTestStreamEnvironment() - Method in class org.apache.flink.test.util.MiniClusterWithClientResource
H
- HiveJDBC(String, int) - Constructor for class org.apache.flink.test.util.SQLJobClientMode.HiveJDBC
- HOST_NAME - Static variable in class org.apache.flink.test.util.SecureTestEnvironment
I
- IDENTIFIER - Static variable in class org.apache.flink.connector.upserttest.table.UpsertTestDynamicTableSinkFactory
- INITIAL_CENTERS - Static variable in class org.apache.flink.test.testdata.KMeansData
- INITIAL_CENTERS_2D - Static variable in class org.apache.flink.test.testdata.KMeansData
- InjectClusterClient - Annotation Type in org.apache.flink.test.junit5
-
Annotate a test method parameter with this annotation to inject the
ClusterClient
or theRestClusterClient
instance. - install(SecurityConfiguration, Map<String, TestingSecurityContext.ClientSecurityConfiguration>) - Static method in class org.apache.flink.test.util.TestingSecurityContext
- INSTANCE - Static variable in class org.apache.flink.test.util.SQLJobClientMode.EmbeddedSqlClient
- invoke(T) - Method in class org.apache.flink.test.streaming.runtime.util.TestListResultSink
- isCloseTo(long, long) - Method in class org.apache.flink.metrics.testutils.MetricAssertions.GaugeAssert
-
Verifies that the gauges value is close to the expected value within a certain deviation.
- isCollectionExecution() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- isDetached() - Method in class org.apache.flink.test.util.JobSubmission
- isEqualTo(Object) - Method in class org.apache.flink.metrics.testutils.MetricAssertions.CounterAssert
- isEqualTo(Object) - Method in class org.apache.flink.metrics.testutils.MetricAssertions.GaugeAssert
-
Verifies that the gauges value is equal to the expected one.
- isRunning() - Method in class org.apache.flink.test.junit5.MiniClusterExtension
J
- JavaProgramTestBase - Class in org.apache.flink.test.util
-
Base class for unit tests that run a single test with object reuse enabled/disabled and against collection environments.
- JavaProgramTestBase() - Constructor for class org.apache.flink.test.util.JavaProgramTestBase
- JavaProgramTestBaseJUnit4 - Class in org.apache.flink.test.util
-
Deprecated.Use
JavaProgramTestBase
instead. - JavaProgramTestBaseJUnit4() - Constructor for class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- JobSubmission - Class in org.apache.flink.test.util
-
Programmatic definition of a job-submission.
- JobSubmission.JobSubmissionBuilder - Class in org.apache.flink.test.util
-
Builder for the
JobSubmission
. - JobSubmissionBuilder(Path) - Constructor for class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
K
- KEY_FORMAT_OPTION - Static variable in class org.apache.flink.connector.upserttest.table.UpsertTestConnectorOptions
- KMeansData - Class in org.apache.flink.test.testdata
-
Test data for KMeans programs.
L
- loadCheckpointMetadata(String) - Static method in class org.apache.flink.test.util.TestUtils
- LOG - Static variable in class org.apache.flink.test.util.SecureTestEnvironment
M
- MetricAssertions - Class in org.apache.flink.metrics.testutils
-
This class provides access to AssertJ assertions for
Metric
s. - MetricAssertions() - Constructor for class org.apache.flink.metrics.testutils.MetricAssertions
- MetricAssertions.CounterAssert - Class in org.apache.flink.metrics.testutils
-
This class provides AssertJ assertions for
Counter
s. - MetricAssertions.GaugeAssert<T> - Class in org.apache.flink.metrics.testutils
-
This class provides AssertJ assertions for
Gauge
s. - MetricListener - Class in org.apache.flink.metrics.testutils
-
A MetricListener listens metric and group registration under the provided root metric group, and stores them in an internal HashMap for fetching.
- MetricListener() - Constructor for class org.apache.flink.metrics.testutils.MetricListener
- MINI_CLUSTER_EXTENSION - Static variable in class org.apache.flink.test.util.AbstractTestBase
- MINI_CLUSTER_RESOURCE - Static variable in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- MiniClusterExtension - Class in org.apache.flink.test.junit5
-
Starts a Flink
MiniCluster
and registers theStreamExecutionEnvironment
in the correct thread local environment. - MiniClusterExtension() - Constructor for class org.apache.flink.test.junit5.MiniClusterExtension
- MiniClusterExtension(Supplier<MiniClusterResourceConfiguration>) - Constructor for class org.apache.flink.test.junit5.MiniClusterExtension
- MiniClusterExtension(MiniClusterResourceConfiguration) - Constructor for class org.apache.flink.test.junit5.MiniClusterExtension
- MiniClusterPipelineExecutorServiceLoader - Class in org.apache.flink.test.util
-
A
PipelineExecutorServiceLoader
that is hardwired to returnPipelineExecutors
that use a givenMiniCluster
. - MiniClusterPipelineExecutorServiceLoader(MiniCluster) - Constructor for class org.apache.flink.test.util.MiniClusterPipelineExecutorServiceLoader
- MiniClusterWithClientResource - Class in org.apache.flink.test.util
-
Starts a Flink mini cluster as a resource and registers the StreamExecutionEnvironment.
- MiniClusterWithClientResource(MiniClusterResourceConfiguration) - Constructor for class org.apache.flink.test.util.MiniClusterWithClientResource
- mode - Variable in class org.apache.flink.test.util.MultipleProgramsTestBase
- mode - Variable in class org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4
-
Deprecated.
- MultipleProgramsTestBase - Class in org.apache.flink.test.util
-
Base class for unit tests that run multiple tests and want to reuse the same Flink cluster.
- MultipleProgramsTestBase() - Constructor for class org.apache.flink.test.util.MultipleProgramsTestBase
- MultipleProgramsTestBase.TestExecutionMode - Enum in org.apache.flink.test.util
-
Enum that defines which execution environment to run the next test on: An embedded local flink cluster, or the collection execution backend.
- MultipleProgramsTestBaseJUnit4 - Class in org.apache.flink.test.util
-
Deprecated.Use
MultipleProgramsTestBase
instead. - MultipleProgramsTestBaseJUnit4(MultipleProgramsTestBaseJUnit4.TestExecutionMode) - Constructor for class org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4
-
Deprecated.
- MultipleProgramsTestBaseJUnit4.TestExecutionMode - Enum in org.apache.flink.test.util
-
Deprecated.Enum that defines which execution environment to run the next test on: An embedded local flink cluster, or the collection execution backend.
N
- NAME - Static variable in class org.apache.flink.test.util.MiniClusterPipelineExecutorServiceLoader
- notifyCheckpointAborted(long) - Method in class org.apache.flink.streaming.util.FiniteTestSource
- notifyCheckpointComplete(long) - Method in class org.apache.flink.streaming.util.FiniteTestSource
- NUM_VERTICES - Static variable in class org.apache.flink.test.testdata.PageRankData
O
- open(OpenContext) - Method in class org.apache.flink.test.streaming.runtime.util.TestListResultSink
- optionalOptions() - Method in class org.apache.flink.connector.upserttest.table.UpsertTestDynamicTableSinkFactory
- org.apache.flink.connector.upserttest.sink - package org.apache.flink.connector.upserttest.sink
- org.apache.flink.connector.upserttest.table - package org.apache.flink.connector.upserttest.table
- org.apache.flink.metrics.testutils - package org.apache.flink.metrics.testutils
- org.apache.flink.packaging - package org.apache.flink.packaging
- org.apache.flink.streaming.util - package org.apache.flink.streaming.util
- org.apache.flink.test.junit5 - package org.apache.flink.test.junit5
- org.apache.flink.test.parameters - package org.apache.flink.test.parameters
- org.apache.flink.test.resources - package org.apache.flink.test.resources
- org.apache.flink.test.streaming.runtime.util - package org.apache.flink.test.streaming.runtime.util
- org.apache.flink.test.testdata - package org.apache.flink.test.testdata
- org.apache.flink.test.util - package org.apache.flink.test.util
- org.apache.flink.types - package org.apache.flink.types
- OUTPUT_FILEPATH_OPTION - Static variable in class org.apache.flink.connector.upserttest.table.UpsertTestConnectorOptions
P
- PackagingTestUtils - Class in org.apache.flink.packaging
-
Test utils around jar packaging.
- PackagingTestUtils() - Constructor for class org.apache.flink.packaging.PackagingTestUtils
- PageRankData - Class in org.apache.flink.test.testdata
-
Test data for PageRank programs.
- ParameterProperty<V> - Class in org.apache.flink.test.parameters
-
System-property based parameters for tests and resources.
- ParameterProperty(String, Function<String, V>) - Constructor for class org.apache.flink.test.parameters.ParameterProperty
- PojoTestUtils - Class in org.apache.flink.types
-
Test utils around POJOs.
- PojoTestUtils() - Constructor for class org.apache.flink.types.PojoTestUtils
- populateFlinkSecureConfigurations(Configuration) - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- postSubmit() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- postSubmit() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- prepare(File, String...) - Static method in class org.apache.flink.test.util.SecureTestEnvironment
- preSubmit() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- preSubmit() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
R
- RANKS - Static variable in class org.apache.flink.test.testdata.WebLogAnalysisData
- RANKS_AFTER_3_ITERATIONS - Static variable in class org.apache.flink.test.testdata.PageRankData
- RANKS_AFTER_EPSILON_0_0001_CONVERGENCE - Static variable in class org.apache.flink.test.testdata.PageRankData
- readAllResultLines(List<String>, String) - Static method in class org.apache.flink.test.util.TestBaseUtils
- readRecords(BufferedInputStream, DeserializationSchema<K>, DeserializationSchema<V>) - Static method in class org.apache.flink.connector.upserttest.sink.UpsertTestFileUtil
-
Reads records that were written using the
UpsertTestSinkWriter
from the given InputStream and converts them using the providedDeserializationSchema
s. - readRecords(File, DeserializationSchema<K>, DeserializationSchema<V>) - Static method in class org.apache.flink.connector.upserttest.sink.UpsertTestFileUtil
-
Reads records that were written using the
UpsertTestSinkWriter
from the given File and converts them using the providedDeserializationSchema
s. - replace(Path, Pattern, Function<Matcher, String>) - Static method in class org.apache.flink.test.util.FileUtils
- requiredOptions() - Method in class org.apache.flink.connector.upserttest.table.UpsertTestDynamicTableSinkFactory
- resolveParameter(ParameterContext, ExtensionContext) - Method in class org.apache.flink.test.junit5.MiniClusterExtension
- ResourceTestUtils - Class in org.apache.flink.test.resources
-
Test utils around module resources.
- ResourceTestUtils() - Constructor for class org.apache.flink.test.resources.ResourceTestUtils
- RestClient(String, int, String) - Constructor for class org.apache.flink.test.util.SQLJobClientMode.RestClient
- ROOT_METRIC_GROUP_NAME - Static variable in class org.apache.flink.metrics.testutils.MetricListener
- run(SourceFunction.SourceContext<T>) - Method in class org.apache.flink.streaming.util.FiniteTestSource
S
- SecureTestEnvironment - Class in org.apache.flink.test.util
-
Helper
SecureTestEnvironment
to handle MiniKDC lifecycle. - SecureTestEnvironment() - Constructor for class org.apache.flink.test.util.SecureTestEnvironment
- setAsContext() - Method in class org.apache.flink.streaming.util.TestStreamEnvironment
- setAsContext(MiniCluster, int) - Static method in class org.apache.flink.streaming.util.TestStreamEnvironment
-
Sets the streaming context environment to a TestStreamEnvironment that runs its programs on the given cluster with the given default parallelism.
- setAsContext(MiniCluster, int, Collection<Path>, Collection<URL>) - Static method in class org.apache.flink.streaming.util.TestStreamEnvironment
-
Sets the streaming context environment to a TestStreamEnvironment that runs its programs on the given cluster with the given default parallelism and the specified jar files and class paths.
- setClientMode(SQLJobClientMode) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- setDetached(boolean) - Method in class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
-
Sets whether the job should be submitted in a detached manner.
- setEnvProcessor(Consumer<Map<String, String>>) - Method in class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- setJvmMemory(MemorySize) - Method in class org.apache.flink.test.util.TestProcessBuilder
- setKeySerializationSchema(SerializationSchema<IN>) - Method in class org.apache.flink.connector.upserttest.sink.UpsertTestSinkBuilder
-
Sets the key
SerializationSchema
that transforms incoming records to byte[]. - setMainClass(String) - Method in class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
-
Sets the main class for the job.
- setNumberOfTestRepetitions(int) - Method in class org.apache.flink.test.util.JavaProgramTestBase
- setNumberOfTestRepetitions(int) - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- setOutputFile(File) - Method in class org.apache.flink.connector.upserttest.sink.UpsertTestSinkBuilder
-
Sets the output
File
to write to. - setParallelism(int) - Method in class org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
-
Sets the parallelism for the job.
- setupEnvironment() - Method in class org.apache.flink.test.util.MultipleProgramsTestBase
- setupEnvironment() - Method in class org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4
-
Deprecated.
- setValueSerializationSchema(SerializationSchema<IN>) - Method in class org.apache.flink.connector.upserttest.sink.UpsertTestSinkBuilder
-
Sets the value
SerializationSchema
that transforms incoming records to byte[]. - ShellScript - Class in org.apache.flink.test.util
-
ShellScript for creating shell script on linux and windows.
- ShellScript() - Constructor for class org.apache.flink.test.util.ShellScript
- ShellScript.ShellScriptBuilder - Class in org.apache.flink.test.util
-
Builder to create shell script.
- ShellScriptBuilder() - Constructor for class org.apache.flink.test.util.ShellScript.ShellScriptBuilder
- skipCollectionExecution() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- skipCollectionExecution() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- SQLJobClientMode - Interface in org.apache.flink.test.util
-
Use which client to submit job.
- SQLJobClientMode.EmbeddedSqlClient - Class in org.apache.flink.test.util
-
Use the Sql Client embedded mode to submit jobs.
- SQLJobClientMode.GatewayClientMode - Class in org.apache.flink.test.util
-
The base gateway mode to submit jobs.
- SQLJobClientMode.GatewaySqlClient - Class in org.apache.flink.test.util
-
Uses the Sql Client gateway mode to submit jobs.
- SQLJobClientMode.HiveJDBC - Class in org.apache.flink.test.util
-
Uses the Hive JDBC to submit jobs.
- SQLJobClientMode.RestClient - Class in org.apache.flink.test.util
-
Uses a REST Client to submit jobs.
- SQLJobSubmission - Class in org.apache.flink.test.util
-
Programmatic definition of a SQL job-submission.
- SQLJobSubmission.SQLJobSubmissionBuilder - Class in org.apache.flink.test.util
-
Builder for the
SQLJobSubmission
. - SQLJobSubmissionBuilder(List<String>) - Constructor for class org.apache.flink.test.util.SQLJobSubmission.SQLJobSubmissionBuilder
- start() - Method in class org.apache.flink.test.util.TestProcessBuilder
- STREAMING_COUNTS_AS_TUPLES - Static variable in class org.apache.flink.test.testdata.WordCountData
- submitJobAndWaitForResult(ClusterClient<?>, JobGraph, ClassLoader) - Static method in class org.apache.flink.test.util.TestUtils
- SuccessException - Exception in org.apache.flink.test.util
-
Exception that is thrown to terminate a program and indicate success.
- SuccessException() - Constructor for exception org.apache.flink.test.util.SuccessException
- supportsParameter(ParameterContext, ExtensionContext) - Method in class org.apache.flink.test.junit5.MiniClusterExtension
T
- teardownEnvironment() - Method in class org.apache.flink.test.util.MultipleProgramsTestBase
- teardownEnvironment() - Method in class org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4
-
Deprecated.
- TEMPORARY_FOLDER - Static variable in class org.apache.flink.test.util.AbstractTestBaseJUnit4
-
Deprecated.
- temporaryFolder - Variable in class org.apache.flink.test.util.AbstractTestBase
- TestBaseUtils - Class in org.apache.flink.test.util
-
Utility class containing various methods for testing purposes.
- TestBaseUtils() - Constructor for class org.apache.flink.test.util.TestBaseUtils
- TestBaseUtils.TupleComparator<T extends org.apache.flink.api.java.tuple.Tuple> - Class in org.apache.flink.test.util
-
Comparator for comparable Tuples.
- TestingSecurityContext - Class in org.apache.flink.test.util
-
Test security context to support handling both client and server principals in MiniKDC.
- TestingSecurityContext() - Constructor for class org.apache.flink.test.util.TestingSecurityContext
- testJobWithObjectReuse() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- testJobWithObjectReuse() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- testJobWithoutObjectReuse() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- testJobWithoutObjectReuse() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- TestListResultSink<T> - Class in org.apache.flink.test.streaming.runtime.util
-
Thread-safe sink for collecting elements into an on-heap list.
- TestListResultSink() - Constructor for class org.apache.flink.test.streaming.runtime.util.TestListResultSink
- TestListWrapper - Class in org.apache.flink.test.streaming.runtime.util
-
Catalog for lists stored by
TestListResultSink
. - TestProcess(Process, StringWriter, StringWriter) - Constructor for class org.apache.flink.test.util.TestProcessBuilder.TestProcess
- TestProcessBuilder - Class in org.apache.flink.test.util
-
Utility class wrapping
ProcessBuilder
and pre-configuring it with common options. - TestProcessBuilder(String) - Constructor for class org.apache.flink.test.util.TestProcessBuilder
- TestProcessBuilder.TestProcess - Class in org.apache.flink.test.util
-
Process
with it'sprocessOutput
. - testProgram() - Method in class org.apache.flink.test.util.JavaProgramTestBase
- testProgram() - Method in class org.apache.flink.test.util.JavaProgramTestBaseJUnit4
-
Deprecated.
- TestStreamEnvironment - Class in org.apache.flink.streaming.util
-
A
StreamExecutionEnvironment
that executes its jobs onMiniCluster
. - TestStreamEnvironment(MiniCluster, int) - Constructor for class org.apache.flink.streaming.util.TestStreamEnvironment
- TestStreamEnvironment(MiniCluster, Configuration, int, Collection<Path>, Collection<URL>) - Constructor for class org.apache.flink.streaming.util.TestStreamEnvironment
- TestUtils - Class in org.apache.flink.test.util
-
Test utilities.
- TestUtils() - Constructor for class org.apache.flink.test.util.TestUtils
- TEXT - Static variable in class org.apache.flink.test.testdata.WordCountData
- TransitiveClosureData - Class in org.apache.flink.test.testdata
-
Test data for TransitiveClosure programs.
- TRIANGLES_BY_DEGREE - Static variable in class org.apache.flink.test.testdata.EnumTriangleData
- TRIANGLES_BY_ID - Static variable in class org.apache.flink.test.testdata.EnumTriangleData
- tryExecute(StreamExecutionEnvironment, String) - Static method in class org.apache.flink.test.util.TestUtils
-
Execute the job and wait for the job result synchronously.
- TupleComparator() - Constructor for class org.apache.flink.test.util.TestBaseUtils.TupleComparator
U
- unsetAsContext() - Static method in class org.apache.flink.streaming.util.TestStreamEnvironment
-
Resets the streaming context environment to null.
- updateConfigurationForMiniCluster(Configuration, Collection<Path>, Collection<URL>) - Static method in class org.apache.flink.test.util.MiniClusterPipelineExecutorServiceLoader
-
Populates a
Configuration
that is compatible with thisMiniClusterPipelineExecutorServiceLoader
. - UpsertTestConnectorOptions - Class in org.apache.flink.connector.upserttest.table
-
Options for the UpsertTestConnector.
- UpsertTestConnectorOptions() - Constructor for class org.apache.flink.connector.upserttest.table.UpsertTestConnectorOptions
- UpsertTestDynamicTableSinkFactory - Class in org.apache.flink.connector.upserttest.table
-
A
DynamicTableSinkFactory
for discoveringUpsertTestDynamicTableSink
. - UpsertTestDynamicTableSinkFactory() - Constructor for class org.apache.flink.connector.upserttest.table.UpsertTestDynamicTableSinkFactory
- UpsertTestFileUtil - Class in org.apache.flink.connector.upserttest.sink
-
Collection uf utility methods for reading and writing files from the
UpsertTestSink
. - UpsertTestSink<IN> - Class in org.apache.flink.connector.upserttest.sink
-
Flink Sink to upsert test data into a file.
- UpsertTestSinkBuilder<IN> - Class in org.apache.flink.connector.upserttest.sink
-
Builder to construct
UpsertTestSink
. - UpsertTestSinkBuilder() - Constructor for class org.apache.flink.connector.upserttest.sink.UpsertTestSinkBuilder
V
- VALUE_FORMAT_OPTION - Static variable in class org.apache.flink.connector.upserttest.table.UpsertTestConnectorOptions
- valueOf(String) - Static method in enum org.apache.flink.test.util.MultipleProgramsTestBase.TestExecutionMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4.TestExecutionMode
-
Deprecated.Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.flink.test.util.MultipleProgramsTestBase.TestExecutionMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.apache.flink.test.util.MultipleProgramsTestBaseJUnit4.TestExecutionMode
-
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
- VERTICES - Static variable in class org.apache.flink.test.testdata.PageRankData
- VISITS - Static variable in class org.apache.flink.test.testdata.WebLogAnalysisData
W
- waitUntil(Supplier<Boolean>, String) - Static method in class org.apache.flink.test.util.TestUtils
-
Wait util the give condition is met or timeout is reached, whichever comes first.
- waitUntil(Supplier<Boolean>, Duration, String) - Static method in class org.apache.flink.test.util.TestUtils
-
Wait util the give condition is met or timeout is reached, whichever comes first.
- waitUntilAllTasksAreRunning(RestClusterClient<?>, JobID) - Static method in class org.apache.flink.test.util.TestUtils
-
Wait util all task of a job turns into RUNNING state.
- waitUntilExternalizedCheckpointCreated(File) - Static method in class org.apache.flink.test.util.TestUtils
-
Deprecated.please use
org.apache.flink.runtime.testutils.CommonTestUtils#waitForCheckpoint(JobID, MiniCluster, Deadline)
which is less prone toNoSuchFileException
and IO-intensive. - waitUntilJobCanceled(JobID, ClusterClient<?>) - Static method in class org.apache.flink.test.util.TestUtils
- WebLogAnalysisData - Class in org.apache.flink.test.testdata
-
Test data for WebLogAnalysis programs.
- withCleanEnvironment() - Method in class org.apache.flink.test.util.TestProcessBuilder
- WordCountData - Class in org.apache.flink.test.testdata
- write(File) - Method in class org.apache.flink.test.util.ShellScript.ShellScriptBuilder
- writeRecords(BufferedOutputStream, Map<ImmutableByteArrayWrapper, ImmutableByteArrayWrapper>) - Static method in class org.apache.flink.connector.upserttest.sink.UpsertTestFileUtil
-
Writes a Map of records serialized by the
UpsertTestSinkWriter
to the given BufferedOutputStream.
All Classes All Packages