name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
flink_LeaderElectionUtils_convertToString_rdh | /**
* Converts the passed {@link LeaderInformation} into a human-readable representation that can
* be used in log messages.
*/
public static String convertToString(LeaderInformation leaderInformation) {
return leaderInformation.isEmpty() ? "<no leader>" : convertToString(leaderInformation.getLeaderSessionID(), ... | 3.26 |
flink_AbstractExternalOneInputPythonFunctionOperator_getInputTypeInfo_rdh | // ----------------------------------------------------------------------
// Getters
// ----------------------------------------------------------------------
public TypeInformation<IN> getInputTypeInfo() {
return inputTypeInfo;
} | 3.26 |
flink_NumberSequenceSource_getProducedType_rdh | // ------------------------------------------------------------------------
// source methods
// ------------------------------------------------------------------------
@Overridepublic TypeInformation<Long> getProducedType() {
return Types.LONG;
} | 3.26 |
flink_StickyAllocationAndLocalRecoveryTestJob_m0_rdh | /**
* This code is copied from Stack Overflow.
*
* <p><a
* href="https://stackoverflow.com/questions/35842">https://stackoverflow.com/questions/35842</a>,
* answer <a
* href="https://stackoverflow.com/a/12066696/9193881">https://stackoverflow.com/a/12066696/9193881</a>
*
* <p>Author: <a href="https://stackoverf... | 3.26 |
flink_MaxwellJsonFormatFactory_validateEncodingFormatOptions_rdh | /**
* Validator for maxwell encoding format.
*/
private static void
validateEncodingFormatOptions(ReadableConfig tableOptions) {
JsonFormatOptionsUtil.validateEncodingFormatOptions(tableOptions);
} | 3.26 |
flink_MaxwellJsonFormatFactory_validateDecodingFormatOptions_rdh | /**
* Validator for maxwell decoding format.
*/
private static void validateDecodingFormatOptions(ReadableConfig tableOptions) {
JsonFormatOptionsUtil.validateDecodingFormatOptions(tableOptions);
} | 3.26 |
flink_AvroWriters_forReflectRecord_rdh | /**
* Creates an {@link AvroWriterFactory} for the given type. The Avro writers will use reflection
* to create the schema for the type and use that schema to write the records.
*
* @param type
* The class of the type to write.
*/
public static <T> AvroWriterFactory<T> forReflectRecord(Class<T> type) {
String v... | 3.26 |
flink_AvroWriters_forSpecificRecord_rdh | /**
* Creates an {@link AvroWriterFactory} for an Avro specific type. The Avro writers will use the
* schema of that specific type to build and write the records.
*
* @param type
* The class of the type to write.
*/
public static <T extends SpecificRecordBase> AvroWriterFactory<T> forSpecificRecord(Class<T> t... | 3.26 |
flink_AvroWriters_forGenericRecord_rdh | /**
* Creates an {@link AvroWriterFactory} that accepts and writes Avro generic types. The Avro
* writers will use the given schema to build and write the records.
*
* @param schema
* The schema of the generic type.
*/
public static AvroWriterFactory<GenericRecord> forGenericReco... | 3.26 |
flink_JobResult_isSuccess_rdh | /**
* Returns {@code true} if the job finished successfully.
*/
public boolean isSuccess() {
return (applicationStatus == ApplicationStatus.SUCCEEDED) || ((applicationStatus == ApplicationStatus.UNKNOWN) && (serializedThrowable == null));
} | 3.26 |
flink_JobResult_toJobExecutionResult_rdh | /**
* Converts the {@link JobResult} to a {@link JobExecutionResult}.
*
* @param classLoader
* to use for deserialization
* @return JobExecutionResult
* @throws JobCancellationException
* if the job was cancelled
* @throws JobExecutionException
* if the job executi... | 3.26 |
flink_JobResult_createFrom_rdh | /**
* Creates the {@link JobResult} from the given {@link AccessExecutionGraph} which must be in a
* globally terminal state.
*
* @param accessExecutionGraph
* to create the JobResult from
* @return JobResult of the given AccessExecutionGraph
*/
public static JobResult createFrom(AccessExecutionGraph accessExe... | 3.26 |
flink_JsonSerdeUtil_hasJsonCreatorAnnotation_rdh | /**
* Return true if the given class's constructors have @JsonCreator annotation, else false.
*/
public static boolean hasJsonCreatorAnnotation(Class<?> clazz) {
for (Constructor<?> constructor : clazz.getDeclaredConstructors()) {
for (Annotation annotation : constructor.getAnnotations()) {
if... | 3.26 |
flink_JsonSerdeUtil_traverse_rdh | // Utilities for SerDes implementations
static JsonParser traverse(TreeNode node, ObjectCodec objectCodec) throws IOException {
JsonParser jsonParser = node.traverse(objectCodec);
// https://stackoverflow.com/questions/55855414/custom-jackson-deserialization-getting-com-fasterxml-jackson-databind-exc-mism
if (!node.isM... | 3.26 |
flink_HiveShimV100_getViews_rdh | // 1.x client doesn't support filtering tables by type, so here we need to get all tables and
// filter by ourselves
@Override
public List<String> getViews(IMetaStoreClient client, String databaseName) throws UnknownDBException, TException {
// We don't have to use reflection here because client.getAllTables(String) is... | 3.26 |
flink_TwoPhaseCommitSinkFunction_recoverAndAbort_rdh | /**
* Abort a transaction that was rejected by a coordinator after a failure.
*/
protected void recoverAndAbort(TXN transaction) {
m0(transaction);
} | 3.26 |
flink_TwoPhaseCommitSinkFunction_finishRecoveringContext_rdh | /**
* Callback for subclasses which is called after restoring (each) user context.
*
* @param handledTransactions
* transactions which were already committed or aborted and do not
* need further handling
*/
protected void finishRecoveringContext(Collection<TXN> handledTransactions) {
} | 3.26 |
flink_TwoPhaseCommitSinkFunction_invoke_rdh | // ------ entry points for above methods implementing {@CheckPointedFunction} and
// {@CheckpointListener} ------
/**
* This should not be implemented by subclasses.
*/
@Override
public final void invoke(IN value) throws Exception {
} | 3.26 |
flink_TwoPhaseCommitSinkFunction_finishProcessing_rdh | /**
* This method is called at the end of data processing.
*
* <p>The method is expected to flush all remaining buffered data. Exceptions will cause the
* pipeline to be recognized as failed, because the last data items are not processed properly.
* You may use this method to flush remaining buffered elements in t... | 3.26 |
flink_TwoPhaseCommitSinkFunction_setTransactionTimeout_rdh | /**
* Sets the transaction timeout. Setting only the transaction timeout has no effect in itself.
*
* @param transactionTimeout
* The transaction timeout in ms.
* @see #ignoreFailuresAfterTransactionTimeout()
* @see #enableTransactionTimeoutWarnings(double)
*/
protected TwoPhaseCommitSinkFunction<IN, TXN, CONT... | 3.26 |
flink_TwoPhaseCommitSinkFunction_ignoreFailuresAfterTransactionTimeout_rdh | /**
* If called, the sink will only log but not propagate exceptions thrown in {@link #recoverAndCommit(Object)} if the transaction is older than a specified transaction timeout.
* The start time of an transaction is determined by {@link System#currentTimeMillis()}. By
* default, failures are propagated.
*/
protect... | 3.26 |
flink_TwoPhaseCommitSinkFunction_enableTransactionTimeoutWarnings_rdh | /**
* Enables logging of warnings if a transaction's elapsed time reaches a specified ratio of the
* <code>transactionTimeout</code>. If <code>warningRatio</code> is 0, a warning will be always
* logged when committing the transaction.
*
* @param warningRatio
* A value in the range [0,1].
* @return */
protect... | 3.26 |
flink_TwoPhaseCommitSinkFunction_recoverAndCommit_rdh | /**
* Invoked on recovered transactions after a failure. User implementation must ensure that this
* call will eventually succeed. If it fails, Flink application will be restarted and it will be
* invoked again. If it does not succeed eventually, a data loss will occur. Transactions will
* be recovered in an order ... | 3.26 |
flink_TwoPhaseCommitSinkFunction_m1_rdh | /**
* This method must be the only place to call {@link #recoverAndCommit(Object)} to ensure that
* the configuration parameters {@link #transactionTimeout} and {@link #ignoreFailuresAfterTransactionTimeout} are respected.
*/
private void m1(TransactionHolder<TXN> transactionHolder) {
try {
logWarningIfT... | 3.26 |
flink_LogicalTypeDataTypeConverter_m0_rdh | /**
* It convert {@link LegacyTypeInformationType} to planner types.
*/
@Deprecated
public static LogicalType
m0(DataType dataType) {
return PlannerTypeUtils.removeLegacyTypes(dataType.getLogicalType());
} | 3.26 |
flink_SingleInputGate_retriggerPartitionRequest_rdh | /**
* Retriggers a partition request.
*/
public void retriggerPartitionRequest(IntermediateResultPartitionID partitionId, int subpartitionIndex) throws IOException {
synchronized(requestLock) {
if (!closeFuture.isDone()) {
final InputChannel ch = inputChannels.get(new SubpartitionInfo(partitio... | 3.26 |
flink_SingleInputGate_getConsumedPartitionType_rdh | /**
* Returns the type of this input channel's consumed result partition.
*
* @return consumed result partition type
*/
public ResultPartitionType
getConsumedPartitionType() {
return consumedPartitionType;} | 3.26 |
flink_SingleInputGate_notifyPriorityEvent_rdh | /**
* Notifies that the respective channel has a priority event at the head for the given buffer
* number.
*
* <p>The buffer number limits the notification to the respective buffer and voids the whole
* notification in case that the buffer has been polled in the meantime. That is, if task thread
* polls the enque... | 3.26 |
flink_SingleInputGate_queueChannelUnsafe_rdh | /**
* Queues the channel if not already enqueued and not received EndOfPartition, potentially
* raising the priority.
*
* @return true iff it has been enqueued/prioritized = some change to {@link #inputChannelsWithData} happened
... | 3.26 |
flink_SingleInputGate_getInputChannels_rdh | // ------------------------------------------------------------------------
public Map<SubpartitionInfo, InputChannel> getInputChannels() {
return inputChannels;
} | 3.26 |
flink_SingleInputGate_setBufferPool_rdh | // ------------------------------------------------------------------------
// Setup/Life-cycle
// ------------------------------------------------------------------------
public void setBufferPool(BufferPool bufferPool) {
checkState(this.bufferPool == null, "Bug in input gate setup logic: buffer pool has" + "alrea... | 3.26 |
flink_SingleInputGate_getNumberOfInputChannels_rdh | // ------------------------------------------------------------------------
// Properties
// ------------------------------------------------------------------------
@Override
public int getNumberOfInputChannels() {
return numberOfInputChannels;
} | 3.26 |
flink_SingleInputGate_setupChannels_rdh | /**
* Assign the exclusive buffers to all remote input channels directly for credit-based mode.
*/
@VisibleForTesting
public void setupChannels()
thro... | 3.26 |
flink_SingleInputGate_notifyChannelNonEmpty_rdh | // ------------------------------------------------------------------------
// Channel notifications
// ------------------------------------------------------------------------
void notifyChannelNonEmpty(InputChannel channel) {
if (enabledTieredStorage()) {
TieredStorageConsumerSpec tieredStorageConsumerSpe... | 3.26 |
flink_SingleInputGate_getNext_rdh | // ------------------------------------------------------------------------
@Override
public Optional<BufferOrEvent> getNext() throws IOException, InterruptedException {
return getNextBufferOr... | 3.26 |
flink_DeduplicateFunctionHelper_processFirstRowOnProcTime_rdh | /**
* Processes element to deduplicate on keys with process time semantic, sends current element if
* it is first row.
*
* @param currentRow
* latest row received by deduplicate function
* @param state
* state of function
* @param out
* underlying collector
*/
static void processFirstRowOnProcTime(RowDa... | 3.26 |
flink_DeduplicateFunctionHelper_updateDeduplicateResult_rdh | /**
* Collect the updated result for duplicate row.
*
* @param generateUpdateBefore
* flag to generate UPDATE_BEFORE message or not
* @param generateInsert
* flag to generate INSERT message or not
* @param preRow
* previous row under the key
* @param currentRow
* current row under the key which is the... | 3.26 |
flink_DeduplicateFunctionHelper_checkInsertOnly_rdh | /**
* check message should be insert only.
*/
static void checkInsertOnly(RowData currentRow) {
Preconditions.checkArgument(currentRow.getRowKind() == RowKind.INSERT);
} | 3.26 |
flink_DeduplicateFunctionHelper_processLastRowOnProcTime_rdh | /**
* Utility for deduplicate function.
*/public class DeduplicateFunctionHelper {
/**
* Processes element to deduplicate on keys with process time semantic, sends current element as
* last row, retracts previous element if needed.
*
* @param currentRow
* latest row received by deduplic... | 3.26 |
flink_DeduplicateFunctionHelper_processLastRowOnChangelog_rdh | /**
* Processes element to deduplicate on keys, sends current element as last row, retracts
* previous element if needed.
*
* <p>Note: we don't support stateless mode yet. Because this is not safe for Kafka tombstone
* messages which doesn't contain full content. This can be a future improvement if the
* downstre... | 3.26 |
flink_DeduplicateFunctionHelper_isDuplicate_rdh | /**
* Returns current row is duplicate row or not compared to previous row.
*/
public static boolean isDuplicate(RowData preRow, RowData currentRow, int rowtimeIndex, boolean keepLastRow) {
if (keepLastRow) {
return (preRow == null) || (getRowtime(preRow, rowtimeIndex) <= getRowtime(currentRow, rowtimeInd... | 3.26 |
flink_LeaderRetriever_getLeaderNow_rdh | /**
* Returns the current leader information if available. Otherwise it returns an empty optional.
*
* @return The current leader information if available. Otherwise it returns an empty optional.
* @throws Exception
* if the leader future has been completed with an exception
*/
public Optional<Tuple2<String, UU... | 3.26 |
flink_LeaderRetriever_getLeaderFuture_rdh | /**
* Returns the current JobManagerGateway future.
*/public CompletableFuture<Tuple2<String, UUID>> getLeaderFuture() {
return atomicLeaderFuture.get();
} | 3.26 |
flink_TwoInputTransformation_getInput2_rdh | /**
* Returns the second input {@code Transformation} of this {@code TwoInputTransformation}.
*/
public Transformation<IN2> getInput2() {
return input2;
} | 3.26 |
flink_TwoInputTransformation_getInputType2_rdh | /**
* Returns the {@code TypeInformation} for the elements from the second input.
*/
public TypeInformation<IN2> getInputType2() {
return input2.getOutputType();
} | 3.26 |
flink_TwoInputTransformation_setStateKeySelectors_rdh | /**
* Sets the {@link KeySelector KeySelectors} that must be used for partitioning keyed state of
* this transformation.
*
* @param stateKeySelector1
* The {@code KeySelector} to set for the first input
* @param stateKeySelector2
* The {@code KeySelector} to set for the first input
*/
public void setStateKe... | 3.26 |
flink_TwoInputTransformation_m0_rdh | /**
* Returns the {@code TypeInformation} for the elements from the first input.
*/
public TypeInformation<IN1> m0() {
return input1.getOutputType();
} | 3.26 |
flink_TwoInputTransformation_getInput1_rdh | /**
* Returns the first input {@code Transformation} of this {@code TwoInputTransformation}.
*/
public Transformation<IN1> getInput1() {
return input1;
} | 3.26 |
flink_TwoInputTransformation_getStateKeySelector2_rdh | /**
* Returns the {@code KeySelector} that must be used for partitioning keyed state in this
* Operation for the second input.
*
* @see #setStateKeySelectors
*/
public KeySelector<IN2, ?> getStateKeySelector2() {
return stateKeySelector2;
} | 3.26 |
flink_TwoInputTransformation_getOperatorFactory_rdh | /**
* Returns the {@code StreamOperatorFactory} of this Transformation.
*/
public StreamOperatorFactory<OUT> getOperatorFactory() {
return operatorFactory;
} | 3.26 |
flink_RetryPolicy_fromConfig_rdh | /**
* Retry policy to use by {@link RetryingExecutor}.
*/
@Internalpublic interface RetryPolicy {static RetryPolicy fromConfig(ReadableConfig config) {
switch (config.get(FsStateChangelogOptions.RETRY_POLICY)) {
case "fixed" :return fixed(config.get(FsStateChangelogOptions.RETRY_MAX_ATTEMPTS), config.get(... | 3.26 |
flink_DependencyParser_getDepth_rdh | /**
* The depths returned by this method do NOT return a continuous sequence.
*
* <pre>
* +- org.apache.flink:...
* | +- org.apache.flink:...
* | | \- org.apache.flink:...
* ...
* </pre>
*/
private static int getDepth(String line) {
final int level = line.indexOf('+');
if (level != (-1)) {
... | 3.26 |
flink_DependencyParser_parseDependencyCopyOutput_rdh | /**
* Parses the output of a Maven build where {@code dependency:copy} was used, and returns a set
* of copied dependencies for each module.
*
* <p>The returned dependencies will NEVER contain the scope or optional flag.
*/
public static Map<String, Set<Dependency>> parseDependencyCopyOutput(Path buildOutput) thro... | 3.26 |
flink_DependencyParser_parseDependencyTreeOutput_rdh | /**
* Parses the output of a Maven build where {@code dependency:tree} was used, and returns a set
* of dependencies for each module.
*/
public static Map<String, DependencyTree> parseDependencyTreeOutput(Path
buildOutput) throws IOException {
return processLines(buildOutput, DependencyParser::parseDependencyTre... | 3.26 |
flink_TaskExecutorRegistrationSuccess_getClusterInformation_rdh | /**
* Gets the cluster information.
*/public ClusterInformation getClusterInformation() {
return clusterInformation;
} | 3.26 |
flink_TaskExecutorRegistrationSuccess_getResourceManagerId_rdh | /**
* Gets the unique ID that identifies the ResourceManager.
*/
public ResourceID getResourceManagerId() {
return resourceManagerResourceId;
} | 3.26 |
flink_TaskExecutorRegistrationSuccess_getInitialTokens_rdh | /**
* Gets the initial tokens.
*/
public byte[] getInitialTokens() {return initialTokens;
} | 3.26 |
flink_TaskExecutorRegistrationSuccess_getRegistrationId_rdh | /**
* Gets the ID that the ResourceManager assigned the registration.
*/
public InstanceID getRegistrationId() {return registrationId;
} | 3.26 |
flink_BasicTypeInfo_hashCode_rdh | // --------------------------------------------------------------------------------------------
@Override
public int hashCode() {
return (31 * Objects.hash(clazz, serializer, comparatorClass)) + Arrays.hashCode(possibleCastTargetTypes);
} | 3.26 |
flink_BasicTypeInfo_getInfoFor_rdh | // --------------------------------------------------------------------------------------------
@PublicEvolving
public static <X> BasicTypeInfo<X> getInfoFor(Class<X> type) {
if (type ==
null) {
throw new NullPointerException();
}
@SuppressWarnings("unchecked")
Basi... | 3.26 |
flink_BasicTypeInfo_shouldAutocastTo_rdh | // --------------------------------------------------------------------------------------------
/**
* Returns whether this type should be automatically casted to the target type in an arithmetic
* operation.
*/
@PublicEvolving
public boolean shouldAutocastTo(BasicTypeInfo<?> to) {
for (Class<?> possibleTo : poss... | 3.26 |
flink_CopyableValueSerializer_snapshotConfiguration_rdh | // --------------------------------------------------------------------------------------------
// Serializer configuration snapshotting & compatibility
// --------------------------------------------------------------------------------------------
@Override
public TypeSerializer... | 3.26 |
flink_CopyableValueSerializer_ensureInstanceInstantiated_rdh | // --------------------------------------------------------------------------------------------
private void ensureInstanceInstantiated() {
if (instance == null) {
instance = createInstance();
}
} | 3.26 |
flink_SpecializedFunction_close_rdh | /**
* Closes the runtime implementation for expression evaluation. It performs clean up work.
*
* <p>This method should be called in {@link UserDefinedFunction#close()}.
*/
default void close() {
} | 3.26 |
flink_HiveParserQueryState_createConf_rdh | /**
* If there are query specific settings to overlay, then create a copy of config There are two
* cases we need to clone the session config that's being passed to hive driver 1. Async query -
* If the client changes a config setting, that shouldn't reflect in the execution already
* underway 2. confOverlay - The ... | 3.26 |
flink_AllReduceDriver_prepare_rdh | // --------------------------------------------------------------------------------------------
@Override
public void prepare() throws Exception {
final TaskConfig config = this.taskContext.getTaskConfig();
if (config.getDriverStrategy() != DriverStrategy.ALL_REDUCE) {
throw new Exception("Unrecognized... | 3.26 |
flink_AllReduceDriver_setup_rdh | // ------------------------------------------------------------------------
@Override
public void
setup(TaskContext<ReduceFunction<T>, T> context) {
this.taskContext = context;
this.running = true;
} | 3.26 |
flink_RestServerEndpointConfiguration_getUploadDir_rdh | /**
* Returns the directory used to temporarily store multipart/form-data uploads.
*/
public Path getUploadDir() {return uploadDir;
} | 3.26 |
flink_RestServerEndpointConfiguration_fromConfiguration_rdh | /**
* Creates and returns a new {@link RestServerEndpointConfiguration} from the given {@link Configuration}.
*
* @param config
* configuration from which the REST server endpoint configuration should be
* created from
* @return REST server endpoint configuration
* @throws ConfigurationException
* if SSL ... | 3.26 |
flink_RestServerEndpointConfiguration_getMaxContentLength_rdh | /**
* Returns the max content length that the REST server endpoint could handle.
*
* @return max content length that the REST server endpoint could handle
*/
public int getMaxContentLength() {
return maxContentLength;
} | 3.26 |
flink_RestServerEndpointConfiguration_getRestBindPortRange_rdh | /**
* Returns the port range that the REST server endpoint should listen on.
*
* @return port range that the REST server endpoint should listen on
*/public String getRestBindPortRange() {
return restBindPortRange;
}
/**
* Returns the {@link SSLEngine} | 3.26 |
flink_RestServerEndpointConfiguration_getRestAddress_rdh | /**
*
* @see RestOptions#ADDRESS
*/
public String getRestAddress() {
return f0;
} | 3.26 |
flink_RestServerEndpointConfiguration_getResponseHeaders_rdh | /**
* Response headers that should be added to every HTTP response.
*/
public Map<String, String> getResponseHeaders() {
return responseHeaders;
} | 3.26 |
flink_HiveParserSemanticAnalyzer_genColListRegex_rdh | // TODO: make aliases unique, otherwise needless rewriting takes place
@SuppressWarnings("nls")
public Integer genColListRegex(String colRegex,
String tabAlias, HiveParserASTNode sel, ArrayLis... | 3.26 |
flink_HiveParserSemanticAnalyzer_processTable_rdh | /**
* Goes though the tabref tree and finds the alias for the table. Once found, it records the
* table name-> alias association in aliasToTabs. It also makes an association from the alias to
* the table AST in parse info.
*/
private String
processTable(HiveParserQB qb, HiveParserASTNode tabref) throws SemanticExce... | 3.26 |
flink_HiveParserSemanticAnalyzer_gatherCTEReferences_rdh | // TODO: check view references, too
private void gatherCTEReferences(HiveParserQB qb, HiveParserBaseSemanticAnalyzer.CTEClause current) throws HiveException {
for (String alias : qb.getTabAliases()) {
String originTabName = qb.getOriginTabNameForAlias(alias);
String cteName = originTabNam... | 3.26 |
flink_HiveParserSemanticAnalyzer_doPhase1GetAllAggregations_rdh | // DFS-scan the expressionTree to find all aggregation subtrees and put them in aggregations.
private void doPhase1GetAllAggregations(HiveParserASTNode expressionTree, HashMap<String, HiveParserASTNode> aggregations, List<HiveParserASTNode> wdwFns) throws SemanticException {
int exprTokenType = expressionTree.getTo... | 3.26 |
flink_HiveParserSemanticAnalyzer_genAllExprNodeDesc_rdh | /**
* Generates all of the expression node descriptors for the expression and children of it passed
* in the arguments. This function uses the row resolver and the metadata information that are
* passed as arguments to resolve the column names to intern... | 3.26 |
flink_HiveParserSemanticAnalyzer_getExprNodeDescCached_rdh | // Find ExprNodeDesc for the expression cached in the HiveParserRowResolver. Returns null if not
// exists.
private ExprNodeDesc getExprNodeDescCached(HiveParserASTNode expr, HiveParserRowResolver input) throws SemanticException {
Colum... | 3.26 |
flink_HiveParserSemanticAnalyzer_processLateralView_rdh | /**
* Given the AST with TOK_LATERAL_VIEW as the root, get the alias for the table or subquery in
* the lateral view and also make a mapping from the alias to all the lateral view AST's.
*/
private String processLateralView(HiveParserQB qb, HiveParserASTNode lateralView) throws SemanticException {
int numChildr... | 3.26 |
flink_HiveParserSemanticAnalyzer_genValuesTempTable_rdh | // Generate a temp table out of a values clause.
// See also preProcessForInsert(HiveParserASTNode, HiveParserQB)
private HiveParserASTNode genValuesTempTable(HiveParserASTNode originalFrom, HiveParserQB qb) throws SemanticException {
// hive creates a temp table and writes the values data into it
// here we ... | 3.26 |
flink_HiveParserSemanticAnalyzer_processJoin_rdh | /**
* Given the AST with TOK_JOIN as the root, get all the aliases for the tables or subqueries in
* the join.
*/
@SuppressWarnings("nls")
private void processJoin(HiveParserQB qb, HiveParserASTNode join) throws SemanticException {
int numChildren = join.getChildCount();
if (((numChildren != 2) && (numChildr... | 3.26 |
flink_HiveParserSemanticAnalyzer_genExprNodeDesc_rdh | // Generates an expression node descriptor for the expression with HiveParserTypeCheckCtx.
public ExprNodeDesc genExprNodeDesc(HiveParserASTNode expr, HiveParserRowResolver input) throws SemanticException {
// Since the user didn't supply a customized type-checking context,
// use default settings.
return
... | 3.26 |
flink_PipelinedSubpartition_getBuffersInBacklogUnsafe_rdh | /**
* Gets the number of non-event buffers in this subpartition.
*/
@SuppressWarnings("FieldAccessNotGuarded")
@Override
public int getBuffersInBacklogUnsafe() {
if (isBlocked || buffers.isEmpty()) {
return 0;
}
if ((flushRequested || isFinished) || (!checkNotNull(buffers.peekLast()).getBufferCons... | 3.26 |
flink_PipelinedSubpartition_getChannelStateFuture_rdh | /**
* for testing only.
*/
// suppress this warning as it is only for testing.
@SuppressWarnings("FieldAccessNotGuarded")
@VisibleForTesting
CompletableFuture<List<Buffer>> getChannelStateFuture() {
return channelStateFuture;
} | 3.26 |
flink_PipelinedSubpartition_getNumberOfQueuedBuffers_rdh | // ------------------------------------------------------------------------
@Override
public int getNumberOfQueuedBuffers() {
synchronized(buffers) {
return buffers.size();
}
} | 3.26 |
flink_PipelinedSubpartition_needNotifyPriorityEvent_rdh | // It is just called after add priorityEvent.
@GuardedBy("buffers")
private boolean needNotifyPriorityEvent() {
assert Thread.holdsLock(buffers);
// if subpartition is blocked then downstream doesn't expect any notifications
return (buffers.getNumPriorityElements() == 1) && (!isBlocked);
} | 3.26 |
flink_PipelinedSubpartition_increaseBuffersInBacklog_rdh | /**
* Increases the number of non-event buffers by one after adding a non-event buffer into this
* subpartition.
*/
@GuardedBy("buffers")
private voi... | 3.26 |
flink_PipelinedSubpartition_getNextBuffer_rdh | /**
* for testing only.
*/
@VisibleForTesting
BufferConsumerWithPartialRecordLength getNextBuffer() {
return buffers.poll();
} | 3.26 |
flink_PipelinedSubpartition_toString_rdh | // ------------------------------------------------------------------------
@Override
public String toString() {
final long numBuffers;
final long numBytes;final boolean v36;
final boolean hasReadView;
synchronized(buffers) {
numBuffers = getTotalNumberOfBuffersUnsafe();
numBytes = m1();... | 3.26 |
flink_JoinOperator_projectTuple18_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>... | 3.26 |
flink_JoinOperator_projectTuple4_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3> ProjectJoin<I1, I2, Tuple4<T0, T1, T2, T3>> projectTuple4() {
T... | 3.26 |
flink_JoinOperator_projectTuple8_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7> ProjectJoin<I1, I2, Tuple8<T0, T1, T2, T3, T4,... | 3.26 |
flink_JoinOperator_projectTuple25_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T1... | 3.26 |
flink_JoinOperator_projectTuple14_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5,
T6, T7, T8, T9, T10, T11, T12, T13> ProjectJoin<I1, I2,... | 3.26 |
flink_JoinOperator_projectTuple10_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> ProjectJoin<I1, I2, Tuple10<T0, T1, T2,... | 3.26 |
flink_JoinOperator_projectTuple21_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T1... | 3.26 |
flink_JoinOperator_projectTuple24_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,
T12, T13, T14, T15, T16, T17,... | 3.26 |
flink_JoinOperator_projectTuple9_rdh | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/public <T0, T1, T2, T3, T4,
T5, T6, T7, T8> ProjectJoin<I1, I2, Tuple9<T0, T1, T2, T3, T... | 3.26 |
flink_JoinOperator_projectSecond_rdh | /**
* Continues a ProjectJoin transformation and adds fields of the second join input.
*
* <p>If the second join input is a {@link Tuple} {@link DataSet}, fields can be selected by
* their index. If the second join input is not a Tuple DataSet, no parameters should be
* passed.
*
* <p>Fields of the first and sec... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.