name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
flink_DateComparator_compareSerializedDate_rdh
// -------------------------------------------------------------------------------------------- // Static Helpers for Date Comparison // -------------------------------------------------------------------------------------------- public static int compareSerializedDate(DataInputView firstSource, DataInputView secondSo...
3.26
flink_WindowTableFunctionUtil_createWindowAssigner_rdh
/** * Creates window assigner based on input window strategy. * * @param windowingStrategy * input window strategy * @return new created window assigner */ public static WindowAssigner<TimeWindow> createWindowAssigner(TimeAttributeWindowingStrategy windowingStrategy) { WindowSpec windowSpec = windowingStra...
3.26
flink_CliFrontend_buildProgram_rdh
/** * Creates a Packaged program from the given command line options and the * effectiveConfiguration. * * @return A PackagedProgram (upon success) */ PackagedProgram buildProgram(final ProgramOptions runOptions, final Configuration configuration) throws FileNotFoundException, ProgramInvocationException, CliArgsEx...
3.26
flink_CliFrontend_handleError_rdh
/** * Displays an exception message. * * @param t * The exception to display. * @return The return code for the process. */ private static int handleError(Throwable t) { LOG.error("Error while running the command.", t); System.err.println(); System.err.println("-------------------------------------------------...
3.26
flink_CliFrontend_cancel_rdh
/** * Executes the CANCEL action. * * @param args * Command line arguments for the cancel action. */ protected void cancel(String[] args) throws Exception { LOG.info("Running 'cancel' command."); final Options commandOptions = CliFrontendParser.getCancelCommandOptions(); final CommandLine commandLine = getComman...
3.26
flink_CliFrontend_m1_rdh
// -------------------------------------------------------------------------------------------- // Custom command-line // -------------------------------------------------------------------------------------------- /** * Gets the custom command-line for the arguments. * * @param commandLine * The input to the com...
3.26
flink_CliFrontend_runApplication_rdh
// -------------------------------------------------------------------------------------------- // Execute Actions // -------------------------------------------------------------------------------------------- protected void runApplication(String[] args) throws Exception {LOG.info("Running 'run-application' command.")...
3.26
flink_CliFrontend_getJobJarAndDependencies_rdh
/** * Get all provided libraries needed to run the program from the ProgramOptions. */ private List<URL> getJobJarAndDependencies(ProgramOptions programOptions) throws CliArgsException { String entryPointClass = programOptions.getEntryPointClassName(); String jarFilePath = programOptions.ge...
3.26
flink_CliFrontend_stop_rdh
/** * Executes the STOP action. * * @param args * Command line arguments for the stop action. */ protected void stop(String[] args) throws Exception { LOG.info("Running 'stop-with-savepoint' command."); final Options commandOptions = CliFrontendParser.getStopCommandOptions(); final CommandLine commandLine = getC...
3.26
flink_CliFrontend_handleArgException_rdh
// -------------------------------------------------------------------------------------------- // Logging and Exception Handling // -------------------------------------------------------------------------------------------- /** * Displays an exception message for incorrect command line arguments. * * @param e * ...
3.26
flink_CliFrontend_getDefaultParallelism_rdh
/** * Get default parallelism from command line via effective configuration. * * @param effectiveConfiguration * Flink effective configuration. * @return default parallelism. */ private int getDefaultParallelism(Configuration effectiveConfiguration) { return effectiveConfiguration.get(CoreOptions.DEFAULT_PARAL...
3.26
flink_CliFrontend_parseAndRun_rdh
// -------------------------------------------------------------------------------------------- // Entry point for executable // -------------------------------------------------------------------------------------------- /** * Parses the command line arguments and starts the requested action. * * @param args * c...
3.26
flink_CliFrontend_handleParametrizationException_rdh
/** * Displays an optional exception message for incorrect program parametrization. * * @param e * The exception to display. * @return The return code for the process. */ private static int handleParametrizationException(ProgramParametrizationException e) {LOG.error("Program has not been parametrized properly."...
3.26
flink_CliFrontend_m2_rdh
/** * Get client timeout from command line via effective configuration. * * @param effectiveConfiguration * Flink effective configuration. * @return client timeout with Duration type */ private Duration m2(Configuration effectiveConfiguration) { return effectiveConfiguration.get(ClientOptions.CLIENT_TIMEOUT); }
3.26
flink_CliFrontend_getJarFile_rdh
/** * Gets the JAR file from the path. * * @param jarFilePath * The path of JAR file * @return The JAR file * @throws FileNotFoundException * The JAR file does not exist. */ private File getJarFile(String jarFilePath) throws FileNotFoundException { File v89 = new File(jarFilePath); // Check if JAR file exis...
3.26
flink_CliFrontend_loadCustomCommandLine_rdh
/** * Loads a class from the classpath that implements the CustomCommandLine interface. * * @param className * The fully-qualified class name to load. * @param params * The constructor parameters */ private static CustomCommandLine loadCustomCommandLine(String className, Object... params) throws Exception ...
3.26
flink_CliFrontend_setJobManagerAddressInConfig_rdh
/** * Writes the given job manager address to the associated configuration object. * * @param address * Address to write to the configuration * @param config * The configuration to write to */ static void setJobManagerAddressInConfig(Configuration config, InetSocketAddress address) { config.setString(JobMana...
3.26
flink_CliFrontend_executeProgram_rdh
// -------------------------------------------------------------------------------------------- // Interaction with programs and JobManager // -------------------------------------------------------------------------------------------- protected void executeProgram(final Configuration configuration, final PackagedProgr...
3.26
flink_CliFrontend_savepoint_rdh
/** * Executes the SAVEPOINT action. * * @param args * Command line arguments for the savepoint action. */ protected void savepoint(String[] args) throws Exception { LOG.info("Running 'savepoint' command."); final Options commandOptions = CliFrontendParser.getSavepointCommandOptions(); final CommandLine commandL...
3.26
flink_CliFrontend_handleMissingJobException_rdh
/** * Displays a message for a program without a job to execute. * * @return The return code for the process. */ private static int handleMissingJobException() { System.err.println(); System.err.println("The program didn't contain a Flink job. " + "Perhaps you forgot to call execute() on the execution environment."...
3.26
flink_CliFrontend_disposeSavepoint_rdh
/** * Sends a SavepointDisposalRequest to the job manager. */ private void disposeSavepoint(ClusterClient<?> clusterClient, String savepointPath, Duration clientTimeout) throws FlinkException { checkNotNull(savepointPath, "Missing required argument: savepoint path. " + "Usage: bin/flink savepoint -d <savepoint-path>"...
3.26
flink_CliFrontend_triggerSavepoint_rdh
/** * Sends a SavepointTriggerMessage to the job manager. */ private void triggerSavepoint(ClusterClient<?> clusterClient, JobID jobId, String savepointDirectory, SavepointFormatType formatType, Duration clientTimeout) throws FlinkException { logAndSysout(("Triggering savepoint for job " + jobId) + '.'); CompletableF...
3.26
flink_CliFrontend_info_rdh
/** * Executes the info action. * * @param args * Command line arguments for the info action. */ protected void info(String[] args) throws Exception { LOG.info("Running 'info' command."); final Options commandOptions = CliFrontendParser.getInfoCommandOptions(); final CommandLine commandLine = getCommandLine(c...
3.26
flink_CliFrontend_list_rdh
/** * Executes the list action. * * @param args * Command line arguments for the list action. */ protected void list(String[] args) throws Exception { LOG.info("Running 'list' command."); final Options commandOptions = CliFrontendParser.getListCommandOptions(); final CommandLine commandLine = getCommandLine(comm...
3.26
flink_CliFrontend_runClusterAction_rdh
/** * Retrieves the {@link ClusterClient} from the given {@link CustomCommandLine} and runs the * given {@link ClusterAction} against it. * * @param activeCommandLine * to create the {@link ClusterDescriptor} from * @param commandLine * containing the parsed command line options * @param clusterAction * ...
3.26
flink_CliFrontend_run_rdh
/** * Executions the run action. * * @param args * Command line arguments for the run action. */ protected void run(String[] args) throws Exception { LOG.info("Running 'run' command."); final Options commandOptions = CliFrontendParser.getRunCommandOptions(); final CommandLine commandLine = getCommand...
3.26
flink_CliFrontend_main_rdh
/** * Submits the job based on the arguments. */ public static void main(final String[] args) { int retCode = INITIAL_RET_CODE; try { retCode = mainInternal(args); } finally { System.exit(retCode); } }
3.26
flink_SessionWindowAssigner_withGap_rdh
// ------------------------------------------------------------------------ // Utilities // ------------------------------------------------------------------------ /** * Creates a new {@code SessionWindowAssigner} {@link WindowAssigner} that assigns elements to * sessions based on the timestamp. * * @param size *...
3.26
flink_SessionWindowAssigner_mergeWindow_rdh
/** * Merge curWindow and other, return a new window which covers curWindow and other if they are * overlapped. Otherwise, returns the curWindow itself. */ private TimeWindow mergeWindow(TimeWindow curWindow, TimeWindow other, Collection<TimeWindow> mergedWindow) {if (curWindow.intersects(other)) { mergedWindow....
3.26
flink_ValueComparator_supportsSerializationWithKeyNormalization_rdh
// -------------------------------------------------------------------------------------------- // unsupported normalization // -------------------------------------------------------------------------------------------- @Override public boolean supportsSerializationWithKeyNormalization() { return false; }
3.26
flink_DataGenerator_snapshotState_rdh
/** * Snapshot state for {@link DataGenerator}. See {@link CheckpointedFunction#snapshotState}. */ default void snapshotState(FunctionSnapshotContext context) throws Exception { }
3.26
flink_ServerConnection_sendRequest_rdh
/** * Returns a future holding the serialized request result. * * @param request * the request to be sent. * @return Future holding the serialized result */ @Override public CompletableFuture<RESP> sendRequest(REQ request) { synchronized(lock) { if (running) { EstablishedConnection.Times...
3.26
flink_ServerConnection_createEstablishedConnection_rdh
/** * Creates an established connection from the given channel. * * @param channel * Channel to create an established connection from */ private InternalConnection<REQ, RESP> createEstablishedConnection(Channel channel) { if ((failureCause != null) || (!running)) { // Close the channel and we are done. Any q...
3.26
flink_ServerConnection_close_rdh
/** * Close the channel with a cause. * * @param cause * The cause to close the channel with. * @return Channel close future */ private CompletableFuture<Void> close(final Throwable cause) { synchronized(lock) { if (running) { running = false; channel.close().addListener(finished -> { ...
3.26
flink_PoissonSampler_sample_rdh
/** * Sample the input elements, for each input element, generate its count following a poisson * distribution. * * @param input * Elements to be sampled. * @return The sampled result which is lazy computed upon input elements. */ @Override public Iterator<T> sample(final Iterator<T> input) { if (fraction...
3.26
flink_IntegerResourceVersion_valueOf_rdh
/** * Create a {@link IntegerResourceVersion} with given integer value. * * @param value * resource version integer value. The value should not be negative. * @return {@link IntegerResourceVersion} with given value. */ public static IntegerResourceVersion valueOf(int value) { Preconditions.checkArgument(va...
3.26
flink_HadoopDummyReporter_getProgress_rdh
// There should be an @Override, but some CDH4 dependency does not contain this method public float getProgress() { return 0;}
3.26
flink_CliView_isRunning_rdh
// -------------------------------------------------------------------------------------------- protected boolean isRunning() { return isRunning; }
3.26
flink_CliView_resetMainPart_rdh
/** * Must be called when values in the main part (main header or main) have changed. */protected void resetMainPart() { mainHeaderLines = null; mainLines = null; totalMainWidth = 0; }
3.26
flink_CliView_getTerminalWidth_rdh
// -------------------------------------------------------------------------------------------- public int getTerminalWidth() { if (TerminalUtils.isPlainTerminal(terminal)) { return f0; } return terminal.getWidth(); }
3.26
flink_CliView_resetAllParts_rdh
/** * Must be called when values in one or more parts have changed. */ protected void resetAllParts() { titleLine = null; headerLines = null; mainHeaderLines = null;mainLines = null; footerLines = null; totalMainWidth = 0; }
3.26
flink_SplittableIterator_getSplit_rdh
/** * Splits this iterator into <i>n</i> partitions and returns the <i>i-th</i> partition out of * those. * * @param num * The partition to return (<i>i</i>). * @param numPartitions * The number of partitions to split into (<i>n</i>). * @return The iterator for the partition. */ public Iterator<T> getSplit...
3.26
flink_RequestSplitEvent_hostName_rdh
// ------------------------------------------------------------------------ @Nullable public String hostName() { return hostName; }
3.26
flink_RequestSplitEvent_hashCode_rdh
// ------------------------------------------------------------------------ @Override public int hashCode() { return 65932633 + Objects.hashCode(hostName); }
3.26
flink_ClusterOverview_equals_rdh
// ------------------------------------------------------------------------ @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (obj instanceof ClusterOverview) { ClusterOverview that = ((ClusterOverview) (obj)); return ((((((((...
3.26
flink_ThreadInfoSamplesRequest_m0_rdh
/** * Returns the configured delay between the individual samples. * * @return the delay between the individual samples. */ public Duration m0() { return delayBetweenSamples; }
3.26
flink_ThreadInfoSamplesRequest_getMaxStackTraceDepth_rdh
/** * Returns the configured maximum depth of the collected stack traces. * * @return the maximum depth of the collected stack traces. */ public int getMaxStackTraceDepth() { return maxStackTraceDepth; }
3.26
flink_ThreadInfoSamplesRequest_getNumSamples_rdh
/** * Returns the number of samples that are requested to be collected. * * @return the number of requested samples. */ public int getNumSamples() { return numSubSamples; }
3.26
flink_NonReusingBlockResettableIterator_reopen_rdh
// ------------------------------------------------------------------------ public void reopen(Iterator<T> input) throws IOException { this.input = input; this.noMoreBlocks = false; this.closed = false; nextBlock(); }
3.26
flink_PeriodicMaterializationManager_close_rdh
// task thread and task canceler can access this method public synchronized void close() { LOG.info("Shutting down PeriodicMaterializationManager."); if (!periodicExecutor.isShutdown()) {periodicExecutor.shutdownNow(); } }
3.26
flink_PeriodicMaterializationManager_scheduleNextMaterialization_rdh
// task thread and asyncOperationsThreadPool can access this method private synchronized void scheduleNextMaterialization(long delay) { if (started && (!periodicExecutor.isShutdown())) { LOG.info("Task {} schedules the next materialization in {} seconds", f0, delay / 1000); periodicExecutor.schedule(this::triggerMateri...
3.26
flink_CollectionDataType_ensureArrayConversionClass_rdh
// -------------------------------------------------------------------------------------------- private static Class<?> ensureArrayConversionClass(LogicalType logicalType, DataType elementDataType, @Nullable Class<?> clazz) { // arrays are a special case because their default conversion class depends on the // ...
3.26
flink_DefaultExecutionGraph_registerJobStatusListener_rdh
// Listeners & Observers // -------------------------------------------------------------------------------------------- @Override public void registerJobStatusListener(JobStatusListener listener) { if (listener != null) { jobStatusListeners.add(listener); } }
3.26
flink_DefaultExecutionGraph_updateState_rdh
// -------------------------------------------------------------------------------------------- // Callbacks and Callback Utilities // -------------------------------------------------------------------------------------------- @Override public boolean updateState(TaskExecutionStateTransition state) { assertRunningInJo...
3.26
flink_DefaultExecutionGraph_m1_rdh
/** * Returns the a stringified version of the user-defined accumulators. * * @return an Array containing the StringifiedAccumulatorResult objects */ @Override public StringifiedAccumulatorResult[] m1() { Map<String, OptionalFailure<Accumulator<?, ?>>> accumulatorMap = aggregateUserAccumulators(); return Stringifie...
3.26
flink_DefaultExecutionGraph_notifyNewlyInitializedJobVertices_rdh
// -------------------------------------------------------------------------------------------- // Actions // -------------------------------------------------------------------------------------------- @Override public void notifyNewlyInitializedJobVertices(List<ExecutionJobVertex> vertices) { executionTopology.notify...
3.26
flink_DefaultExecutionGraph_getSchedulingTopology_rdh
// -------------------------------------------------------------------------------------------- // Configuration of Data-flow wide execution settings // -------------------------------------------------------------------------------------------- @Override public SchedulingTopology getSchedulingTopology() { return e...
3.26
flink_DefaultExecutionGraph_jobVertexFinished_rdh
// ------------------------------------------------------------------------ // Job Status Progress // ------------------------------------------------------------------------ /** * Called whenever a job vertex reaches state FINISHED (completed successfully). Once all job * vertices are in the FINISHED state, the prog...
3.26
flink_DefaultExecutionGraph_setJsonPlan_rdh
// -------------------------------------------------------------------------------------------- // Properties and Status of the Execution Graph // -------------------------------------------------------------------------------------------- @Override public void setJsonPlan(String jsonPlan) { this.jsonPlan = jsonPlan; }
3.26
flink_DefaultExecutionGraph_transitionState_rdh
// ------------------------------------------------------------------------ // State Transitions // ------------------------------------------------------------------------ @Overridepublic boolean transitionState(JobStatus current, JobStatus newState) { return transitionState(current, newState, null);}
3.26
flink_DefaultExecutionGraph_getArchivedExecutionConfig_rdh
/** * Returns the serializable {@link ArchivedExecutionConfig}. * * @return ArchivedExecutionConfig which may be null in case of errors */ @Override public ArchivedExecutionConfig getArchivedExecutionConfig() { // create a summary of all relevant data accessed in the web interface's JobConfigHandler try { Execution...
3.26
flink_DefaultExecutionGraph_getAccumulatorsSerialized_rdh
/** * Gets a serialized accumulator map. * * @return The accumulator map with serialized accumulator values. */@Override public Map<String, SerializedValue<OptionalFailure<Object>>> getAccumulatorsSerialized() { return aggregateUserAccumulators().entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, entry...
3.26
flink_DefaultExecutionGraph_allVerticesInTerminalState_rdh
/** * This method is a callback during cancellation/failover and called when all tasks have reached * a terminal state (cancelled/failed/finished). */ private void allVerticesInTerminalState() { assertRunningInJobMasterMainThread(); // we are done, transition to the final state JobStatus current; while (true) { curr...
3.26
flink_DefaultExecutionGraph_attachJobVertices_rdh
/** * Attach job vertices without initializing them. */ private void attachJobVertices(List<JobVertex> topologicallySorted) throws JobException { for (JobVertex jobVertex : topologicallySorted) { if (jobVertex.isInputVertex() && (!jobVertex.isStoppable())) { this.isStoppable = false; } VertexParallelismInformation p...
3.26
flink_DoubleMaximum_toString_rdh
// ------------------------------------------------------------------------ // Utilities // ------------------------------------------------------------------------ @Override public String toString() { return "DoubleMaximum " + this.max; }
3.26
flink_DoubleMaximum_add_rdh
// ------------------------------------------------------------------------ // Primitive Specializations // ------------------------------------------------------------------------ public void add(double value) {this.max = Math.max(this.max, value); }
3.26
flink_ArrayObjectArrayConverter_create_rdh
// -------------------------------------------------------------------------------------------- public static ArrayObjectArrayConverter<?> create(DataType dataType) { return createForElement(dataType.getChildren().get(0)); }
3.26
flink_ArrayObjectArrayConverter_toBinaryArrayData_rdh
// -------------------------------------------------------------------------------------------- // Runtime helper methods // -------------------------------------------------------------------------------------------- private ArrayData toBinaryArrayData(E[] external) { final int length = external.length; alloca...
3.26
flink_BlobClient_putInputStream_rdh
/** * Uploads data from the given input stream to the BLOB server. * * @param jobId * the ID of the job the BLOB belongs to (or <tt>null</tt> if job-unrelated) * @param inputStream * the input stream to read the data from * @param blobType * whether the BLOB should become permanent or transient * @return...
3.26
flink_BlobClient_putBuffer_rdh
// -------------------------------------------------------------------------------------------- // PUT // -------------------------------------------------------------------------------------------- /** * Uploads data from the given byte buffer to the BLOB server. * * @param jobId * the ID of the job the BLOB bel...
3.26
flink_BlobClient_receiveAndCheckGetResponse_rdh
/** * Reads the response from the input stream and throws in case of errors. * * @param is * stream to read from * @throws IOException * if the response is an error or reading the response failed */ private static void receiveAndCheckGetResponse(InputStream is) throws IOException { int response = is.read(); ...
3.26
flink_BlobClient_uploadFiles_rdh
/** * Uploads the JAR files to the {@link PermanentBlobService} of the {@link BlobServer} at the * given address with HA as configured. * * @param serverAddress * Server address of the {@link BlobServer} * @param clientConfig * Any additional configuration for the blob client ...
3.26
flink_BlobClient_sendGetHeader_rdh
/** * Constructs and writes the header data for a GET operation to the given output stream. * * @param outputStream * the output stream to write the header data to * @param jobId * ID of the job this blob belongs to (or <tt>null</tt> if job-unrelated) * @param blobKey * blob key associated with the reques...
3.26
flink_BlobClient_downloadFromBlobServer_rdh
/** * Downloads the given BLOB from the given server and stores its contents to a (local) file. * * <p>Transient BLOB files are deleted after a successful copy of the server's data into the * given <tt>localJarFile</tt>. * * @param jobId * job ID the BLOB belongs to or <tt>null</tt> if job-unrelated * @param ...
3.26
flink_BlobClient_getInternal_rdh
// -------------------------------------------------------------------------------------------- // GET // -------------------------------------------------------------------------------------------- /** * Downloads the BLOB identified by the given BLOB key from the BLOB server. * * @param jobId * ID of the job th...
3.26
flink_BlobClient_uploadFile_rdh
/** * Uploads a single file to the {@link PermanentBlobService} of the given {@link BlobServer}. * * @param jobId * ID of the job this blob belongs to (or <tt>null</tt> if job-unrelated) * @param file * file to upload * @throws IOException * if the upload fails */ public PermanentBlobKey uploadFile(JobID...
3.26
flink_BinaryHashPartition_insertIntoProbeBuffer_rdh
/** * Inserts the given record into the probe side buffers. This method is only applicable when the * partition was spilled while processing the build side. * * <p>If this method is invoked when the partition is still being built, it has undefined * behavior. * * @param record * The record to be inserted into...
3.26
flink_BinaryHashPartition_spillPartition_rdh
/** * Spills this partition to disk and sets it up such that it continues spilling records that are * added to it. The spilling process must free at least one buffer, either in the partition's * record buffers, or in the memory segments for overflow buckets. The partition immediately * takes back one buffer to use ...
3.26
flink_BinaryHashPartition_finalizeProbePhase_rdh
/** * * @param keepUnprobedSpilledPartitions * If true then partitions that were spilled but received * no further probe requests will be retained; used for build-side outer joins. */ void finalizeProbePhase(LazyMemorySegmentPool pool, List<BinaryHashPartition> spilledPartitions, boolean keepUnprobedSpilledPar...
3.26
flink_BinaryHashPartition_getPartitionNumber_rdh
/** * Gets the partition number of this partition. * * @return This partition's number. */ int getPartitionNumber() { return this.partitionNumber; }
3.26
flink_BinaryHashPartition_getNumOccupiedMemorySegments_rdh
/** * Gets the number of memory segments used by this partition, which includes build side memory * buffers and overflow memory segments. * * @return The number of occupied memory segments. */ int getNumOccupiedMemorySegments() { // either the number of memory segments, or one for spilling final int numPar...
3.26
flink_BinaryHashPartition_addHashBloomFilter_rdh
/** * Add new hash to bloomFilter when insert a record to spilled partition. */ void addHashBloomFilter(int hash) { if (bloomFilter != null) { // check if too full. if (!bloomFilter.addHash(hash)) { freeBloomFilter(); } } }
3.26
flink_FineGrainedTaskManagerTracker_m0_rdh
// --------------------------------------------------------------------------------------------- // Getters of internal state // --------------------------------------------------------------------------------------------- @Override public Collection<? extends TaskManagerInfo> m0() { return Col...
3.26
flink_FineGrainedTaskManagerTracker_notifySlotStatus_rdh
// --------------------------------------------------------------------------------------------- // Core state transitions // --------------------------------------------------------------------------------------------- @Override public void notifySlotStatus(AllocationID allocationId, JobID jobId, InstanceID instanceId...
3.26
flink_StreamExecutionEnvironment_generateStreamGraph_rdh
/** * Generates a {@link StreamGraph} that consists of the given {@link Transformation * transformations} and is configured with the configuration of this environment. * * <p>This method does not access or clear the previously registered transformations. * * @param transformations * list of transformations tha...
3.26
flink_StreamExecutionEnvironment_getDefaultLocalParallelism_rdh
/** * Gets the default parallelism that will be used for the local execution environment created by * {@link #createLocalEnvironment()}. * * @return The default local parallelism */ @PublicEvolving public static int getDefaultLocalParallelism() { return defaultLocalParallelism; }
3.26
flink_StreamExecutionEnvironment_initializeContextEnvironment_rdh
// -------------------------------------------------------------------------------------------- // Methods to control the context and local environments for execution from packaged programs // -------------------------------------------------------------------------------------------- protected static void initialize...
3.26
flink_StreamExecutionEnvironment_fromSequence_rdh
/** * Creates a new data stream that contains a sequence of numbers (longs) and is useful for * testing and for cases that just need a stream of N events of any kind. * * <p>The generated source splits the sequence into as many parallel sub-sequences as there are * parallel source readers. Each sub-sequence will b...
3.26
flink_StreamExecutionEnvironment_getExecutionEnvironment_rdh
/** * Creates an execution environment that represents the context in which the program is * currently executed. If the program is invoked standalone, this method returns a local * execution environment, as returned by {@link #createLocalEnvironment(Configuration)}. * * <p>When executed from the command line the g...
3.26
flink_StreamExecutionEnvironment_readFileStream_rdh
/** * Creates a data stream that contains the contents of file created while system watches the * given path. The file will be read with the system's default character set. * * @param filePath * The path of the file, as a URI (e.g., "file:///some/local/file" or * "hdfs://host:port/file/path/") * @param inter...
3.26
flink_StreamExecutionEnvironment_createInput_rdh
/** * Generic method to create an input data stream with {@link org.apache.flink.api.common.io.InputFormat}. * * <p>The data stream is typed to the given TypeInformation. This method is intended for input * formats where the return type cannot be determined by reflection analysis, and that do not * implement the {...
3.26
flink_StreamExecutionEnvironment_clearJobListeners_rdh
/** * Clear all registered {@link JobListener}s. */ @PublicEvolving public void clearJobListeners() { this.jobListeners.clear(); } /** * Triggers the program asynchronously. The environment will execute all parts of the program * that have resulted in a "sink" operation. Sink operations are for example printin...
3.26
flink_StreamExecutionEnvironment_getConfig_rdh
/** * Gets the config object. */ public ExecutionConfig getConfig() { return config; }
3.26
flink_StreamExecutionEnvironment_registerCachedFile_rdh
/** * Registers a file at the distributed cache under the given name. The file will be accessible * from any user-defined function in the (distributed) runtime under a local path. Files may be * local files (which will be distributed via BlobServer), or files in a distributed file * system. The runtime will copy th...
3.26
flink_StreamExecutionEnvironment_getParallelism_rdh
/** * Gets the parallelism with which operation are executed by default. Operations can * individually override this value to use a specific parallelism. * * @return The parallelism used by operations, unless they override that value. */ public int getParallelism() { return config.getParallelism(); }
3.26
flink_StreamExecutionEnvironment_m2_rdh
/** * Creates the plan with which the system will execute the program, and returns it as a String * using a JSON representation of the execution data flow graph. Note that this needs to be * called, before the plan is executed. * * @return The execution plan of the program, as a JSON String. */ public String m2()...
3.26
flink_StreamExecutionEnvironment_getTypeInfo_rdh
// Private helpers. @SuppressWarnings("unchecked") private <OUT, T extends TypeInformation<OUT>> T getTypeInfo(Object source, String sourceName, Class<?> baseSourceClass, TypeInformation<OUT> typeInfo) { TypeInformation<OUT> resolvedTypeInfo = typeInfo; if ((resolvedTypeInfo == null) && (source instanceof Resul...
3.26
flink_StreamExecutionEnvironment_getBufferTimeout_rdh
/** * Gets the maximum time frequency (milliseconds) for the flushing of the output buffers. For * clarification on the extremal values see {@link #setBufferTimeout(long)}. * * @return The timeout of the buffer. */ public long getBufferTimeout() { return this.bufferTimeout; }
3.26
flink_StreamExecutionEnvironment_getCheckpointConfig_rdh
// ------------------------------------------------------------------------ // Checkpointing Settings // ------------------------------------------------------------------------ /** * Gets the checkpoint config, which defines values like checkpoint interval, delay between * checkpoints, etc. * * @return The checkpo...
3.26
flink_StreamExecutionEnvironment_getJobListeners_rdh
/** * Gets the config JobListeners. */ @PublicEvolving public List<JobListener> getJobListeners() { return jobListeners; }
3.26