name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
flink_SkipListUtils_findPredecessor_rdh
/** * Find the predecessor node for the given key at the given level. The key is in the memory * segment positioning at the given offset. * * @param keySegment * memory segment which contains the key. * @param keyOffset * offset of the key in the memory segment. * @param level * the level. * @param leve...
3.26
flink_SkipListUtils_helpSetNextNode_rdh
/** * Set the next node of the given node at the given level. * * @param node * the node. * @param nextNode * the next node to set. * @param level * the level to find the next node. * @param levelIndexHeader * the header of the level index. * @param spaceAllocator * the space allocator. */ static...
3.26
flink_SkipListUtils_getKeyMetaLen_rdh
/** * Returns the length of key meta with the given level. * * @param level * level of the key. */ public static int getKeyMetaLen(int level) { Preconditions.checkArgument((level >= 0) && (level < f1.length), ((("level " + level) + " out of range [0, ") + f1.length) + ")"); return f1[level]; }
3.26
flink_SkipListUtils_putValuePointer_rdh
/** * Puts the value pointer to key space. * * @param memorySegment * memory segment for key space. * @param offset * offset of key space in the memory segment. * @param valuePointer * the value pointer. */ public static void putValuePointer(MemorySegment memorySegment, int offset, long valuePointer) { ...
3.26
flink_SkipListUtils_helpGetNextValuePointer_rdh
/** * Returns the next value pointer of the value. * * @param valuePointer * the value pointer of current value. * @param spaceAllocator * the space allocator. */ static long helpGetNextValuePointer(long valuePointer, Allocator spaceAllocator) { Chunk chunk = spaceAllocator.getChunkById(SpaceUtils.getChunkI...
3.26
flink_SkipListUtils_isNodeRemoved_rdh
/** * Whether the node has been logically removed. * * @param node * the node to check against * @param spaceAllocator * the space allocator * @return true if the node has been logically removed. */ static boolean isNodeRemoved(long node, Allocator spaceAllocator) { if (node == NIL_NODE) { return false; } ...
3.26
flink_SkipListUtils_getValueMetaLen_rdh
/** * Returns the length of value meta. */public static int getValueMetaLen() { return VALUE_DATA_OFFSET; }
3.26
flink_SkipListUtils_putValueLen_rdh
/** * Puts the length of value data. * * @param memorySegment * memory segment for value space. * @param offset * offset of value space in memory segment. * @param valueLen * length of value data. */ public static void putValueLen(MemorySegment memorySegment, int offset, int valueLen) { memorySegment....
3.26
flink_SkipListUtils_putValueVersion_rdh
/** * Puts the version of value to value space. * * @param memorySegment * memory segment for value space. * @param offset * offset of value space in memory segment. * @param version * version of value. */ public static void putValueVersion(MemorySegment memorySegment, int offset, int version) { memoryS...
3.26
flink_SkipListUtils_putLevelAndNodeStatus_rdh
/** * Puts the level and status to the key space. * * @param memorySegment * memory segment for key space. * @param offset * offset of key space in the memory segment. * @param level * the level. * @param status * the status. */ public static void putLevelAndNodeStatus(MemorySegment memorySegment, i...
3.26
flink_SkipListUtils_helpSetNextValuePointer_rdh
/** * Sets the next value pointer of the value. * * @param valuePointer * the value pointer. * @param nextValuePointer * the next value pointer to set. * @param spaceAllocator * the space allocator. */ static void helpSetNextValuePointer(long valuePointer, long nextValuePointer, Allocator spaceAllocator)...
3.26
flink_SkipListUtils_putKeyPointer_rdh
/** * Puts the pointer of key space. * * @param memorySegment * memory segment for value space. * @param offset * offset of value space in memory segment. * @param keyPointer * pointer to key space. */ public static void putKeyPointer(MemorySegment memorySegment, int offset, long keyPointer) { memorySegm...
3.26
flink_SkipListUtils_putNextValuePointer_rdh
/** * Puts the pointer of next value space. * * @param memorySegment * memory segment for value space. * @param offset * offset of value space in memory segment. * @param nextValuePointer * pointer to next value space. */ public static void putNextValuePointer(MemorySegment memorySegment, int offset, lon...
3.26
flink_SkipListUtils_getNextKeyPointer_rdh
/** * Returns the next key pointer on level 0. * * @param memorySegment * memory segment for key space. * @param offset * offset of key space in the memory segment. */public static long getNextKeyPointer(MemorySegment memorySegment, int offset) { return memorySegment.getLong(offset + f0); }
3.26
flink_ReOpenableMutableHashTable_storeInitialHashTable_rdh
/** * This method stores the initial hash table's contents on disk if hash join needs the memory * for further partition processing. The initial hash table is rebuild before a new secondary * input is opened. * * <p>For the sake of simplicity we iterate over all in-memory elements and store them in one * file. Th...
3.26
flink_SolutionSetUpdateBarrier_waitForSolutionSetUpdate_rdh
/** * Waits (blocking) on barrier. * * @throws InterruptedException */ public void waitForSolutionSetUpdate() throws InterruptedException { latch.await(); }
3.26
flink_SolutionSetUpdateBarrier_notifySolutionSetUpdate_rdh
/** * Releases the waiting thread. */ public void notifySolutionSetUpdate() { latch.countDown(); }
3.26
flink_LazyBinaryFormat_ensureMaterialized_rdh
/** * Ensure we have materialized binary format. */ public final void ensureMaterialized(TypeSerializer<T> serializer) { if (binarySection == null) { try { this.binarySection = materialize(serializer); } catch (IOException e) { throw new WrappingRuntimeException(e); ...
3.26
flink_LazyBinaryFormat_setJavaObject_rdh
/** * Must be public as it is used during code generation. */ public void setJavaObject(T javaObject) { this.javaObject = javaObject; }
3.26
flink_BiConsumerWithException_unchecked_rdh
/** * Convert a {@link BiConsumerWithException} into a {@link BiConsumer}. * * @param biConsumerWithException * BiConsumer with exception to convert into a {@link BiConsumer}. * @param <A> * first input type * @param <B> * second input type * @return {@link BiConsumer} which rethrows all checked exceptio...
3.26
flink_GenericArraySerializerConfigSnapshot_getCurrentVersion_rdh
// ------------------------------------------------------------------------ @Override public int getCurrentVersion() { return CURRENT_VERSION; }
3.26
flink_ShutdownHookUtil_removeShutdownHook_rdh
/** * Removes a shutdown hook from the JVM. */ public static void removeShutdownHook(final Thread shutdownHook, final String serviceName, final Logger logger) { // Do not run if this is invoked by the shutdown hook itself if ((shutdownHook == null) || (shutdownHook == Thread.currentThread())) { ret...
3.26
flink_ShutdownHookUtil_addShutdownHookThread_rdh
/** * Adds a shutdown hook to the JVM. * * @param shutdownHook * Shutdown hook to be registered. * @param serviceName * The name of service. * @param logger * The logger to log. * @return Whether the hook has been successfully registered. */ public static boolean addShutdownHookThread(final Thread shutd...
3.26
flink_FileRecords_forRecords_rdh
// ------------------------------------------------------------------------ public static <T> FileRecords<T> forRecords(final String splitId, final BulkFormat.RecordIterator<T> recordsForSplit) { return new FileRecords<>(splitId, recordsForSplit, Collections.emptySet()); }
3.26
flink_ChannelWriterOutputView_close_rdh
// -------------------------------------------------------------------------------------------- /** * Closes this OutputView, closing the underlying writer and returning all memory segments. * * @return A list containing all memory segments originally supplied to this view. * @throws IOException * Thrown, if the...
3.26
flink_ChannelWriterOutputView_getBlockCount_rdh
// -------------------------------------------------------------------------------------------- /** * Gets the number of blocks used by this view. * * @return The number of blocks used. */ public int getBlockCount() { return this.f2;}
3.26
flink_ChannelWriterOutputView_getBytesWritten_rdh
/** * Gets the number of pay-load bytes already written. This excludes the number of bytes spent on * headers in the segments. * * @return The number of bytes that have been written to this output view. */ public long getBytesWritten() { return (this.bytesBeforeSegment + getCurrentPositionInSegment()) - HEADER_LEN...
3.26
flink_ChannelWriterOutputView_nextSegment_rdh
// -------------------------------------------------------------------------------------------- // Page Management // -------------------------------------------------------------------------------------------- protected final MemorySegment nextSegment(MemorySegment current, int posInSegment) throws IOException { if (...
3.26
flink_ChannelWriterOutputView_getBytesMemoryUsed_rdh
/** * Gets the number of bytes used by this output view, including written bytes and header bytes. * * @return The number of bytes that have been written to this output view. */ public long getBytesMemoryUsed() { return ((this.f2 - 1) * getSegmentSize()) + getCurrentPositionInSegment(); }
3.26
flink_HiveParserJoinCondTypeCheckProcFactory_getDefaultExprProcessor_rdh
/** * Factory method to get DefaultExprProcessor. */ @Override public DefaultExprProcessor getDefaultExprProcessor() { return new HiveParserJoinCondTypeCheckProcFactory.JoinCondDefaultExprProcessor(); }
3.26
flink_HiveParserJoinCondTypeCheckProcFactory_getColumnExprProcessor_rdh
/** * Factory method to get ColumnExprProcessor. */ @Override public ColumnExprProcessor getColumnExprProcessor() {return new HiveParserJoinCondTypeCheckProcFactory.JoinCondColumnExprProcessor(); }
3.26
flink_CollectIteratorAssert_matchThenNext_rdh
/** * Check if any pointing data is identical to the record from the stream, and move the pointer * to next record if matched. * * @param record * Record from stream */ private boolean matchThenNext(T record) { for (RecordsFromSplit<T> ...
3.26
flink_CollectIteratorAssert_hasReachedEnd_rdh
/** * Whether all pointers have reached the end of lists. * * @return True if all pointers have reached the end. */ private boolean hasReachedEnd() { for (RecordsFromSplit<T> recordsFromSplit : recordsFromSplits) { if (recordsFromSplit.hasNext()) { return false; } } retur...
3.26
flink_HiveParserQBParseInfo_setPartialScanAnalyzeCommand_rdh
/** * * @param isPartialScanAnalyzeCommand * the isPartialScanAnalyzeCommand to set */ public void setPartialScanAnalyzeCommand(boolean isPartialScanAnalyzeCommand) { this.isPartialScanAnalyzeCommand = isPartialScanAnalyzeCommand; }
3.26
flink_HiveParserQBParseInfo_getInsertOverwriteTables_rdh
// See also {@link #isInsertIntoTable(String)} public Map<String, HiveParserASTNode> getInsertOverwriteTables() { return insertOverwriteTables; }
3.26
flink_HiveParserQBParseInfo_getClusterByForClause_rdh
/** * Get the Cluster By AST for the clause. */ public HiveParserASTNode getClusterByForClause(String clause) { return destToClusterby.get(clause); }
3.26
flink_HiveParserQBParseInfo_setDistributeByExprForClause_rdh
/** * Set the Distribute By AST for the clause. */ public void setDistributeByExprForClause(String clause, HiveParserASTNode ast) { destToDistributeby.put(clause, ast); }
3.26
flink_HiveParserQBParseInfo_isSimpleSelectQuery_rdh
// for fast check of possible existence of RS (will be checked again in SimpleFetchOptimizer) public boolean isSimpleSelectQuery() { if ((((((((((f0 != null) || (!destToOrderby.isEmpty())) || (!destToSortby.isEmpty())) || (!destToGroupby.isEmpty())) || (!destToClusterby.isEmpty())) || (!destToDistributeby.isEmpty()...
3.26
flink_HiveParserQBParseInfo_getDistributeByForClause_rdh
/** * Get the Distribute By AST for the clause. */ public HiveParserASTNode getDistributeByForClause(String clause) { return destToDistributeby.get(clause); }
3.26
flink_HiveParserQBParseInfo_setNoScanAnalyzeCommand_rdh
/** * * @param isNoScanAnalyzeCommand * the isNoScanAnalyzeCommand to set */ public void setNoScanAnalyzeCommand(boolean isNoScanAnalyzeCommand) { this.isNoScanAnalyzeCommand = isNoScanAnalyzeCommand; }
3.26
flink_HiveParserQBParseInfo_setSortByExprForClause_rdh
/** * Set the Sort By AST for the clause. */ public void setSortByExprForClause(String clause, HiveParserASTNode ast) { destToSortby.put(clause, ast); }
3.26
flink_HiveParserQBParseInfo_getSortByForClause_rdh
/** * Get the Sort By AST for the clause. */ public HiveParserASTNode getSortByForClause(String clause) { return destToSortby.get(clause); }
3.26
flink_HiveParserQBParseInfo_setClusterByExprForClause_rdh
/** * Set the Cluster By AST for the clause. */ public void setClusterByExprForClause(String clause, HiveParserASTNode ast) { destToClusterby.put(clause, ast); }
3.26
flink_HiveParserQBParseInfo_isPartialScanAnalyzeCommand_rdh
/** * * @return the isPartialScanAnalyzeCommand */ public boolean isPartialScanAnalyzeCommand() { return isPartialScanAnalyzeCommand; }
3.26
flink_RestClientConfiguration_getIdlenessTimeout_rdh
/** * {@see RestOptions#IDLENESS_TIMEOUT}. */ public long getIdlenessTimeout() { return idlenessTimeout; }
3.26
flink_RestClientConfiguration_fromConfiguration_rdh
/** * Creates and returns a new {@link RestClientConfiguration} from the given {@link Configuration}. * * @param config * configuration from which the REST client endpoint configuration should be * created from * @return REST client endpoint configuration * @throws Configurati...
3.26
flink_RestClientConfiguration_getMaxContentLength_rdh
/** * Returns the max content length that the REST client endpoint could handle. * * @return max content length that the REST client endpoint could handle */ public int getMaxContentLength() { return maxContentLength; }
3.26
flink_RestClientConfiguration_getConnectionTimeout_rdh
/** * {@see RestOptions#CONNECTION_TIMEOUT}. */ public long getConnectionTimeout() { return connectionTimeout; }
3.26
flink_SerializedValue_fromBytes_rdh
/** * Constructs serialized value from serialized data. * * @param serializedData * serialized data * @param <T> * type * @return serialized value * @throws NullPointerException * if serialized data is null * @throws IllegalArgumentException * if serialized data is empty */ public static <T> Seriali...
3.26
flink_SerializedValue_getByteArray_rdh
/** * Returns byte array for serialized data. * * @return Serialized data. */ public byte[] getByteArray() { return serializedData; }
3.26
flink_SerializedValue_hashCode_rdh
// -------------------------------------------------------------------------------------------- @Override public int hashCode() { return Arrays.hashCode(serializedData); }
3.26
flink_FailureResult_canNotRestart_rdh
/** * Creates FailureResult which does not allow to restart the job. * * @param failureCause * failureCause describes the reason why the job cannot be restarted * @return FailureResult which does not allow to restart the job */ static FailureResult canNotRestart(Throwable failureCause) { return new FailureResul...
3.26
flink_FailureResult_canRestart_rdh
/** * Creates a FailureResult which allows to restart the job. * * @param failureCause * failureCause for restarting the job * @param backoffTime * backoffTime to wait before restarting the job * @return FailureResult which allows to restart the job */ static FailureR...
3.26
flink_DeletePushDownUtils_m0_rdh
/** * Get the resolved filter expressions from the {@code WHERE} clause in DELETE statement, return * Optional.empty() if {@code WHERE} clause contains sub-query. */ public static Optional<List<ResolvedExpression>> m0(LogicalTableModify tableModify) { FlinkContext context = ShortcutUtils.unwrapContext(tableModif...
3.26
flink_DeletePushDownUtils_getDynamicTableSink_rdh
/** * Get the {@link DynamicTableSink} for the table to be modified. Return Optional.empty() if it * can't get the {@link DynamicTableSink}. */ public static Optional<DynamicTableSink> getDynamicTableSink(ContextResolvedTable contextResolvedTable, LogicalTableModify tableModify, CatalogManager catalogManager) { ...
3.26
flink_DeletePushDownUtils_m1_rdh
/** * Prepare the filter with reducing && simplifying. */ private static Filter m1(Filter filter) { // we try to reduce and simplify the filter ReduceExpressionsRuleProxy reduceExpressionsRuleProxy = ReduceExpressionsRuleProxy.INSTANCE;SimplifyFilterConditionRule simplifyFilterConditionRule = SimplifyFilterCo...
3.26
flink_DeletePushDownUtils_resolveFilter_rdh
/** * Return the ResolvedExpression according to Filter. */ private static List<ResolvedExpression> resolveFilter(FlinkContext context, Filter filter) { Tuple2<RexNode[], RexNode[]> extractedPredicates = FlinkRexUtil.extractPredicates(filter.getInput().getRowType().getFieldNames().toArray(new String[0]), f...
3.26
flink_BridgingSqlProcedure_of_rdh
/** * Creates an instance of a procedure. * * @param dataTypeFactory * used for creating {@link DataType} * @param resolvedProcedure * {@link Procedure} with context */ public static BridgingSqlProcedure of(DataTypeFactory dataTypeFactory, ContextResolvedProcedure resolved...
3.26
flink_JobsOverview_equals_rdh
// ------------------------------------------------------------------------ @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (obj instanceof JobsOverview) { JobsOverview that = ((JobsOverview) (obj)); return (((this.numJobsRunningOrPending == that.n...
3.26
flink_JobsOverview_combine_rdh
/** * Combines the given jobs overview with this. * * @param jobsOverview * to combine with this * @return Combined jobs overview */ public JobsOverview combine(JobsOverview jobsOverview) { return new JobsOverview(this, jobsOverview); }
3.26
flink_MultipleParameterTool_fromArgs_rdh
// ------------------ Constructors ------------------------ /** * Returns {@link MultipleParameterTool} for the given arguments. The arguments are keys * followed by values. Keys have to start with '-' or '--' * * <p><strong>Example arguments:</strong> --key1 value1 --key2 value2 -key3 value3 --multi * multiValue1...
3.26
flink_MultipleParameterTool_getNumberOfParameters_rdh
// ------------------ Get data from the util ---------------- /** * Returns number of parameters in {@link ParameterTool}. */ @Override public int getNumberOfParameters() { return data.size(); }
3.26
flink_MultipleParameterTool_fromMultiMap_rdh
/** * Returns {@link MultipleParameterTool} for the given multi map. * * @param multiMap * A map of arguments. Key is String and value is a Collection. * @return A {@link MultipleParameterTool} */ public static MultipleParameterTool fromMultiMap(Map<String, Collection<String>> multiMap) { Preconditions.chec...
3.26
flink_MultipleParameterTool_readObject_rdh
// ------------------------- Serialization --------------------------------------------- private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); defaultData = new ConcurrentHashMap<>(data.size()); unrequestedParameters = Collections.newSetFromMap(new Concurrent...
3.26
flink_MultipleParameterTool_mergeWith_rdh
// ------------------------- Interaction with other ParameterUtils ------------------------- /** * Merges two {@link MultipleParameterTool}. * * @param other * Other {@link MultipleParameterTool} object * @return The Merged {@link MultipleParameterTool} */ public MultipleParameterTool mergeWith(MultipleParamete...
3.26
flink_MultipleParameterTool_has_rdh
/** * Check if value is set. */ @Override public boolean has(String value) { addToDefaults(value, null); unrequestedParameters.remove(value); return data.containsKey(value); }
3.26
flink_MultipleParameterTool_getMultiParameter_rdh
/** * Returns the Collection of String values for the given key. If the key does not exist it will * return null. */ public Collection<String> getMultiParameter(String key) { addToDefaults(key, null); unrequestedParameters.remove(key); return data.getOrDefault(key, null); }
3.26
flink_MultipleParameterTool_get_rdh
/** * Returns the String value for the given key. The value should only have one item. Use {@link #getMultiParameter(String)} instead if want to get multiple values parameter. If the key does * not exist it will return null. */ @Override public String get(String key) { addToDefaults(key, null...
3.26
flink_MultipleParameterTool_m0_rdh
// ------------------------- ExecutionConfig.UserConfig interface ------------------------- @Override public Map<String, String> m0() { return getFlatMapOfData(data); }
3.26
flink_MultipleParameterTool_getFlatMapOfData_rdh
/** * Get the flat map of the multiple map data. If the key have multiple values, only the last one * will be used. This is also the current behavior when multiple parameters is specified for * {@link ParameterTool}. * * @param data * multiple map of data. * @return flat map of data. */ private static Map<Str...
3.26
flink_MultipleParameterTool_getMultiParameterRequired_rdh
/** * Returns the Collection of String values for the given key. If the key does not exist it will * throw a {@link RuntimeException}. */ public Collection<String> getMultiParameterRequired(String key) { addToDefaults(key, null); Collection<String> value = getMultiParameter(key); if (value == null) { throw new ...
3.26
flink_NettyMessageDecoder_onNewMessageReceived_rdh
/** * Notifies that a new message is to be decoded. * * @param msgId * The type of the message to be decoded. * @param messageLength * The length of the message to be decoded. */ void onNewMessageReceived(int msgId, int messageLength) { this.msgId = msgId; this.messageLength = messageLength; }
3.26
flink_CollectionUtil_iteratorToList_rdh
/** * Collects the elements in the Iterator in a List. If the iterator argument is null, this * method returns an empty list. */ public static <E> List<E> iteratorToList(@Nullable Iterator<E> iterator) { if (iterator == null) { return Collections.emptyList(); } final ArrayList<E> list = new Ar...
3.26
flink_CollectionUtil_partition_rdh
/** * Partition a collection into approximately n buckets. */ public static <T> Collection<List<T>> partition(Collection<T> elements, int numBuckets) { Map<Integer, List<T>> buckets = newHashMapWithExpectedSize(numBuckets); int initialCapacity = elements.size() / numBuckets; int index = 0; for (T elem...
3.26
flink_CollectionUtil_newHashSetWithExpectedSize_rdh
/** * Creates a new {@link HashSet} of the expected size, i.e. a hash set that will not rehash if * expectedSize many unique elements are inserted, considering the load factor. * * @param expectedSize * the expected size of the created hash map. * @return a new hash map instance with enough capacity for the exp...
3.26
flink_CollectionUtil_map_rdh
/** * Returns an immutable {@link Map} from the provided entries. */ @SafeVarargs public static <K, V> Map<K, V> map(Map.Entry<K, V>... entries) { if (entries == null) { return Collections.emptyMap();} Map<K, V> map = new HashMap<>(); for (Map.Entry<K, V> entry : entries) { map.put(entry...
3.26
flink_CollectionUtil_newLinkedHashMapWithExpectedSize_rdh
/** * Creates a new {@link LinkedHashMap} of the expected size, i.e. a hash map that will not * rehash if expectedSize many keys are inserted, considering the load factor. * * @param expectedSize * the expected size of the created hash map. * @return a new hash map instance with enough capacity for the expected...
3.26
flink_CollectionUtil_newHashMapWithExpectedSize_rdh
/** * Creates a new {@link HashMap} of the expected size, i.e. a hash map that will not rehash if * expectedSize many keys are inserted, considering the load factor. * * @param expectedSize * the expected size of the created hash map. * @return a new hash map instance with enough capacity for the expected size....
3.26
flink_CollectionUtil_newLinkedHashSetWithExpectedSize_rdh
/** * Creates a new {@link LinkedHashSet} of the expected size, i.e. a hash set that will not * rehash if expectedSize many unique elements are inserted, considering the load factor. * * @param expectedSize * the expected size of the created hash map. * @return a new hash map instance with enough capacity for t...
3.26
flink_CollectionUtil_iterableToList_rdh
/** * Collects the elements in the Iterable in a List. If the iterable argument is null, this * method returns an empty list. */ public static <E> List<E> iterableToList(@Nullable Iterable<E> iterable) { if (iterable == null) { return Collections.emptyList(); } final ArrayList<E> list = new...
3.26
flink_CollectionUtil_computeRequiredCapacity_rdh
/** * Helper method to compute the right capacity for a hash map with load factor * HASH_MAP_DEFAULT_LOAD_FACTOR. */@VisibleForTesting static int computeRequiredCapacity(int expectedSize, float loadFactor) { Preconditions.checkArgument(expectedSize >= 0); Preconditions.checkArgument(loadFactor > 0.0F); ...
3.26
flink_CollectionUtil_entry_rdh
/** * Returns an immutable {@link Map.Entry}. */ public static <K, V> Map.Entry<K, V> entry(K k, V v) { return new AbstractMap.SimpleImmutableEntry<>(k, v); }
3.26
flink_ExecutionConfig_setGlobalJobParameters_rdh
/** * Register a custom, serializable user configuration object. * * @param globalJobParameters * Custom user configuration object */ public void setGlobalJobParameters(GlobalJobParameters globalJobParameters) { Preconditions.checkNotNull(globalJobParameters, "globalJobParameters shouldn't be null"); set...
3.26
flink_ExecutionConfig_setMaxParallelism_rdh
/** * Sets the maximum degree of parallelism defined for the program. * * <p>The maximum degree of parallelism specifies the upper limit for dynamic scaling. It also * defines the number of key groups used for partitioned state. * * @param maxParallelism * Maximum degree of parallelism to be used for the progr...
3.26
flink_ExecutionConfig_getRegisteredTypesWithKryoSerializerClasses_rdh
/** * Returns the registered types with their Kryo Serializer classes. */ public LinkedHashMap<Class<?>, Class<? extends Serializer<?>>> getRegisteredTypesWithKryoSerializerClasses() { return registeredTypesWithKryoSerializerClasses; }
3.26
flink_ExecutionConfig_configure_rdh
/** * Sets all relevant options contained in the {@link ReadableConfig} such as e.g. {@link PipelineOptions#CLOSURE_CLEANER_LEVEL}. * * <p>It will change the value of a setting only if a corresponding option was set in the {@code configuration}. If a key is not present, the current value of a field will remain untou...
3.26
flink_ExecutionConfig_registerKryoType_rdh
/** * Registers the given type with the serialization stack. If the type is eventually serialized * as a POJO, then the type is registered with the POJO serializer. If the type ends up being * serialized with Kryo, then it will be registered at Kryo to make sure that only tags are * written. * * @param type * ...
3.26
flink_ExecutionConfig_disableClosureCleaner_rdh
/** * Disables the ClosureCleaner. * * @see #enableClosureCleaner() */ public ExecutionConfig disableClosureCleaner() { return setClosureCleanerLevel(ClosureCleanerLevel.NONE); }
3.26
flink_ExecutionConfig_setTaskCancellationTimeout_rdh
/** * Sets the timeout (in milliseconds) after which an ongoing task cancellation is considered * failed, leading to a fatal TaskManager error. * * <p>The cluster default is configured via {@link TaskManagerOptions#TASK_CANCELLATION_TIMEOUT}. * * <p>The value <code>0</code> disables the timeout. In this case a st...
3.26
flink_ExecutionConfig_setClosureCleanerLevel_rdh
/** * Configures the closure cleaner. Please see {@link ClosureCleanerLevel} for details on the * different settings. */ public ExecutionConfig setClosureCleanerLevel(ClosureCleanerLevel level) { configuration.set(PipelineOptions.CLOSURE_CLEANER_LEVEL, level);return this; }
3.26
flink_ExecutionConfig_canEqual_rdh
/** * This method simply checks whether the object is an {@link ExecutionConfig} instance. * * @deprecated It is not intended to be used by users. */ @Deprecated public boolean canEqual(Object obj) { return obj instanceof ExecutionConfig; }
3.26
flink_ExecutionConfig_addDefaultKryoSerializer_rdh
/** * Adds a new Kryo default serializer to the Runtime. * * @param type * The class of the types serialized with the given serializer. * @param serializerClass * The class of the serializer to use. */ public void addDefaultKryoSerializer(Class<?> type, Class<? extends Serializer<?>> serializerClass) { ...
3.26
flink_ExecutionConfig_isObjectReuseEnabled_rdh
/** * Returns whether object reuse has been enabled or disabled. @see #enableObjectReuse() */ public boolean isObjectReuseEnabled() { return configuration.get(PipelineOptions.OBJECT_REUSE); }
3.26
flink_ExecutionConfig_getRestartStrategy_rdh
/** * Returns the restart strategy which has been set for the current job. * * @return The specified restart configuration */ @PublicEvolving @SuppressWarnings("deprecation") public RestartStrategyConfiguration getRestartStrategy() { if (restartStrategyConfiguration instanceof RestartStrategies.FallbackRestartS...
3.26
flink_ExecutionConfig_setParallelism_rdh
/** * Sets the parallelism for operations executed through this environment. Setting a parallelism * of x here will cause all operators (such as join, map, reduce) to run with x parallel * instances. * * <p>This method overrides the default parallelism for this environment. The local execution * environment uses ...
3.26
flink_ExecutionConfig_registerPojoType_rdh
/** * Registers the given type with the serialization stack. If the type is eventually serialized * as a POJO, then the type is registered with the POJO serializer. If the type ends up being * serialized with Kryo, then it will be registered at Kryo to make sure that only tags are * written. * * @param type * ...
3.26
flink_ExecutionConfig_m0_rdh
/** * Interval for sending latency tracking marks from the sources to the sinks. Flink will send * latency tracking marks from the sources at the specified interval. * * <p>Setting a tracking interval <= 0 disables the latency tracking. * * @param interval * Interval in milliseconds. */@PublicEvolving public ...
3.26
flink_ExecutionConfig_isForceAvroEnabled_rdh
/** * Returns whether the Apache Avro is the default serializer for POJOs. */ public boolean isForceAvroEnabled() { return configuration.get(PipelineOptions.FORCE_AVRO); }
3.26
flink_ExecutionConfig_setRestartStrategy_rdh
/** * Sets the restart strategy to be used for recovery. * * <pre>{@code ExecutionConfig config = env.getConfig(); * * config.setRestartStrategy(RestartStrategies.fixedDelayRestart( * 10, // number of retries * 1000 // delay between retries));}</pre> * * @param restartStrategyConfiguration * Configuratio...
3.26
flink_ExecutionConfig_getDefaultInputDependencyConstraint_rdh
/** * This method is deprecated. It was used to return the {@link InputDependencyConstraint} * utilized by the old scheduler implementations. These implementations were removed as part of * FLINK-20589. * * @return The previous default constraint {@link InputDependencyConstraint#ANY}. * @deprecated due to the dep...
3.26