name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
flink_ScopeFormat_concat_rdh | /**
* Concatenates the given component names separated by the delimiter character. Additionally the
* character filter is applied to all component names.
*
* @param filter
* Character filter to be applied to the component names
* @param delimiter
* Delimiter to separate component names
* @param components
... | 3.26 |
flink_ScopeFormat_toString_rdh | // ------------------------------------------------------------------------
@Override
public String toString() {
return ("ScopeFormat '" + format) + '\'';
} | 3.26 |
flink_ScopeFormat_format_rdh | // ------------------------------------------------------------------------
public String format() {
return format;
} | 3.26 |
flink_ScopeFormat_asVariable_rdh | // ------------------------------------------------------------------------
// Utilities
// ------------------------------------------------------------------------
/**
* Formats the given string to resemble a scope variable.
*
* @param scope
* The string to format
* @return The formatted string
*/
public stati... | 3.26 |
flink_FlinkRexBuilder_toComparable_rdh | /**
* Copied from the {@link RexBuilder} to fix the {@link RexBuilder#makeIn}.
*/
@SuppressWarnings("rawtypes")
private static <C extends Comparable<C>> C toComparable(Class<C> clazz, RexNode point) {
switch (point.getKind()) {
case LITERAL :
final RexLiteral literal = ((RexLiteral) (point))... | 3.26 |
flink_FlinkRexBuilder_m0_rdh | /**
* Creates a literal of the default value for the given type.
*
* <p>This value is:
*
* <ul>
* <li>0 for numeric types;
* <li>FALSE for BOOLEAN;
* <li>The epoch for TIMESTAMP and DATE;
* <li>Midnight for TIME;
* <li>The empty string for string types (CHAR, BINARY, VARCHAR, VARBINARY).
* </ul>
*... | 3.26 |
flink_FlinkRexBuilder_areAssignable_rdh | /**
* Copied from the {@link RexBuilder} to fix the {@link RexBuilder#makeIn}.
*/
private boolean areAssignable(RexNode arg, List<? extends RexNode> bounds) {
for (RexNode bound : bounds) {
if ((!SqlTypeUtil.inSameFamily(arg.getType(), bound.getType())) && (!(arg.getType().isStruct() && bound.getType().... | 3.26 |
flink_FlinkRexBuilder_makeFieldAccess_rdh | /**
* Compared to the original method we adjust the nullability of the nested column based on the
* nullability of the enclosing type.
*
* <p>If the fields type is NOT NULL, but the enclosing ROW is nullable we still can produce
* nulls.
*/
@Override
public RexNode makeFieldAccess(RexNode expr, int i) {
Rex... | 3.26 |
flink_FlinkRexBuilder_toSarg_rdh | /**
* Converts a list of expressions to a search argument, or returns null if not possible.
*
* <p>Copied from the {@link RexBuilder} to fix the {@link RexBuilder#makeIn}.
*/
@SuppressWarnings("UnstableApiUsage")
private static <C extends Comparable<C>>
Sarg<C> toSarg(Class<C> clazz, List<? extends RexNode> ranges,... | 3.26 |
flink_FlinkRexBuilder_m1_rdh | /**
* Convert the conditions into the {@code IN} and fix [CALCITE-4888]: Unexpected {@link RexNode}
* when call {@link RelBuilder#in} to create an {@code IN} predicate with a list of varchar
* literals which have different length in {@link RexBuilder#makeIn}.
*
* <p>The bug is because the origin implementation doe... | 3.26 |
flink_ResourceReconcileResult_needReconcile_rdh | /**
* Returns whether the cluster resource need reconcile.
*
* @return True if the cluster resource need reconcile, otherwise false.
*/
public boolean needReconcile() {
return ((pendingTaskManagersToRelease.size() > 0) || (taskManagersToRelease.size() > 0)) || (pendingTaskManagersToAllocate.size() > 0);
} | 3.26 |
flink_IteratorResultIterator_next_rdh | // -------------------------------------------------------------------------
// Result Iterator Methods
// -------------------------------------------------------------------------
@Nullable
@Override
public RecordAndPosition<E> next() {
if (records.hasNext()) {
recordAndPosition.setNext(records.next());ret... | 3.26 |
flink_TaskConfig_setFilehandlesDriver_rdh | // --------------------------------------------------------------------------------------------
public void setFilehandlesDriver(int filehandles) {
if (filehandles < 2) {
throw new IllegalArgumentException();
}
this.config.setInteger(FILEHANDLES_DRIVER, filehandles);
} | 3.26 |
flink_TaskConfig_setNumberOfIterations_rdh | // --------------------------------------------------------------------------------------------
// Iterations
// --------------------------------------------------------------------------------------------
public void setNumberOfIterations(int numberOfIterations) {
if (numberOfIterations <= 0) {
throw ne... | 3.26 |
flink_TaskConfig_setInputLocalStrategy_rdh | // --------------------------------------------------------------------------------------------
// Inputs
// --------------------------------------------------------------------------------------------
public void setInputLocalStrategy(int inputNum, LocalStrategy strategy) {
this.config.setInteger(INPUT_LOCAL_STRA... | 3.26 |
flink_TaskConfig_setImplicitConvergenceCriterion_rdh | /**
* Sets the default convergence criterion of a {@link DeltaIteration}
*
* @param aggregatorName
* @param convCriterion
*/
public void setImplicitConvergenceCriterion(String aggregatorName, ConvergenceCriterion<?> convCriterion) {
try {
InstantiationUtil.writeObjectToConfig(convCriterion, this.config, ITERATION_... | 3.26 |
flink_TaskConfig_setTypeSerializerFactory_rdh | // --------------------------------------------------------------------------------------------
// Miscellaneous
// --------------------------------------------------------------------------------------------
private void setTypeSerializerFactory(TypeSerializerFactory<?> factory, String classNameKey, String parameters... | 3.26 |
flink_TaskConfig_setDriver_rdh | // --------------------------------------------------------------------------------------------
// Driver
// --------------------------------------------------------------------------------------------
public void setDriver(@SuppressWarnings("rawtypes")
Class<? extends Driver> driver) {
this.config.setString(DRIVER... | 3.26 |
flink_TaskConfig_getNumberOfChainedStubs_rdh | // --------------------------------------------------------------------------------------------
public int getNumberOfChainedStubs() {
return this.config.getInteger(CHAINING_NUM_STUBS, 0);
} | 3.26 |
flink_TaskConfig_setSpillingThresholdDriver_rdh | // --------------------------------------------------------------------------------------------
public void setSpillingThresholdDriver(float threshold) {
if ((threshold < 0.0F) || (threshold > 1.0F)) {
throw new IllegalArgumentException();}
this.config.setFloat(SORT_SPILLING_THRESHOLD_DRIVER, threshold... | 3.26 |
flink_TaskConfig_getConfiguration_rdh | /**
* Gets the configuration that holds the actual values encoded.
*
* @return The configuration that holds the actual values
*/
public Configuration getConfiguration() {
return this.config;
} | 3.26 |
flink_TaskConfig_setRelativeMemoryDriver_rdh | // --------------------------------------------------------------------------------------------
// Parameters to configure the memory and I/O behavior
// --------------------------------------------------------------------------------------------
public void setRelativeMemoryDriver(double relativeMemorySize) {
this... | 3.26 |
flink_TaskConfig_setTaskName_rdh | // --------------------------------------------------------------------------------------------
// User Code
// --------------------------------------------------------------------------------------------
public void setTaskName(String name) {
if (name != null) {
this.config.setString(TASK_NAME, name);
... | 3.26 |
flink_TaskConfig_addOutputShipStrategy_rdh | // --------------------------------------------------------------------------------------------
public void addOutputShipStrategy(ShipStrategyType strategy) {
final int
outputCnt = this.config.getInteger(OUTPUTS_NUM, 0);
this.config.setInteger(OUTPUT_SHIP_STRATEGY_PREFIX + outputCnt, strategy.... | 3.26 |
flink_MetadataV3Serializer_serializeStreamStateHandle_rdh | // ------------------------------------------------------------------------
@VisibleForTesting
public static void serializeStreamStateHandle(StreamStateHandle stateHandle, DataOutputStream dos) throws IOException {
MetadataV2V3SerializerBase.serializeStreamStateHandle(stateHandle, dos); } | 3.26 |
flink_MetadataV3Serializer_serializeOperatorState_rdh | // version-specific serialization formats
// ------------------------------------------------------------------------
@Override
protected void serializeOperatorState(OperatorState operatorState, DataOutputStream dos) throws IOException {
// Operator ID
dos.writeLong(operatorState.getOper... | 3.26 |
flink_MetadataV3Serializer_serialize_rdh | // ------------------------------------------------------------------------
// (De)serialization entry points
// ------------------------------------------------------------------------
@Override
public void serialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException {
INSTANCE.serial... | 3.26 |
flink_SplitReader_seekToRow_rdh | /**
* Seek to a particular row number.
*/
default void seekToRow(long rowCount, RowData reuse) throws IOException {
for (int i =
0; i < rowCount; i++) {
boolean end = reachedEnd();
if (end) { throw new RuntimeException("Seek too many rows.");
}
nextRecord(reuse);
}
} | 3.26 |
flink_SingleInputNode_accept_rdh | // Miscellaneous
// --------------------------------------------------------------------------------------------
@Override
public void accept(Visitor<OptimizerNode> visitor) {
if (visitor.preVisit(this)) {
if (getPredecessorNode() != nu... | 3.26 |
flink_SingleInputNode_getOperator_rdh | // --------------------------------------------------------------------------------------------
@Override
public SingleInputOperator<?, ?, ?> getOperator() {
return ((SingleInputOperator<?, ?, ?>) (super.getOperator()));
} | 3.26 |
flink_SingleInputNode_computeUnclosedBranchStack_rdh | // --------------------------------------------------------------------------------------------
// Branch Handling
// --------------------------------------------------------------------------------------------
@Override
public void computeUnclosedBranchStack() {
if (this.openBranches != null) {
return;
... | 3.26 |
flink_SingleInputNode_setIncomingConnection_rdh | /**
* Sets the connection through which this node receives its input.
*
* @param inConn
* The input connection to set.
*/
public void setIncomingConnection(DagConnection inConn) {
this.inConn = inConn;
} | 3.26 |
flink_NumericColumnSummary_m0_rdh | /**
* Null, NaN, and Infinite values are ignored in this calculation.
*
* @see <a href="https://en.wikipedia.org/wiki/Mean">Arithmetic Mean</a>
*/
public Double m0() {
return mean;
} | 3.26 |
flink_NumericColumnSummary_getMissingCount_rdh | /**
* The number of "missing" values where "missing" is defined as null, NaN, or Infinity.
*
* <p>These values are ignored in some calculations like mean, variance, and standardDeviation.
*/
public long getMissingCount() {
return
(nullCount + nanCount) + infinityCount;
} | 3.26 |
flink_NumericColumnSummary_getNonNullCount_rdh | /**
* The number of non-null values in this column.
*/@Override
public long getNonNullCount() {return (f0 + nanCount) + infinityCount;
} | 3.26 |
flink_JobVertex_isInputVertex_rdh | // --------------------------------------------------------------------------------------------
public boolean isInputVertex() {return this.inputs.isEmpty();
} | 3.26 |
flink_JobVertex_toString_rdh | // --------------------------------------------------------------------------------------------
@Override
public String toString() {
return ((this.f0 + " (") + this.invokableClassName) + ')';
} | 3.26 |
flink_JobVertex_initializeOnMaster_rdh | // --------------------------------------------------------------------------------------------
/**
* A hook that can be overwritten by sub classes to implement logic that is called by the master
* when the job starts.
*
* @param context
* Provides contextual information for the initialization
* @throws Excepti... | 3.26 |
flink_JobVertex_getMaxParallelism_rdh | /**
* Gets the maximum parallelism for the task.
*
* @return The maximum parallelism for the task.
*/
public int getMaxParallelism() {
return maxParallelism;
} | 3.26 |
flink_JobVertex_getNumberOfInputs_rdh | /**
* Returns the number of inputs.
*
* @return The number of inputs.
*/
public int getNumberOfInputs() { return this.inputs.size();
} | 3.26 |
flink_JobVertex_getInvokableClassName_rdh | /**
* Returns the name of the invokable class which represents the task of this vertex.
*
* @return The name of the invokable class, <code>null</code> if not set.
*/
public String getInvokableClassName()
{
return this.invokableClassName;} | 3.26 |
flink_JobVertex_getInvokableClass_rdh | /**
* Returns the invokable class which represents the task of this vertex.
*
* @param cl
* The classloader used to resolve user-defined classes
* @return The invokable class, <code>null</code> if it is not set
*/
public Class<? extends TaskInvokable> getInvokableClass(ClassLoader cl) {
if (cl == null) {
throw ... | 3.26 |
flink_JobVertex_getName_rdh | /**
* Returns the name of the vertex.
*
* @return The name of the vertex.
*/
public String getName() {
return this.f0;} | 3.26 |
flink_JobVertex_getOperatorName_rdh | // --------------------------------------------------------------------------------------------
public String getOperatorName() {
return operatorName;
} | 3.26 |
flink_JobVertex_setParallelism_rdh | /**
* Sets the parallelism for the task.
*
* @param parallelism
* The parallelism for the task.
*/
public void setParallelism(int parallelism) {
if ((parallelism < 1) && (parallelism != ExecutionConfig.PARALLELISM_DEFAULT)) {
throw new IllegalArgumentException(("The parallelism must be at least one, or " + E... | 3.26 |
flink_JobVertex_setStrictlyCoLocatedWith_rdh | /**
* Tells this vertex to strictly co locate its subtasks with the subtasks of the given vertex.
* Strict co-location implies that the n'th subtask of this vertex will run on the same parallel
* computing instance (TaskManager) as the n'th subtask of the given vertex.
*
* <p>NOTE: Co-location is only possible bet... | 3.26 |
flink_JobVertex_getID_rdh | // --------------------------------------------------------------------------------------------
/**
* Returns the ID of this job vertex.
*
* @return The ID of this job vertex
*/
public JobVertexID getID() {
return this.id;
} | 3.26 |
flink_JobVertex_getSlotSharingGroup_rdh | /**
* Gets the slot sharing group that this vertex is associated with. Different vertices in the
* same slot sharing group can run one subtask each in the same slot.
*
* @return The slot sharing group to associate the vertex with
*/
public SlotSharingGroup getSlotSharingGroup() {
if (slotSharingGroup == null) {
... | 3.26 |
flink_JobVertex_setResources_rdh | /**
* Sets the minimum and preferred resources for the task.
*
* @param minResources
* The minimum resource for the task.
* @param preferredResources
* The preferred resource for the task.
*/
public void setResources(ResourceSpec minResources, ResourceSpec preferredResources) {
this.minResources = checkNotNu... | 3.26 |
flink_JobVertex_finalizeOnMaster_rdh | /**
* A hook that can be overwritten by sub classes to implement logic that is called by the master
* after the job completed.
*
* @param context
* Provides contextual information for the initialization
* @throws Exception
* The method may throw exceptions which cause the job to fail immediately.
*/
public ... | 3.26 |
flink_JobVertex_getMinResources_rdh | /**
* Gets the minimum resource for the task.
*
* @return The minimum resource for the task.
*/
public ResourceSpec getMinResources() {
return minResources;
} | 3.26 |
flink_JobVertex_getOrCreateResultDataSet_rdh | // --------------------------------------------------------------------------------------------
public IntermediateDataSet getOrCreateResultDataSet(IntermediateDataSetID id, ResultPartitionType partitionType) {
return this.results.computeIfAbsent(id, key -> new IntermediateDataSet(id, partitionType, this));} | 3.26 |
flink_JobVertex_getConfiguration_rdh | /**
* Returns the vertex's configuration object which can be used to pass custom settings to the
* task at runtime.
*
* @return the vertex's configuration object
*/
public Configuration getConfiguration() {
if (this.configuration == null) {
this.configuration = new Configuration();
}
return th... | 3.26 |
flink_JobVertex_setSlotSharingGroup_rdh | /**
* Associates this vertex with a slot sharing group for scheduling. Different vertices in the
* same slot sharing group can run one subtask each in the same slot.
*
* @param grp
* The slot sharing group to associate the vertex with.
*/
public void setSlotSharingGroup(SlotSharingGroup grp) {
checkNotNull(grp)... | 3.26 |
flink_JobVertex_getPreferredResources_rdh | /**
* Gets the preferred resource for the task.
*
* @return The preferred resource for the task.
*/
public ResourceSpec getPreferredResources() {
return preferredResources;
} | 3.26 |
flink_JobVertex_getParallelism_rdh | /**
* Gets the parallelism of the task.
*
* @return The parallelism of the task.
*/
public int getParallelism() {
return parallelism;
} | 3.26 |
flink_RocksDBStateDownloader_transferAllStateDataToDirectory_rdh | /**
* Transfer all state data to the target directory, as specified in the download requests.
*
* @param downloadRequests
* the list of downloads.
* @throws Exception
* If anything about the download goes wrong.
*/
public void transferAllStateDataToDirectory(Collection<StateHandleDownloadSpec> downloadReques... | 3.26 |
flink_RocksDBStateDownloader_downloadDataForStateHandle_rdh | /**
* Copies the file from a single state handle to the given path.
*/
private void downloadDataForStateHandle(Path restoreFilePath, StreamStateHandle remoteFileHandle, CloseableRegistry closeableRegistry) throws IOException {
if (closeableRegistry.isClosed()) {
ret... | 3.26 |
flink_RocksDBStateDownloader_transferAllStateDataToDirectoryAsync_rdh | /**
* Asynchronously runs the specified download requests on executorService.
*/
private Stream<CompletableFuture<Void>> transferAllStateDataToDirectoryAsync(Collection<StateHandleDownloadSpec> handleWithPaths, CloseableRegistry closeableRegistry)
{
return handleWithPaths.stream().flatMap(downloadRequest -> // Ta... | 3.26 |
flink_BroadcastVariableMaterialization_materializeVariable_rdh | // --------------------------------------------------------------------------------------------
public void materializeVariable(MutableReader<?> reader, TypeSerializerFactory<?> serializerFactory, BatchTask<?, ?> referenceHolder) throws MaterializationExpiredException, IOException {
Preconditions.checkNotNull(read... | 3.26 |
flink_BroadcastVariableMaterialization_getVariable_rdh | // --------------------------------------------------------------------------------------------
public List<T> getVariable() throws InitializationTypeConflictException {
if (!materialized) {
throw new IllegalStateException("The Broadcast Variable has not yet been materialized.");
}if... | 3.26 |
flink_SplitFetcherManager_getNumAliveFetchers_rdh | // -----------------------
@VisibleForTesting
public int getNumAliveFetchers() {
return fetchers.size();
} | 3.26 |
flink_SplitFetcherManager_createSplitFetcher_rdh | /**
* Synchronize method to ensure no fetcher is created after the split fetcher manager has
* closed.
*
* @return the created split fetcher.
* @throws IllegalStateException
* if the split fetcher manager has closed.
... | 3.26 |
flink_SplitFetcherManager_close_rdh | /**
* Close the split fetcher manager.
*
* @param timeoutMs
* the max time in milliseconds to wait.
* @throws Exception
* when failed to close the split fetcher manager.
*/
public synchronized void close(long timeoutMs) throws Exception ... | 3.26 |
flink_SplitFetcherManager_maybeShutdownFinishedFetchers_rdh | /**
* Check and shutdown the fetchers that have completed their work.
*
* @return true if all the fetchers have completed the work, false otherwise.
*/
public boolean maybeShutdownFinishedFetchers() {
Iterator<Map.Entry<Integer, SplitFetcher<E, SplitT>>> iter
= fetchers.entrySet().iterator();
while (ite... | 3.26 |
flink_PartitionTransformation_getExchangeMode_rdh | /**
* Returns the {@link StreamExchangeMode} of this {@link PartitionTransformation}.
*/
public StreamExchangeMode getExchangeMode() {
return exchangeMode;
} | 3.26 |
flink_MapDataUtil_convertToJavaMap_rdh | /**
* Converts a {@link MapData} into Java {@link Map}, the keys and values of the Java map still
* holds objects of internal data structures.
*/
public static Map<Object, Object> convertToJavaMap(MapData map, LogicalType keyType, LogicalType valueType) {
ArrayData keyArray = map.keyArray();
ArrayData valueA... | 3.26 |
flink_PythonConnectorUtils_createFirstColumnTopicSelector_rdh | /**
* Creates a selector that returns the first column of a row, and cast it to {@code clazz}.
* {@code T} should be a sub interface of {@link Function}, which accepts a {@link Row}.
*
* @param clazz
* The desired selector class to cast to, e.g. TopicSelector.class for Kafka.
* @param <T>
* An interface
*/ ... | 3.26 |
flink_RuntimeUDFContext_setBroadcastVariable_rdh | // --------------------------------------------------------------------------------------------
public void setBroadcastVariable(String name, List<?> value) {
this.uninitializedBroadcastVars.put(name, value);
this.initializedBroadcastVars.remove(name);
} | 3.26 |
flink_StreamArrowPythonGroupWindowAggregateFunctionOperator_cleanupTime_rdh | /**
* Returns the cleanup time for a window, which is {@code window.maxTimestamp +
* allowedLateness}. In case this leads to a value greated than {@link Long#MAX_VALUE} then a
* cleanup time of {@link Long#MAX_VALUE} is returned.
*
* @param window
* the window whose cleanup time we are computing.
*/
private lo... | 3.26 |
flink_StreamArrowPythonGroupWindowAggregateFunctionOperator_isWindowLate_rdh | /**
* Returns {@code true} if the watermark is after the end timestamp plus the allowed lateness of
* the given window.
*/
private boolean isWindowLate(W window) {
return windowAssigner.isEventTime() && (toEpochMillsForTimer(cleanupTime(window), f0) <= internalTimerService.currentWatermark());
} | 3.26 |
flink_StreamArrowPythonGroupWindowAggregateFunctionOperator_registerCleanupTimer_rdh | /**
* Registers a timer to cleanup the content of the window.
*
* @param window
* the window whose state to discard
*/
private void registerCleanupTimer(W window)
{
long cleanupTime = toEpochMillsForTimer(cleanupTime(window), f0);
if (cleanupTime == Long.MAX_VALUE) {
// don't set a GC timer for "end of time"
ret... | 3.26 |
flink_HadoopUtils_paramsFromGenericOptionsParser_rdh | /**
* Returns {@link ParameterTool} for the arguments parsed by {@link GenericOptionsParser}.
*
* @param args
* Input array arguments. It should be parsable by {@link GenericOptionsParser}
* @return A {@link ParameterTool}
* @throws IOException
* If arguments cannot be parsed by {@link GenericOptionsParser}
... | 3.26 |
flink_FieldParser_getParserForType_rdh | /**
* Gets the parser for the type specified by the given class. Returns null, if no parser for
* that class is known.
*
* @param type
* The class of the type to get the parser for.
* @return The parser for the given type, or null, if no such parser exists.
*/
public static <T> Class<FieldParser<T>> getParserF... | 3.26 |
flink_FieldParser_endsWithDelimiter_rdh | /**
* Checks if the given bytes ends with the delimiter at the given end position.
*
* @param bytes
* The byte array that holds the value.
* @param endPos
* The index of the byte array where the check for the delimiter ends.
* @param delim
* The delimiter to check for.
* @return true if a delimiter ends ... | 3.26 |
flink_FieldParser_nextStringEndPos_rdh | /**
* Returns the end position of a string. Sets the error state if the column is empty.
*
* @return the end position of the string or -1 if an error occurred
*/
protected final int nextStringEndPos(byte[] bytes, int startPos, int limit, byte[] delimiter) {
int endPos = startPos;
final int delimLimit =
... | 3.26 |
flink_FieldParser_setCharset_rdh | /**
* Sets the character set used for this parser.
*
* @param charset
* charset used for this parser.
*/
public void setCharset(Charset charset) {
this.charset = charset;
} | 3.26 |
flink_FieldParser_nextStringLength_rdh | /**
* Returns the length of a string. Throws an exception if the column is empty.
*
* @return the length of the string
*/
protected static final int nextStringLength(byte[] bytes, int startPos, int length, char delimiter) {
if (length <= 0) {
throw new IllegalArgumentException("I... | 3.26 |
flink_FieldParser_delimiterNext_rdh | /**
* Checks if the delimiter starts at the given start position of the byte array.
*
* <p>Attention: This method assumes that enough characters follow the start position for the
* delimiter check!
*
* @param bytes
* The byte array that holds the value.
* @param startPos
... | 3.26 |
flink_FieldParser_resetParserState_rdh | /**
* Reset the state of the parser. Called as the very first method inside {@link FieldParser#resetErrorStateAndParse(byte[], int, int, byte[], Object)}, by default it just
* reset its error state.
*/
protected void resetParserState() {
this.errorState = ParseErrorState.NONE;
} | 3.26 |
flink_FieldParser_setErrorState_rdh | /**
* Sets the error state of the parser. Called by subclasses of the parser to set the type of
* error when failing a parse.
*
* @param error
* The error state to set.
*/
protected void setErrorState(ParseErrorState error)
{
this.errorState = error;
} | 3.26 |
flink_FieldParser_getCharset_rdh | /**
* Gets the character set used for this parser.
*
* @return the charset used for this parser.
*/public Charset getCharset() {
return this.charset;
} | 3.26 |
flink_HiveParserASTNodeOrigin_getObjectType_rdh | /**
*
* @return the type of the object from which an HiveParserASTNode originated, e.g. "view".
*/public String getObjectType() {
return objectType;
} | 3.26 |
flink_HiveParserASTNodeOrigin_getObjectName_rdh | /**
*
* @return the name of the object from which an HiveParserASTNode originated, e.g. "v".
*/
public String getObjectName() {return objectName;} | 3.26 |
flink_WindowValueState_value_rdh | /**
* Returns the current value for the state under current key and the given window.
*/
public RowData value(W window) throws IOException {
windowState.setCurrentNamespace(window);
return windowState.value();
} | 3.26 |
flink_WindowValueState_update_rdh | /**
* Update the state with the given value under current key and the given window.
*
* @param window
* the window namespace.
* @param value
* the new value for the state.
*/
public void update(W window, RowData value) throws IOException {
windowState.setCurrentNamespace(window);windowState.update(valu... | 3.26 |
flink_HighAvailabilityServicesFactory_createClientHAServices_rdh | /**
* Create a {@link ClientHighAvailabilityServices} instance.
*
* @param configuration
* Flink configuration
* @return instance of {@link ClientHighAvailabilityServices}
* @throws Exception
* when ClientHAServices cannot be created
*/
default ClientHighAvailabilityServices createClientHAServices(Configura... | 3.26 |
flink_MasterHooks_triggerHook_rdh | // ------------------------------------------------------------------------
// checkpoint triggering
// ------------------------------------------------------------------------
/**
* Trigger master hook and return a completable future with state.
*
* @param hook
* The master hook given
* @param checkpointId
* ... | 3.26 |
flink_MasterHooks_reset_rdh | // ------------------------------------------------------------------------
// lifecycle
// ------------------------------------------------------------------------
/**
* Resets the master hooks.
*
* @param hooks
* The hooks to reset
* @throws FlinkException
* Thrown, if the hooks throw an exception.
*/publi... | 3.26 |
flink_MasterHooks_wrapHook_rdh | // ------------------------------------------------------------------------
// hook management
// ------------------------------------------------------------------------
/**
* Wraps a hook such that the user-code classloader is applied when the hook is invoked.
*
* @param hook
* the hook to wrap
* @param userCl... | 3.26 |
flink_MasterHooks_m0_rdh | // ------------------------------------------------------------------------
// checkpoint restoring
// ------------------------------------------------------------------------
/**
* Calls the restore method given checkpoint master hooks and passes the given master state to
* them where state with a matching name is f... | 3.26 |
flink_FieldReferenceLookup_lookupField_rdh | /**
* Tries to resolve {@link FieldReferenceExpression} using given name in underlying inputs.
*
* @param name
* name of field to look for
* @return resolved field reference or empty if could not find field with given name.
* @throws org.apache.flink.table.api.ValidationException
* if the name is ambiguous.
... | 3.26 |
flink_FieldReferenceLookup_includeExpandedColumn_rdh | // --------------------------------------------------------------------------------------------
// Shared code with SQL validator
// --------------------------------------------------------------------------------------------
public static boolean includeExpandedColumn(Column column, List<ColumnExpansio... | 3.26 |
flink_FieldReferenceLookup_getInputFields_rdh | /**
* Gives matching fields of underlying inputs in order of those inputs and order of fields
* within input.
*
* @return concatenated list of matching fields of all inputs.
*/
public List<FieldReferenceExpression> getInputFields(List<ColumnExpansionStrategy> expansionStrategies) {
return fieldReferences.strea... | 3.26 |
flink_CheckpointBarrier_hashCode_rdh | // ------------------------------------------------------------------------
@Override
public int hashCode() {
return
((int) (((id ^ (id >>> 32)) ^ timestamp) ^ (timestamp >>> 32)));} | 3.26 |
flink_CheckpointBarrier_write_rdh | // ------------------------------------------------------------------------
// Serialization
// ------------------------------------------------------------------------
//
// These methods are inherited form the generic serialization of AbstractEvent
// but would require the CheckpointBarrier to be mutable. Since all ... | 3.26 |
flink_RpcUtils_getHostname_rdh | /**
* Returns the hostname onto which the given {@link RpcService} has been bound. If the {@link RpcService} has been started in local mode, then the hostname is {@code "hostname"}.
*
* @param rpcService
* to retrieve the hostname for
* @return hostname onto which the given {@link RpcService} has been bound or l... | 3.26 |
flink_RpcUtils_extractImplementedRpcGateways_rdh | /**
* Extracts all {@link RpcGateway} interfaces implemented by the given clazz.
*
* @param clazz
* from which to extract the implemented RpcGateway interfaces
* @return A set of all implemented RpcGateway interfaces
*/
public static Set<Class<? extends RpcGateway>> extractImplementedRpcGateways(Class<?> clazz)... | 3.26 |
flink_RpcUtils_terminateRpcEndpoint_rdh | /**
* Shuts the given {@link RpcEndpoint}s down and awaits their termination.
*
* @param rpcEndpoints
* to terminate
* @throws ExecutionException
* if a problem occurred
* @throws InterruptedException
* if the operation has been interrupted
*/
@VisibleForTesting
public static void terminateRpcEndpoint(Rp... | 3.26 |
flink_RpcUtils_createRemoteRpcService_rdh | /**
* Convenient shortcut for constructing a remote RPC Service that takes care of checking for
* null and empty optionals.
*
* @see RpcSystem#remoteServiceBuilder(Configuration, String, String)
*/
public static RpcService createRemoteRpcService(RpcSystem rpcSystem, Configuration configuration, @Nullable
String ex... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.