name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
flink_SubtaskStateStats_m0_rdh | /**
* Returns the size of the checkpointed state at this subtask.
*
* @return Checkpoint state size of the sub task.
*/
public long m0() {
return stateSize;
} | 3.26 |
flink_SubtaskStateStats_getPersistedData_rdh | /**
*
* @return the total number of persisted bytes during the checkpoint.
*/
public long getPersistedData() {
return persistedData;
} | 3.26 |
flink_SubtaskStateStats_getEndToEndDuration_rdh | /**
* Computes the duration since the given trigger timestamp.
*
* <p>If the trigger timestamp is greater than the ACK timestamp, this returns <code>0</code>.
*
* @param triggerTimestamp
* Trigger timestamp of the checkpoint.
* @return Duration since the given trigger timestamp.
*/
public long getEndToEndDura... | 3.26 |
flink_SubtaskStateStats_getProcessedData_rdh | /**
*
* @return the total number of processed bytes during the checkpoint.
*/
public long getProcessedData() {
return processedData;
} | 3.26 |
flink_SubtaskStateStats_getCheckpointedSize_rdh | /**
* Returns the incremental state size.
*
* @return The incremental state size.
*/
public long getCheckpointedSize() {
return checkpointedSize;
} | 3.26 |
flink_SubtaskStateStats_getAckTimestamp_rdh | /**
* Returns the timestamp when the acknowledgement of this subtask was received at the
* coordinator.
*
* @return ACK timestamp at the coordinator.
*/
public long getAckTimestamp() {
return
ackTimestamp;
} | 3.26 |
flink_AbstractHeapPriorityQueue_clear_rdh | /**
* Clears the queue.
*/
public void clear() {
final int arrayOffset = getHeadElementIndex();
Arrays.fill(queue, arrayOffset, arrayOffset + size, null);
size = 0;
} | 3.26 |
flink_AbstractHeapPriorityQueue_iterator_rdh | /**
* Returns an iterator over the elements in this queue. The iterator does not return the
* elements in any particular order.
*
* @return an iterator over the elements in this queue.
*/
@Nonnull
@Override
public CloseableIterator<T> iterator() {
return new HeapIterator();
} | 3.26 |
flink_GatewayRetriever_getNow_rdh | /**
* Returns the currently retrieved gateway if there is such an object. Otherwise it returns an
* empty optional.
*
* @return Optional object to retrieve
*/
default Optional<T> getNow() {
CompletableFuture<T> leaderFuture = getFuture();
if (leaderFuture != null) {
... | 3.26 |
flink_TimeIntervalTypeInfo_hashCode_rdh | // ----------------------------------------------------------------------------------------------
@Override
public int hashCode() {
return Objects.hash(clazz, serializer, comparatorClass);
} | 3.26 |
flink_CoreOptions_fileSystemConnectionLimit_rdh | /**
* The total number of input plus output connections that a file system for the given scheme may
* open. Unlimited be default.
*/
public static ConfigOption<Integer> fileSystemConnectionLimit(String
scheme) {
return ConfigOptions.key(("fs." + scheme) + ".limit.total").intType().defaultValue(-1);
} | 3.26 |
flink_CoreOptions_fileSystemConnectionLimitTimeout_rdh | /**
* If any connection limit is configured, this option can be optionally set to define after
* which time (in milliseconds) stream opening fails with a timeout exception, if no stream
* connection becomes available. Unlimited timeout be default.
*/
public static Con... | 3.26 |
flink_CoreOptions_fileSystemConnectionLimitOut_rdh | /**
* The total number of output connections that a file system for the given scheme may open.
* Unlimited be default.
*/
public static ConfigOption<Integer> fileSystemConnectionLimitOut(String scheme) {
return ConfigOptions.key(("fs." + scheme) + ".limit.output").intType().defaultValue(-1);
} | 3.26 |
flink_CoreOptions_fileSystemConnectionLimitIn_rdh | /**
* The total number of input connections that a file system for the given scheme may open.
* Unlimited be default.
*/
public static ConfigOption<Integer> fileSystemConnectionLimitIn(String
scheme) {
return ConfigOptions.key(("fs." + scheme) + ".limit.input").intType().defaultValue(-1);
} | 3.26 |
flink_CoreOptions_fileSystemConnectionLimitStreamInactivityTimeout_rdh | /**
* If any connection limit is configured, this option can be optionally set to define after
* which time (in milliseconds) inactive streams are reclaimed. This option can help to prevent
* that inactive streams make up the full pool of limited connections, and no further
* connections can be established. Unlimit... | 3.26 |
flink_PrioritizedOperatorSubtaskState_getPrioritizedRawOperatorState_rdh | /**
* Returns an immutable list with all alternative snapshots to restore the raw operator state,
* in the order in which we should attempt to restore.
*/
@Nonnull
public List<StateObjectCollection<OperatorStateHandle>> getPrioritizedRawOperatorState() {
return prioritizedRawOperatorState;
} | 3.26 |
flink_PrioritizedOperatorSubtaskState_getPrioritizedManagedOperatorState_rdh | // -----------------------------------------------------------------------------------------------------------------
/**
* Returns an immutable list with all alternative snapshots to restore the managed operator
* state, in the order in which we should attempt to restore.
*/@Nonnull
public List<StateObjectCollection... | 3.26 |
flink_PrioritizedOperatorSubtaskState_resolvePrioritizedAlternatives_rdh | /**
* This helper method resolves the dependencies between the ground truth of the operator
* state obtained from the job manager and potential alternatives for recovery, e.g. from a
* task-local source.
*/
<T extends StateObject> List<StateObjectCollection<T>> resolvePrioritizedAlternatives(StateObjectCollection<T... | 3.26 |
flink_PrioritizedOperatorSubtaskState_getJobManagerManagedOperatorState_rdh | // -----------------------------------------------------------------------------------------------------------------
/**
* Returns the managed operator state from the job manager, which represents the ground truth
* about what this state should represent. This is the alternative with lowest priority.
*/
@Nonnull
pub... | 3.26 |
flink_PrioritizedOperatorSubtaskState_computePrioritizedAlternatives_rdh | /**
* This method creates an alternative recovery option by replacing as much job manager state
* with higher prioritized (=local) alternatives as possible.
*
* @param jobManagerState
* the state that the task got assigned from the job manager (this
* state lives in remote storage).
* @param alternativesByPr... | 3.26 |
flink_PrioritizedOperatorSubtaskState_isRestored_rdh | // -----------------------------------------------------------------------------------------------------------------
/**
* Returns true if this was created for a restored operator, false otherwise. Restored operators
* are operators that participated in a previous checkpoint, even if they did not emit any state
* sn... | 3.26 |
flink_PrioritizedOperatorSubtaskState_getPrioritizedRawKeyedState_rdh | /**
* Returns an immutable list with all alternative snapshots to restore the raw keyed state, in
* the order in which we should attempt to restore.
*/
@Nonnull public List<StateObjectCollection<KeyedStateHandle>> getPrioritizedRawKeyedState() {
return prioritizedRawKeyedState;
} | 3.26 |
flink_PrioritizedOperatorSubtaskState_m0_rdh | /**
* Returns the managed keyed state from the job manager, which represents the ground truth about
* what this state should represent. This is the alternative with lowest priority.
*/
@Nonnull
public StateObjectCollection<KeyedStateHandle> m0() {
return lastElement(prioritizedManagedKeyedState);
} | 3.26 |
flink_HadoopRecoverableFsDataOutputStream_waitUntilLeaseIsRevoked_rdh | /**
* Called when resuming execution after a failure and waits until the lease of the file we are
* resuming is free.
*
* <p>The lease of the file we are resuming writing/committing to may still belong to the
* process that failed previously and whose state we are recovering.
*
* @param path
* The path to the... | 3.26 |
flink_HadoopRecoverableFsDataOutputStream_revokeLeaseByFileSystem_rdh | /**
* Resolve the real path of FileSystem if it is {@link ViewFileSystem} and revoke the lease of
* the file we are resuming with different FileSystem.
*
* @param path
* The path to the file we want to resume writing to.
*/
private static boolean revokeLeaseByFileSystem(final FileSystem fs, final Path
path) t... | 3.26 |
flink_HadoopRecoverableFsDataOutputStream_safelyTruncateFile_rdh | // ------------------------------------------------------------------------
// Reflection utils for truncation
// These are needed to compile against Hadoop versions before
// Hadoop 2.7, which have no truncation calls for HDFS.
// ------------------------------------------------------------------------
private static ... | 3.26 |
flink_CoGroupWithSolutionSetSecondDriver_m0_rdh | // --------------------------------------------------------------------------------------------
@Override
@SuppressWarnings("unchecked")
public void m0() throws Exception {
final TypeComparator<IT2> solutionSetComparator;
// grab a handle to the hash table from the iteration broker
if (taskContext instanceof AbstractI... | 3.26 |
flink_CoGroupWithSolutionSetSecondDriver_setup_rdh | // --------------------------------------------------------------------------------------------
@Override
public void setup(TaskContext<CoGroupFunction<IT1, IT2, OT>, OT> context) {
this.taskContext = context;
this.running = true;
} | 3.26 |
flink_ExecutionFailureHandler_getFailureHandlingResult_rdh | /**
* Return result of failure handling. Can be a set of task vertices to restart and a delay of
* the restarting. Or that the failure is not recoverable and the reason for it.
*
* @param failedExecution
* is the failed execution
* @param cause
* of the task failure
* @param timestamp
* of the task failu... | 3.26 |
flink_ExecutionFailureHandler_getGlobalFailureHandlingResult_rdh | /**
* Return result of failure handling on a global failure. Can be a set of task vertices to
* restart and a delay of the restarting. Or that the failure is not recoverable and the reason
* for it.
*
* @param cause
* of the task failure
* @param timestamp
* of the task failure
* @return result of the fail... | 3.26 |
flink_BooleanValueComparator_supportsSerializationWithKeyNormalization_rdh | // --------------------------------------------------------------------------------------------
// unsupported normalization
// --------------------------------------------------------------------------------------------
@Override
public boolean supportsSerializationWithKeyNormalization() {
return false;
} | 3.26 |
flink_AnswerFormatter_format_rdh | /**
* TPC-DS answer set has three kind of formats, recognize them and convert to unified format.
*
* @param originFile
* origin answer set file from TPC-DS.
* @param destFile
* file to save formatted answer set.
* @throws Exception
*/
private static void format(File originFile, File destFile) throws Excepti... | 3.26 |
flink_PythonCsvUtils_createCsvBulkWriterFactory_rdh | /**
* Util for creating a {@link BulkWriter.Factory} that wraps {@link CsvBulkWriter#forSchema}.
*/
public static BulkWriter.Factory<RowData> createCsvBulkWriterFactory(CsvSchema schema, DataType physicalDataType) {
return CsvFileFormatFactory.createCsvBulkWriterFactory(schema, ((RowType) (physicalDataType.getL... | 3.26 |
flink_PythonCsvUtils_createRowDataToCsvFormatConverterContext_rdh | /**
* Util for creating a {@link RowDataToCsvConverters.RowDataToCsvConverter.RowDataToCsvFormatConverterContext}.
*/
public static RowDataToCsvFormatConverterContext createRowDataToCsvFormatConverterContext(CsvMapper mapper, ContainerNode<?> container) {
return new RowDataToCsvConverters.RowDataToCsvConverter.Ro... | 3.26 |
flink_PythonCsvUtils_createCsvReaderFormat_rdh | /**
* Util for creating a {@link CsvReaderFormat}.
*/
public static CsvReaderFormat<Object> createCsvReaderFormat(CsvSchema schema, DataType dataType) {
Preconditions.checkArgument(dataType.getLogicalType() instanceof
RowType);
return new CsvReaderFormat<>(CsvMapper::new, ignored -> schema, JsonNode.c... | 3.26 |
flink_SubtaskConnectionDescriptor_getInputSubtaskIndex_rdh | // ------------------------------------------------------------------------
public int getInputSubtaskIndex() {
return inputSubtaskIndex;
} | 3.26 |
flink_SubtaskConnectionDescriptor_write_rdh | // ------------------------------------------------------------------------
// Serialization
// ------------------------------------------------------------------------
@Override
public void write(DataOutputView out) {
throw new UnsupportedOperationException("This method should never be called");
} | 3.26 |
flink_DataSourceTask_initOutputs_rdh | /**
* Creates a writer for each output. Creates an OutputCollector which forwards its input to all
* writers. The output collector applies the configured shipping strategy.
*/
private void initOutputs(UserCodeClassLoader cl) throws Exception {
this.chainedTasks = new ArrayList<ChainedDriver<?, ?>>();
this.ev... | 3.26 |
flink_DataSourceTask_initInputFormat_rdh | /**
* Initializes the InputFormat implementation and configuration.
*
* @throws RuntimeException
* Throws if instance of InputFormat implementation can not be
* obtained.
*/
private void
initInputFormat() {
ClassLoader userCodeClassLoader = getUserCodeClassLoader();
// obtain task configuration (inclu... | 3.26 |
flink_DataSourceTask_getLogString_rdh | /**
* Utility function that composes a string for logging purposes. The string includes the given
* message and the index of the task in its task group together with the number of tasks in the
* task group.
*
* @param message
* The main message for the log.
* @param taskName
* The name of the task.
* @retu... | 3.26 |
flink_BlobCacheService_setBlobServerAddress_rdh | /**
* Sets the address of the {@link BlobServer}.
*
* @param blobServerAddress
* address of the {@link BlobServer}.
*/
public void setBlobServerAddress(InetSocketAddress blobServerAddress) {
permanentBlobCache.setBlobServerAddress(blobServerAddress);
transientBlobCache.setBlobServerAddress(blobServerAdd... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_getPartitionSpec_rdh | // get partition metadata
public static Map<String, String> getPartitionSpec(HiveParserASTNode ast) {
HiveParserASTNode partNode = null;
// if this ast has only one child, then no partition spec specified.
if (ast.getChildCount() == 1) {
return null;
}
// if ast has two children
// the 2nd child could be partition spec... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_getFullyQualifiedName_rdh | // generate a name of the form a.b.c
public static String getFullyQualifiedName(HiveParserASTNode ast) {
if (ast.getChildCount() == 0) {
return ast.getText();
} else if (ast.getChildCount() == 2) {
return (getFullyQualifiedName(((HiveParserASTNode) (ast.getChild(0)))) + ".") + getFullyQualifiedName(((HiveParserASTNode... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_validatePartitionValues_rdh | /**
* Certain partition values are are used by hive. e.g. the default partition in dynamic
* partitioning and the intermediate partition values used in the archiving process. Naturally,
* prohibit the user from creating partitions with these reserved values. The check that this
* function is more restrictive than t... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_getColPath_rdh | // get the column path
// return column name if exists, column could be DOT separated.
// example: lintString.$elem$.myint
// return table name for column name if no column has been specified.
public static String getColPath(HiveParserASTNode node, String dbName, String tableName, Map<String, String> partSpec) {
// if ... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_getPartitionSpecs_rdh | // Get the partition specs from the tree
private List<Map<String, String>> getPartitionSpecs(CommonTree ast) {
List<Map<String, String>> partSpecs = new ArrayList<>();
// get partition metadata if partition specified
for (int childIndex = 0; childIndex < ast.getChildCount(); childIndex++) {
HiveParserASTNode v202 = ((... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_convertAlterTableAddParts_rdh | /**
* Add one or more partitions to a table. Useful when the data has been copied to the right
* location by some other process.
*/
private Operation
convertAlterTableAddParts(String[] qualified, CommonTree ast) {
// ^(TOK_ALTERTABLE_ADDPARTS identifier ifNotExists?
// alterStatementSuffixAddPartitionsElement+)
bool... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_convertDescribeTable_rdh | /**
* A query like this will generate a tree as follows "describe formatted default.maptable
* partition (b=100) id;" TOK_TABTYPE TOK_TABNAME --> root for tablename, 2 child nodes mean DB
* specified default maptable TOK_PARTSPEC --> root node for partition spec. else columnName
* TOK_PARTVAL b 100 id --> root node... | 3.26 |
flink_HiveParserDDLSemanticAnalyzer_convertShowFunctions_rdh | /**
* Add the task according to the parsed command tree. This is used for the CLI command "SHOW
* FUNCTIONS;".
*
* @param ast
* The parsed command tree.
*/
private Operation convertShowFunctions(HiveParserASTNode ast) {
if (ast.getChildCount() == 2) {
assert ast.getChild(0).getType() == HiveASTParser.KW_LI... | 3.26 |
flink_ExternalPythonKeyedProcessOperator_setCurrentKey_rdh | /**
* As the beam state gRPC service will access the KeyedStateBackend in parallel with this
* operator, we must override this method to prevent changing the current key of the
* KeyedStateBackend while the beam service is handling requests.
*/
@Override
public void setCurrentKey(Object key) {
if (inBatchExecut... | 3.26 |
flink_ExternalPythonKeyedProcessOperator_processTimer_rdh | /**
* It is responsible to send timer data to python worker when a registered timer is fired. The
* input data is a Row containing 4 fields: TimerFlag 0 for proc time, 1 for event time;
* Timestamp of the fired timer; Current watermark and the key of the timer.
*
* @param timeDomain
* The type of the timer.
* ... | 3.26 |
flink_AbstractCheckpointStats_getTaskStateStats_rdh | /**
* Returns the task state stats for the given job vertex ID or <code>null</code> if no task with
* such an ID is available.
*
* @param jobVertexId
* Job vertex ID of the task stats to look up.
* @return The task state stats instance for the given ID or <code>null</code>.
*/
public TaskStateStats
getTaskStat... | 3.26 |
flink_AbstractCheckpointStats_getAllTaskStateStats_rdh | /**
* Returns all task state stats instances.
*
* @return All task state stats instances.
*/public Collection<TaskStateStats> getAllTaskStateStats() {
return taskStats.values();
} | 3.26 |
flink_AbstractCheckpointStats_getLatestAckTimestamp_rdh | /**
* Returns the ack timestamp of the latest acknowledged subtask or <code>-1</code> if none was
* acknowledged yet.
*
* @return Ack timestamp of the latest acknowledged subtask or <code>-1</code>.
*/
public long getLatestAckTimestamp() {
SubtaskStateStats subtask = getLatestAc... | 3.26 |
flink_AbstractPagedInputView_getHeaderLength_rdh | /**
*
* @return header length.
*/
public int getHeaderLength() {
return headerLength;
} | 3.26 |
flink_AbstractPagedInputView_getCurrentSegment_rdh | // --------------------------------------------------------------------------------------------
// Page Management
// --------------------------------------------------------------------------------------------
/**
* Gets the memory segment that will be used to read the next bytes from. If the segment is
* exactly ex... | 3.26 |
flink_AbstractPagedInputView_read_rdh | // --------------------------------------------------------------------------------------------
// Data Input Specific methods
// --------------------------------------------------------------------------------------------
@Overridepublic int read(byte[] b) throws IOException {
return read(b, 0, b.length);
} | 3.26 |
flink_AbstractPagedInputView_clear_rdh | /**
* Clears the internal state of the view. After this call, all read attempts will fail, until
* the {@link #advance()} or {@link #seekInput(MemorySegment, int, int)} method have been
* invoked.
*/
protected void clear() {
this.currentSegment = null;
this.positionInSegment = this.headerLength;
this.l... | 3.26 |
flink_AbstractPagedInputView_getCurrentSegmentLimit_rdh | /**
* Gets the current limit in the memory segment. This value points to the byte one after the
* last valid byte in the memory segment.
*
* @return The current limit in the memory segment.
* @see #getCurrentPositionInSegment()
*/
public int getCurrentSegmentLimit() {
return this.limitInSegment;
}
/**
* The... | 3.26 |
flink_AbstractPagedInputView_seekInput_rdh | /**
* Sets the internal state of the view such that the next bytes will be read from the given
* memory segment, starting at the given position. The memory segment will provide bytes up to
* the given limit position.
*
* @param segment
* The segment to read the next bytes from.
* @param positionInSegment
* ... | 3.26 |
flink_AbstractPagedInputView_advance_rdh | /**
* Advances the view to the next memory segment. The reading will continue after the header of
* the next segment. This method uses {@link #nextSegment(MemorySegment)} and {@link #getLimitForSegment(MemorySegment)} to get the next segment and set its limit.
*
* @throws IOException
* Thrown, if the next segmen... | 3.26 |
flink_FactoryUtils_loadAndInvokeFactory_rdh | /**
* Loads all factories for the given class using the {@link ServiceLoader} and attempts to
* create an instance.
*
* @param factoryInterface
* factory interface
* @param factoryInvoker
* factory invoker
* @param defaultProvider
* default factory provider
* @param <R>
* resource type
* @param <F>
... | 3.26 |
flink_QueryOperation_asSerializableString_rdh | /**
* Returns a string that fully serializes this instance. The serialized string can be used for
* storing the query in e.g. a {@link org.apache.flink.table.catalog.Catalog} as a view.
*
* @return detailed string for persisting in a catalog
* @see Operation#asSummaryString()
*/
default String asSerializableStrin... | 3.26 |
flink_ContinuousEnumerationSettings_toString_rdh | // ------------------------------------------------------------------------
@Override
public String
toString() {
return (("ContinuousEnumerationSettings{" + "discoveryInterval=") + discoveryInterval) + '}';
} | 3.26 |
flink_DataSource_getSplitDataProperties_rdh | /**
* Returns the {@link org.apache.flink.api.java.io.SplitDataProperties} for the {@link org.apache.flink.core.io.InputSplit}s of this DataSource for configurations.
*
* <p>SplitDataProperties can help to generate more efficient execution plans.
*
* <p><b> IMPORTANT: Incorrect configuration of SplitDataProperties... | 3.26 |
flink_DataSource_getInputFormat_rdh | /**
* Gets the input format that is executed by this data source.
*
* @return The input format that is executed by this data source.
*/
@Internal
public InputFormat<OUT, ?> getInputFormat() {
return this.inputFormat;} | 3.26 |
flink_DataSource_translateToDataFlow_rdh | // --------------------------------------------------------------------------------------------
protected GenericDataSourceBase<OUT, ?> translateToDataFlow() {
String v0 = (this.name != null) ? this.name : ((("at " +
dataSourceLocationName) + " (") + inputFormat.getClass().getNa... | 3.26 |
flink_DataSource_getParameters_rdh | /**
*
* @return Configuration for the InputFormat.
*/public Configuration getParameters() {
return this.parameters;
} | 3.26 |
flink_DataSource_withParameters_rdh | /**
* Pass a configuration to the InputFormat.
*
* @param parameters
* Configuration parameters
*/
public DataSource<OUT> withParameters(Configuration parameters) {
this.parameters = parameters;
return this;
} | 3.26 |
flink_FieldAccessorFactory_getAccessor_rdh | /**
* Creates a {@link FieldAccessor} for the field that is given by a field expression, which can
* be used to get and set the specified field on instances of this type.
*
* @param field
* The field expression
* @param config
* Configuration object
* @param <F>
* The type of the field to access
* @retu... | 3.26 |
flink_AllWindowedStream_allowedLateness_rdh | /**
* Sets the time by which elements are allowed to be late. Elements that arrive behind the
* watermark by more than the specified time will be dropped. By default, the allowed lateness
* is {@code 0L}.
*
* <p>Setting an allowed lateness is only valid for event-time windows.
*/
@PublicEvolving
public AllWindowe... | 3.26 |
flink_AllWindowedStream_m1_rdh | /**
* Applies the given window function to each window. The window function is called for each
* evaluation of the window. The output of the window function is interpreted as a regular
* non-windowed stream.
*
* <p>Note that this function requires that all data in the windows is buffered until the window
* is eva... | 3.26 |
flink_AllWindowedStream_trigger_rdh | /**
* Sets the {@code Trigger} that should be used to trigger window emission.
*/
@PublicEvolving
public AllWindowedStream<T, W> trigger(Trigger<? super T, ? super W> trigger) {
if ((windowAssigner instanceof MergingWindowAssigner) && (!trigger.canMerge())) {
throw new UnsupportedOperationException("A me... | 3.26 |
flink_AllWindowedStream_m0_rdh | /**
* Applies the given window function to each window. The window function is called for each
* evaluation of the window for each key individually. The output of the window function is
* interpreted as a regular non-windowed stream.
*
* <p>Arriving data is incrementally aggregated using the given reducer.
*
* @... | 3.26 |
flink_AllWindowedStream_apply_rdh | /**
* Applies the given window function to each window. The window function is called for each
* evaluation of the window for each key individually. The output of the window function is
* interpreted as a regular non-windowed stream.
*
* <p>Arriving data is incrementally aggregated using t... | 3.26 |
flink_AllWindowedStream_getExecutionEnvironment_rdh | // ------------------------------------------------------------------------
// Utilities
// ------------------------------------------------------------------------
public StreamExecutionEnvironment getExecutionEnvironment() {
return input.getExecutionEnvironment();
} | 3.26 |
flink_AllWindowedStream_minBy_rdh | /**
* Applies an aggregation that gives the minimum element of the pojo data stream by the given
* field expression for every window. A field expression is either the name of a public field or
* a getter method with parentheses of the {@link DataStream DataStreams} underlying type. A dot
* can be used to drill down... | 3.26 |
flink_AllWindowedStream_aggregate_rdh | /**
* Applies the given window function to each window. The window function is called for each
* evaluation of the window for each key individually. The output of the window function is
* interpreted as a regular non-windowed stream.
*
* <p>Arriving data is incrementally aggregated using the given aggregate functi... | 3.26 |
flink_AllWindowedStream_sideOutputLateData_rdh | /**
* Send late arriving data to the side output identified by the given {@link OutputTag}. Data is
* considered late after the watermark has passed the end of the window plus the allowed
* lateness set using {@link #allowedLateness(Time)}.
*
* <p>You can get the stream of late data using {... | 3.26 |
flink_AllWindowedStream_process_rdh | /**
* Applies the given window function to each window. The window function is called for each
* evaluation of the window. The output of the window function is interpreted as a regular
* non-windowed stream.
*
* <p>Note that this function requires that all data in the windows is buffered until the window
* is eva... | 3.26 |
flink_AllWindowedStream_sum_rdh | /**
* Applies an aggregation that sums every window of the pojo data stream at the given field for
* every window.
*
* <p>A field expression is either the name of a public field or a getter method with
* parentheses of the stream's underlying type. A dot can be used to drill down into objects, as
* in {@code "fie... | 3.26 |
flink_AllWindowedStream_maxBy_rdh | /**
* Applies an aggregation that gives the maximum element of the pojo data stream by the given
* field expression for every window. A field expression is either the name of a public field or
* a getter method with parentheses of the {@link DataStream}S underlying type. A dot can be
* used to drill down into objec... | 3.26 |
flink_AllWindowedStream_reduce_rdh | /**
* Applies the given window function to each window. The window function is called for each
* evaluation of the window for each key individually. The output of the window function is
* interpreted as a regular non-windowed stream.
*
* <p>Arriving data is incrementally aggregated using the given reducer.
*
* @... | 3.26 |
flink_AllWindowedStream_min_rdh | /**
* Applies an aggregation that gives the minimum value of the pojo data stream at the given
* field expression for every window.
*
* <p>A field expression is either the name of a public field or a getter method with
* parentheses of the {@link DataStream}S underlying type. A dot can be used to drill down into
... | 3.26 |
flink_AllWindowedStream_max_rdh | /**
* Applies an aggregation that gives the maximum value of the pojo data stream at the given
* field expression for every window. A field expression is either the name of a public field or
* a getter method with parentheses of the {@link DataStream DataStreams} underlying type. A dot
* can be used to drill down i... | 3.26 |
flink_AllWindowedStream_evictor_rdh | /**
* Sets the {@code Evictor} that should be used to evict elements from a window before emission.
*
* <p>Note: When using an evictor window performance will degrade significantly, since
* incremental aggregation of window results cannot be used.
*/
@PublicEvolving
public AllWindowedStream<T, W> evictor(Evictor<?... | 3.26 |
flink_PartialCachingAsyncLookupProvider_of_rdh | /**
* Build a {@link PartialCachingAsyncLookupProvider} from the specified {@link AsyncLookupFunction} and {@link LookupCache}.
*/
static PartialCachingAsyncLookupProvider of(AsyncLookupFunction asyncLookupFunction, LookupCache cache) {
return new PartialCachingAsyncLookupProvider() {
@Override
pu... | 3.26 |
flink_TaskExecutorManager_getTotalRegisteredResources_rdh | // ---------------------------------------------------------------------------------------------
// slot / resource counts
// ---------------------------------------------------------------------------------------------
public ResourceProfile getTotalRegisteredResources() {
return taskManagerRegistrations.values().... | 3.26 |
flink_TaskExecutorManager_clearPendingTaskManagerSlots_rdh | /**
* clear all pending task manager slots.
*/
public void clearPendingTaskManagerSlots() {
if (!resourceAllocator.isSupported()) {
return;
}
if (!pendingSlots.isEmpty()) {
this.pendingSlots.clear();
declareNeededResourcesWithDelay();
}
} | 3.26 |
flink_TaskExecutorManager_occupySlot_rdh | // ---------------------------------------------------------------------------------------------
// TaskExecutor slot book-keeping
// ---------------------------------------------------------------------------------------------
public void occupySlot(InstanceID instanceId) {
taskManagerRegistrations.get(instanceId)... | 3.26 |
flink_TaskExecutorManager_isTaskManagerRegistered_rdh | // ---------------------------------------------------------------------------------------------
// TaskExecutor (un)registration
// ---------------------------------------------------------------------------------------------
public boolean isTaskManagerRegistered(InstanceID instanceId) {
return taskManagerRegistr... | 3.26 |
flink_TaskExecutorManager_checkTaskManagerTimeoutsAndRedundancy_rdh | // ---------------------------------------------------------------------------------------------
// TaskExecutor idleness / redundancy
// ---------------------------------------------------------------------------------------------
private void checkTaskManagerTimeoutsAndRedundancy() {
if (!taskManagerRegistrations... | 3.26 |
flink_TaskExecutorManager_removePendingTaskManagerSlots_rdh | /**
* remove unused pending task manager slots.
*
* @param unusedResourceCounter
* the count of unused resources.
*/
public void removePendingTaskManagerSlots(ResourceCounter unusedResourceCounter) {
if
(!resourceAllocator.isSupported()) {
return;
}
Preconditions.checkState(unusedResource... | 3.26 |
flink_TaskExecutorManager_declareNeededResources_rdh | /**
* DO NOT call this method directly. Use {@link #declareNeededResourcesWithDelay()} instead.
*/
private void declareNeededResources() {
resourceAllocator.declareResourceNeeded(getResourceDeclaration());
} | 3.26 |
flink_TaskExecutorManager_allocateWorkers_rdh | /**
* Allocate a number of workers based on the input param.
*
* @param workerNum
* the number of workers to allocate
* @return the number of successfully allocated workers
*/
private int allocateWorkers(int workerNum) {
int allocatedWorkerNum = 0;
for (int i = 0; i < workerNum; ++i) {
if (all... | 3.26 |
flink_StreamWindowSQLExample_createTempFile_rdh | /**
* Creates a temporary file with the contents and returns the absolute path.
*/
private static String createTempFile(String contents) throws IOException {
File tempFile = File.createTempFile("orders", ".csv");
tempFile.deleteOnExit();
FileUtils.writeFileUtf8(tempFile, contents);
return tempFile.t... | 3.26 |
flink_DoubleZeroConvergence_isConverged_rdh | /**
* Returns true, if the aggregator value is zero, false otherwise.
*
* @param iteration
* The number of the iteration superstep. Ignored in this case.
* @param value
* The aggregator value, which is compared to zero.
* @return True, if the aggregator value is zero, false otherwise.
*/
@Override
public bo... | 3.26 |
flink_SortMergeResultPartition_writeLargeRecord_rdh | /**
* Spills the large record into the target {@link PartitionedFile} as a separate data region.
*/
private void writeLargeRecord(ByteBuffer record, int targetSubpartition, DataType dataType, boolean isBroadcast) throws
IOException {
// a large record will be spilled to a separated data region
fileWriter.startNewRegi... | 3.26 |
flink_GroupReduceIterator_reduce_rdh | // -------------------------------------------------------------------------------------------
@Override
public final void reduce(Iterable<IN> values, Collector<OUT> out) throws Exception {
for (Iterator<OUT> iter = reduceGroup(values); iter.hasNext();) {
out.collect(iter.next());
}
} | 3.26 |
flink_TypeInferenceUtil_createInvalidInputException_rdh | /**
* Returns an exception for invalid input arguments.
*/
public static ValidationException createInvalidInputException(TypeInference typeInference, CallContext callContext, ValidationException cause) {
return new ValidationException(String.format("Invalid input arguments. Expected signatures are:\n%s", generate... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.