name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
flink_MiniBatchGlobalGroupAggFunction_addInput_rdh | /**
* The {@code previousAcc} is accumulator, but input is a row in <key, accumulator>
* schema, the specific generated {@link #localAgg} will project the {@code input} to
* accumulator in merge method.
*/@Override
public RowData addInput(@Nullable
RowData previousAcc, RowData input) throws Exception {
Ro... | 3.26 |
flink_RegistrationResponse_getReason_rdh | /**
* Gets the reason for the failure.
*/
public SerializedThrowable getReason() {
return reason;
} | 3.26 |
flink_DynamicPropertiesUtil_encodeDynamicProperties_rdh | /**
* Parses dynamic properties from the given {@link CommandLine} and sets them on the {@link Configuration}.
*/
public static void encodeDynamicProperties(final CommandLine commandLine,
final Configuration effectiveConfiguration) {
final Properties properties = commandLine.getOptionProperties(DYNAMIC_PROPERTIE... | 3.26 |
flink_AccumulatorRegistry_getSnapshot_rdh | /**
* Creates a snapshot of this accumulator registry.
*
* @return a serialized accumulator map
*/ public AccumulatorSnapshot getSnapshot() {
try {
return new AccumulatorSnapshot(jobID, taskID, f0);
} catch (Throwable e) {
LOG.warn("Failed to serialize accumulators for task.", e);
re... | 3.26 |
flink_AccumulatorRegistry_getUserMap_rdh | /**
* Gets the map for user-defined accumulators.
*/
public Map<String, Accumulator<?, ?>> getUserMap() {
return f0;} | 3.26 |
flink_HashPartition_spillPartition_rdh | /**
* Spills this partition to disk and sets it up such that it continues spilling records that are
* added to it. The spilling process must free at least one buffer, either in the partition's
* record buffers, or in the memory segments for overflow buckets. The partition immediately
* takes back one buffer to use ... | 3.26 |
flink_HashPartition_insertIntoProbeBuffer_rdh | /**
* Inserts the given record into the probe side buffers. This method is only applicable when the
* partition was spilled while processing the build side.
*
* <p>If this method is invoked when the partition is still being built, it has undefined
* behavior.
*
* @param record
* The record to be inserted into... | 3.26 |
flink_HashPartition_getRecursionLevel_rdh | /**
* Gets this partition's recursion level.
*
* @return The partition's recursion level.
*/
public int getRecursionLevel() {
return this.recursionLevel;
} | 3.26 |
flink_HashPartition_finalizeProbePhase_rdh | /**
*
* @param keepUnprobedSpilledPartitions
* If true then partitions that were spilled but received
* no further probe requests will be retained; used for build-side outer joins.
* @return The number of write-behind buffers reclaimable after this method call.
* @throws IOException
*/
public int finalizePro... | 3.26 |
flink_HashPartition_setReadPosition_rdh | // --------------------------------------------------------------------------------------------------
// Methods to provide input view abstraction for reading probe records
// --------------------------------------------------------------------------------------------------
public void setReadPosition(long pointer) {
f... | 3.26 |
flink_HashPartition_getPartitionNumber_rdh | // --------------------------------------------------------------------------------------------------
/**
* Gets the partition number of this partition.
*
* @return This partition's number.
*/
public int getPartitionNumber() {
return this.partitionNumber;
} | 3.26 |
flink_HashPartition_prepareProbePhase_rdh | // --------------------------------------------------------------------------------------------------
// ReOpenableHashTable related methods
// --------------------------------------------------------------------------------------------------
public void prepareProbePhase(IOManager
ioAccess, FileIOChannel.Enumerator pr... | 3.26 |
flink_HashPartition_getNumOccupiedMemorySegments_rdh | /**
* Gets the number of memory segments used by this partition, which includes build side memory
* buffers and overflow memory segments.
*
* @return The number of occupied memory segments.
*/
public int getNumOccupiedMemorySegments() {// either the number of memory segments, or one for spilling
final int nu... | 3.26 |
flink_OpaqueMemoryResource_getSize_rdh | /**
* Gets the size, in bytes.
*/
public long getSize() {
return size;
} | 3.26 |
flink_OpaqueMemoryResource_getResourceHandle_rdh | /**
* Gets the handle to the resource.
*/
public T getResourceHandle() {
return resourceHandle;
} | 3.26 |
flink_OpaqueMemoryResource_close_rdh | /**
* Releases this resource. This method is idempotent.
*/
@Override
public void close() throws Exception {
if (closed.compareAndSet(false, true)) {
disposer.run();
}
} | 3.26 |
flink_PrintStyle_tableauWithTypeInferredColumnWidths_rdh | /**
* Create a new {@link TableauStyle} using column widths computed from the type.
*
* @param schema
* the schema of the data to print
* @param converter
* the converter to use to convert field values to string
* @param maxColumnWidth
* Max column width
* @param printNullAsEmpty
* A flag to indicate ... | 3.26 |
flink_PrintStyle_tableauWithDataInferredColumnWidths_rdh | /**
* Like {@link #tableauWithDataInferredColumnWidths(ResolvedSchema, RowDataToStringConverter,
* int, boolean, boolean)}, but using default values.
*
* <p><b>NOTE:</b> please make sure the data to print is small enough to be stored in java heap
* memory.
*/
static TableauStyle tableauWithDataInferredColumnWidth... | 3.26 |
flink_LongCounter_add_rdh | // ------------------------------------------------------------------------
// Primitive Specializations
// ------------------------------------------------------------------------
public void add(long value) {
this.localValue += value;
} | 3.26 |
flink_LongCounter_toString_rdh | // ------------------------------------------------------------------------
// Utilities
// ------------------------------------------------------------------------
@Override
public String
toString() {
return "LongCounter " + this.localValue;
} | 3.26 |
flink_ListenableCollector_onCollect_rdh | /**
* A callback method when an original record was collected, do nothing by default.
*/
default void onCollect(T record) {
} | 3.26 |
flink_HistoryServerArchiveFetcher_updateJobOverview_rdh | /**
* This method replicates the JSON response that would be given by the JobsOverviewHandler when
* listing both running and finished jobs.
*
* <p>Every job archive contains a joboverview.json file containing the same structure. Since
* jobs are archived on their own however the list of finished jobs only contain... | 3.26 |
flink_BufferBuilder_createBufferConsumer_rdh | /**
* This method always creates a {@link BufferConsumer} starting from the current writer offset.
* Data written to {@link BufferBuilder} before creation of {@link BufferConsumer} won't be
* visible for that {@link BufferConsumer}.
*
* @return created matching instance of {@link BufferConsumer} to this {@link Buf... | 3.26 |
flink_BufferBuilder_createBufferConsumerFromBeginning_rdh | /**
* This method always creates a {@link BufferConsumer} starting from position 0 of {@link MemorySegment}.
*
* @return created matching instance of {@link BufferConsumer} to this {@link BufferBuilder}.
*/
public BufferConsumer createBufferConsumerFromBeginning() {
return createBufferConsumer(0);
} | 3.26 |
flink_BufferBuilder_commit_rdh | /**
* Make the change visible to the readers. This is costly operation (volatile access) thus in
* case of bulk writes it's better to commit them all together instead one by one.
*/
public void commit() {
f0.commit();
} | 3.26 |
flink_BufferBuilder_append_rdh | /**
* Append as many data as possible from {@code source}. Not everything might be copied if there
* is not enough space in the underlying {@link MemorySegment}
*
* @return number of copied bytes
*/
public int append(ByteBuffer source)
{
checkState(!isFinished());
int needed = source.remaining();
int a... | 3.26 |
flink_BufferBuilder_markFinished_rdh | /**
* Marks this position as finished and returns the current position.
*
* @return current position as of {@link #getCached()}
*/
public int markFinished() {
int currentPosition = getCached();
int newValue = -currentPosition;
if (newValue == 0) {newValue = FINISHED_EMPTY;
}
set(newValue);
r... | 3.26 |
flink_BufferBuilder_appendAndCommit_rdh | /**
* Same as {@link #append(ByteBuffer)} but additionally {@link #commit()} the appending.
*/
public int appendAndCommit(ByteBuffer
source) {
int writtenBytes = append(source);
commit();
return writtenBytes;
} | 3.26 |
flink_BufferBuilder_finish_rdh | /**
* Mark this {@link BufferBuilder} and associated {@link BufferConsumer} as finished - no new
* data writes will be allowed.
*
* <p>This method should be idempotent to handle failures and task interruptions. Check
* FLINK-8948 for more details.
*
* @return number of written bytes.
*/
public int finish() {
... | 3.26 |
flink_BufferBuilder_trim_rdh | /**
* The result capacity can not be greater than allocated memorySegment. It also can not be less
* than already written data.
*/
public void trim(int newSize) {
maxCapacity = Math.min(Math.max(newSize, f0.getCached()), buffer.getMaxCapacity());
} | 3.26 |
flink_OperatorStateCheckpointOutputStream_closeAndGetHandle_rdh | /**
* This method should not be public so as to not expose internals to user code.
*/@Override
OperatorStateHandle closeAndGetHandle() throws IOException {
StreamStateHandle streamStateHandle = super.closeAndGetHandleAfterLeasesReleased();
if (null == streamStateHandle) {
return null;
}
if (p... | 3.26 |
flink_SequenceGeneratorSource_getRandomKey_rdh | /**
* Returns a random key that belongs to this key range.
*/
int getRandomKey(Random random) {
return random.nextInt(endKey
- startKey) + startKey;
} | 3.26 |
flink_SequenceGeneratorSource_incrementAndGet_rdh | /**
* Increments and returns the current sequence number for the given key.
*/
long incrementAndGet(int
key) {
return ++statesPerKey[key - startKey];
} | 3.26 |
flink_CancelCheckpointMarker_write_rdh | // ------------------------------------------------------------------------
// These known and common event go through special code paths, rather than
// through generic serialization.
@Override
public void write(DataOutputView out) throws IOException {
throw new UnsupportedOperationException("this method should ... | 3.26 |
flink_ThreadSafeSimpleCounter_dec_rdh | /**
* Decrement the current count by the given value.
*
* @param n
* value to decrement the current count by
*/
@Override
public void dec(long n) {
longAdder.add(-n);
} | 3.26 |
flink_ThreadSafeSimpleCounter_m0_rdh | /**
* Increment the current count by the given value.
*
* @param n
* value to increment the current count by
*/
@Override
public void m0(long n) {
longAdder.add(n);
} | 3.26 |
flink_ThreadSafeSimpleCounter_inc_rdh | /**
* Increment the current count by 1.
*/
@Override
public void inc() {
longAdder.increment();
} | 3.26 |
flink_ThreadSafeSimpleCounter_getCount_rdh | /**
* Returns the current count.
*
* @return current count
*/
@Override
public long getCount() {return longAdder.longValue();
} | 3.26 |
flink_FileRegionWriteReadUtils_writeHsInternalRegionToFile_rdh | /**
* Write {@link InternalRegion} to {@link FileChannel}.
*
* <p>Note that this type of region's length may be variable because it contains an array to
* indicate each buffer's release state.
*
* @param channel
* the file's channel to write.
* @param headerBuffer
* the buffer to write {@link InternalRegio... | 3.26 |
flink_FileRegionWriteReadUtils_readHsInternalRegionFromFile_rdh | /**
* Read {@link InternalRegion} from {@link FileChannel}.
*
* <p>Note that this type of region's length may be variable because it contains an array to
* indicate each buffer's release state.
*
* @param channel
* the channel to read.
* @param headerBuffer
* the buffer to read {@link InternalRegion}'s hea... | 3.26 |
flink_FileRegionWriteReadUtils_allocateAndConfigureBuffer_rdh | /**
* Allocate a buffer with specific size and configure it to native order.
*
* @param bufferSize
* the size of buffer to allocate.
* @return a native order buffer with expected size.
*/
public static ByteBuffer allocateAndConfigureBuffer(int bufferSize) {
ByteBuffer buffer = ByteBuffer.allocateDirect(buff... | 3.26 |
flink_FileRegionWriteReadUtils_readFixedSizeRegionFromFile_rdh | /**
* Read {@link FixedSizeRegion} from {@link FileChannel}.
*
* <p>Note that this type of region's length is fixed.
*
* @param channel
* the channel to read.
* @param regionBuffer
* the buffer to read {@link FixedSizeRegion}'s header.
* @param fileOffset
* the file offset to start read.
* @return the ... | 3.26 |
flink_FileRegionWriteReadUtils_writeFixedSizeRegionToFile_rdh | /**
* Write {@link FixedSizeRegion} to {@link FileChannel}.
*
* <p>Note that this type of region's length is fixed.
*
* @param channel
* the file's channel to write.
* @param regionBuffer
* the buffer to write {@link FixedSizeRegion}'s header.
* @param region
* the region to be written to channel.
*/
p... | 3.26 |
flink_InputFormatSourceFunction_getFormat_rdh | /**
* Returns the {@code InputFormat}. This is only needed because we need to set the input split
* assigner on the {@code StreamGraph}.
*/
public InputFormat<OUT, InputSplit>
getFormat() {
return format;
} | 3.26 |
flink_TieredStorageConsumerClient_createTierConsumerAgents_rdh | // Internal methods
// --------------------------------------------------------------------------------------------
private List<TierConsumerAgent>
createTierConsumerAgents(List<TieredStorageConsumerSpec> tieredStorageConsumerSpecs) {
ArrayList<TierConsumerAge... | 3.26 |
flink_UpdatingTopCityExample_createTemporaryDirectory_rdh | /**
* Creates an empty temporary directory for CSV files and returns the absolute path.
*/private static String createTemporaryDirectory() throws IOException {
final Path tempDirectory = Files.createTempDirectory("population");
return tempDirectory.toString();
} | 3.26 |
flink_SqlGatewayStreamExecutionEnvironment_setAsContext_rdh | /**
* The SqlGatewayStreamExecutionEnvironment is a {@link StreamExecutionEnvironment} that runs the
* program with SQL gateway.
*/
| 3.26 |
flink_SpanningWrapper_transferFrom_rdh | /**
* Copies the data and transfers the "ownership" (i.e. clears the passed wrapper).
*/
void transferFrom(NonSpanningWrapper partial, int nextRecordLength) throws IOException {
updateLength(nextRecordLength);
accumulatedRecordBytes = (isAboveSpillingThreshold()) ? spill(partial) : partial.copyContentTo(buf... | 3.26 |
flink_SpanningWrapper_transferLeftOverTo_rdh | /**
* Copies the leftover data and transfers the "ownership" (i.e. clears this wrapper).
*/
void transferLeftOverTo(NonSpanningWrapper nonSpanningWrapper) {
nonSpanningWrapper.clear();
if (leftOverData != null) {
nonSpanningWrapper.initializeFromMemorySegment(leftOverData, leftOverStart, leftOverLimit);
}
clear();
... | 3.26 |
flink_MessageAcknowledgingSourceBase_addId_rdh | /**
* Adds an ID to be stored with the current checkpoint. In order to achieve exactly-once
* guarantees, implementing classes should only emit records with IDs for which this method
* return true.
*
* @param uid
* The ID to add.
* @return True if the id has not been processed previously.
*/
protected boolean... | 3.26 |
flink_MessageAcknowledgingSourceBase_snapshotState_rdh | // ------------------------------------------------------------------------
// Checkpointing the data
// ------------------------------------------------------------------------
@Override
public void snapshotState(FunctionSnapshotContext context) throws Exception {
Preconditions.checkState(this.checkpointedState !=... | 3.26 |
flink_ProcTimeMiniBatchAssignerOperator_processWatermark_rdh | /**
* Override the base implementation to completely ignore watermarks propagated from upstream (we
* rely only on the {@link AssignerWithPeriodicWatermarks} to emit watermarks from here).
*/
@Override
public void processWatermark(Watermark mark) throws Exception {
// if we receive a Long.MAX_VALUE watermark we ... | 3.26 |
flink_IterativeDataSet_registerAggregationConvergenceCriterion_rdh | /**
* Registers an {@link Aggregator} for the iteration together with a {@link ConvergenceCriterion}. For a general description of aggregators, see {@link #registerAggregator(String, Aggregator)} and {@link Aggregator}. At the end of each
* iteration, the convergence criterion takes the aggregator's global aggregate ... | 3.26 |
flink_IterativeDataSet_getMaxIterations_rdh | /**
* Gets the maximum number of iterations.
*
* @return The maximum number of iterations.
*/
public int getMaxIterations() {
return maxIterations;
}
/**
* Registers an {@link Aggregator} for the iteration. Aggregators can be used to maintain simple
* statistics during the iteration, such as number of element... | 3.26 |
flink_IterativeDataSet_translateToDataFlow_rdh | // --------------------------------------------------------------------------------------------
@Override
protected SingleInputOperator<T, T, ?> translateToDataFlow(Operator<T> input) {
// All the translation magic happens when the iteration end is encountered.
throw new InvalidProgramException("A data set tha... | 3.26 |
flink_DefaultVertexParallelismStore_applyJobResourceRequirements_rdh | /**
* Create a new {@link VertexParallelismStore} that reflects given {@link JobResourceRequirements}.
*
* @param oldVertexParallelismStore
* old vertex parallelism store that serves as a base for the
* new one
* @param jobResourceRequirements
* to apply over the old vertex parallelism store
* @return new... | 3.26 |
flink_TableEnvironmentInternal_explainInternal_rdh | /**
* Returns the AST of this table and the execution plan to compute the result of this table.
*
* @param operations
* The operations to be explained.
* @param extraDetails
* The extra explain details which the explain result should include, e.g.
* estimated cost, changelog mode for streaming
* @return A... | 3.26 |
flink_SimpleVersionedListState_serialize_rdh | // ------------------------------------------------------------------------
// utils
// ------------------------------------------------------------------------
private byte[] serialize(T value) throws IOException {
return SimpleVersionedSerialization.writeVersionAndSerialize(serializer, value);
} | 3.26 |
flink_UnresolvedDataType_toDataType_rdh | /**
* Converts this instance to a resolved {@link DataType} possibly enriched with additional
* nullability and conversion class information.
*/
public DataType toDataType(DataTypeFactory factory) {
DataType resolvedDataType = resolutionFactory.apply(factory);
if (isNullable == Boolean.TRUE) { resolvedDataTy... | 3.26 |
flink_Description_list_rdh | /**
* Adds a bulleted list to the description.
*/
public DescriptionBuilder list(InlineElement... elements)
{
blocks.add(ListElement.list(elements));
return this;
} | 3.26 |
flink_Description_linebreak_rdh | /**
* Creates a line break in the description.
*/
public DescriptionBuilder linebreak() {
blocks.add(LineBreakElement.linebreak());
return this;
} | 3.26 |
flink_Description_text_rdh | /**
* Creates a simple block of text.
*
* @param text
* a simple block of text
* @return block of text
*/
public DescriptionBuilder text(String text) {
blocks.add(TextElement.text(text));
return this;
} | 3.26 |
flink_Description_build_rdh | /**
* Creates description representation.
*/
public Description build() {
return new Description(blocks);
} | 3.26 |
flink_Description_add_rdh | /**
* Block of description add.
*
* @param block
* block of description to add
* @return block of description
*/
public DescriptionBuilder add(BlockElement block) {blocks.add(block);
return this;
} | 3.26 |
flink_TestUserClassLoaderJobLib_getValue_rdh | /**
* This class is depended by {@link TestUserClassLoaderJob}.
*/class TestUserClassLoaderJobLib {
int getValue() {
return 0;
} | 3.26 |
flink_HeartbeatServices_fromConfiguration_rdh | /**
* Creates an HeartbeatServices instance from a {@link Configuration}.
*
* @param configuration
* Configuration to be used for the HeartbeatServices creation
* @return An HeartbeatServices instance created from the given configuration
*/
static HeartbeatServices fromConfiguration(Configuration configuration)... | 3.26 |
flink_TaskEventHandler_publish_rdh | /**
* Publishes the task event to all subscribed event listeners.
*
* @param event
* The event to publish.
*/
public void publish(TaskEvent event) {
synchronized(listeners) {
for (EventListener<TaskEvent>
listener : listeners.get(event.getClass())) {
listener.onEvent(event);
... | 3.26 |
flink_WikipediaEditEvent_getTimestamp_rdh | /**
* Returns the timestamp when this event arrived at the source.
*
* @return The timestamp assigned at the source.
*/public long getTimestamp() {
return timestamp;
} | 3.26 |
flink_DelegationTokenReceiverRepository_onNewTokensObtained_rdh | /**
* Callback function when new delegation tokens obtained.
*
* @param container
* Serialized form of delegation tokens stored in DelegationTokenContainer. All
* the available tokens will be forwarded to the appropriate {@link DelegationTokenReceiver}
* based on service name.
*/
public void onNewTokensObt... | 3.26 |
flink_ValueSerializer_snapshotConfiguration_rdh | // --------------------------------------------------------------------------------------------
// Serializer configuration snapshotting & compatibility
// --------------------------------------------------------------------------------------------
@Override
public TypeSerializerSnapshot<T> snapshotConfiguration() {
... | 3.26 |
flink_ValueSerializer_isImmutableType_rdh | // --------------------------------------------------------------------------------------------
@Override
public boolean isImmutableType() {
return false;
} | 3.26 |
flink_ValueSerializer_readObject_rdh | // --------------------------------------------------------------------------------------------
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
// kryoRegistrations may be null if this value serializer is deserialized from an old
// version... | 3.26 |
flink_ValueSerializer_hashCode_rdh | // --------------------------------------------------------------------------------------------
@Override
public int hashCode() {
return this.type.hashCode();
} | 3.26 |
flink_TableConfig_get_rdh | /**
* {@inheritDoc }
*
* <p>This method gives read-only access to the full configuration. However,
* application-specific configuration has precedence. Configuration of outer layers is used for
* defaults and fallbacks. See the docs of {@link TableConfig} for more information.
*
* @param option
* metadata of ... | 3.26 |
flink_TableConfig_setSqlDialect_rdh | /**
* Sets the current SQL dialect to parse a SQL query. Flink's SQL behavior by default.
*/
public void setSqlDialect(SqlDialect sqlDialect) {
set(TableConfigOptions.TABLE_SQL_DIALECT, sqlDialect.name().toLowerCase());
} | 3.26 |
flink_TableConfig_setPlannerConfig_rdh | /**
* Sets the configuration of Planner for Table API and SQL queries. Changing the configuration
* has no effect after the first query has been defined.
*/
public void setPlannerConfig(PlannerConfig plannerConfig) {
this.plannerConfig = Preconditions.checkNotNull(plannerConfig);
} | 3.26 |
flink_TableConfig_getIdleStateRetention_rdh | /**
*
* @return The duration until state which was not updated will be retained.
*/
public Duration getIdleStateRetention() {
return f0.get(ExecutionConfigOptions.IDLE_STATE_RETENTION);} | 3.26 |
flink_TableConfig_addJobParameter_rdh | /**
* Sets a custom user parameter that can be accessed via {@link FunctionContext#getJobParameter(String, String)}.
*
* <p>This will add an entry to the current value of {@link PipelineOptions#GLOBAL_JOB_PARAMETERS}.
*
* <p>It is also possible to set multiple parameters at once, which will override any previously... | 3.26 |
flink_TableConfig_setRootConfiguration_rdh | /**
* Sets the given configuration as {@link #rootConfiguration}, which contains any configuration
* set in the execution context. See the docs of {@link TableConfig} for more information.
*
* @param rootConfiguration
* root configuration to be set
*/
@Internal
public void setRootConfiguration(ReadableConfig ro... | 3.26 |
flink_TableConfig_setMaxGeneratedCodeLength_rdh | /**
* Sets current threshold where generated code will be split into sub-function calls. Java has a
* maximum method length of 64 KB. This setting allows for finer granularity if necessary.
*
* <p>Default value is 4000 instead of 64KB as by default JIT refuses to work on methods with
* more than 8K byte code.
*/
... | 3.26 |
flink_TableConfig_getMaxIdleStateRetentionTime_rdh | /**
* NOTE: Currently the concept of min/max idle state retention has been deprecated and only idle
* state retention time is supported. The min idle state retention is regarded as idle state
* retention and the max idle state retention is derived from idle state retention as 1.5 x idle
* state retention.
*
* @re... | 3.26 |
flink_TableConfig_getLocalTimeZone_rdh | /**
* Returns the current session time zone id. It is used when converting to/from {@code TIMESTAMP
* WITH LOCAL TIME ZONE}. See {@link #setLocalTimeZone(ZoneId)} for more details.
*
* @see org.apache.flink.table.types.logical.LocalZonedTimestampType
*/
public ZoneId getLocalTimeZone() {
final String zone = f0... | 3.26 |
flink_TableConfig_getConfiguration_rdh | /**
* Gives direct access to the underlying application-specific key-value map for advanced
* configuration.
*/
public Configuration getConfiguration() {
return f0;
} | 3.26 |
flink_TableConfig_setIdleStateRetentionTime_rdh | /**
* Specifies a minimum and a maximum time interval for how long idle state, i.e., state which
* was not updated, will be retained. State will never be cleared until it was idle for less
* than the minimum time and will never be kept if it was idle for more than the maximum time.
*
* <p>When new data arrives for... | 3.26 |
flink_TableConfig_getMaxGeneratedCodeLength_rdh | /**
* Returns the current threshold where generated code will be split into sub-function calls.
* Java has a maximum method length of 64 KB. This setting allows for finer granularity if
* necessary.
*
* <p>Default value is 4000 instead of 64KB as by default JIT refuses to work on methods with
* more than 8K byte ... | 3.26 |
flink_TableConfig_getPlannerConfig_rdh | /**
* Returns the current configuration of Planner for Table API and SQL queries.
*/
public PlannerConfig getPlannerConfig() {return plannerConfig;
} | 3.26 |
flink_TableConfig_getSqlDialect_rdh | /**
* Returns the current SQL dialect.
*/
public SqlDialect getSqlDialect() {
return SqlDialect.valueOf(get(TableConfigOptions.TABLE_SQL_DIALECT).toUpperCase());
} | 3.26 |
flink_TableConfig_setIdleStateRetention_rdh | /**
* Specifies a retention time interval for how long idle state, i.e., state which was not
* updated, will be retained. State will never be cleared until it was idle for less than the
* retention time and will be cleared on a best effort basis after the retention time.
*
* <p>When new data arrives for previously... | 3.26 |
flink_TableConfig_addConfiguration_rdh | /**
* Adds the given key-value configuration to the underlying application-specific configuration.
* It overwrites existing keys.
*
* @param configuration
* key-value configuration to be added
*/
public void addConfiguration(Configuration configuration) {
Preconditions.checkNotNull(configuration);
this.... | 3.26 |
flink_TableConfig_set_rdh | /**
* Sets an application-specific string-based value for the given string-based key.
*
* <p>The value will be parsed by the framework on access.
*
* <p>This method exists for convenience when configuring a session with string-based
* properties. Use {@link #set(ConfigOption, Object)} for more type-safety and inl... | 3.26 |
flink_TableConfig_setLocalTimeZone_rdh | /**
* Sets the current session time zone id. It is used when converting to/from {@link DataTypes#TIMESTAMP_WITH_LOCAL_TIME_ZONE()}. Internally, timestamps with local time zone are
* always represented in the UTC time zone. However, when converting to data types that don't
* include a time zone (e.g. TIMESTAMP, TIME,... | 3.26 |
flink_TableConfig_getMinIdleStateRetentionTime_rdh | /**
* NOTE: Currently the concept of min/max idle state retention has been deprecated and only idle
* state retention time is supported. The min idle state retention is regarded as idle state
* retention and the max idle state retention is derived from idle state retention as 1.5 x idle
* state retention.
*
* @re... | 3.26 |
flink_DataInputDecoder_readFixed_rdh | // --------------------------------------------------------------------------------------------
// bytes
// --------------------------------------------------------------------------------------------
@Override
public void readFixed(byte[] bytes, int start, int length) throws IOException {
in.readFully(bytes, star... | 3.26 |
flink_DataInputDecoder_readString_rdh | // --------------------------------------------------------------------------------------------
// strings
// --------------------------------------------------------------------------------------------
@Override
public Utf8 readString(Utf8 old) throws IOException {
int length
= readInt();
Utf8 result =
... | 3.26 |
flink_DataInputDecoder_readArrayStart_rdh | // --------------------------------------------------------------------------------------------
// collection types
// --------------------------------------------------------------------------------------------
@Override
public long
readArrayStart() throws IOException {
return readVarLongCount(in);
} | 3.26 |
flink_SecurityOptions_isRestSSLAuthenticationEnabled_rdh | /**
* Checks whether mutual SSL authentication for the external REST endpoint is enabled.
*/
public static boolean isRestSSLAuthenticationEnabled(Configuration sslConfig) {
checkNotNull(sslConfig, "sslConfig");
return isRestSSLEnabled(sslConfig) && sslConfig.getBoolean(SSL_REST_AUTHENTICATION_ENABLED);
} | 3.26 |
flink_SecurityOptions_isRestSSLEnabled_rdh | /**
* Checks whether SSL for the external REST endpoint is enabled.
*/
public static boolean isRestSSLEnabled(Configuration sslConfig) {
@SuppressWarnings("deprecation")
final boolean fallbackFlag = sslConfig.getBoolean(SSL_ENABLED);
return sslConfig.getBoolean(SSL_REST_ENABLED, fallbackFlag);
} | 3.26 |
flink_TaskSlotTable_freeSlot_rdh | /**
* Try to free the slot. If the slot is empty it will set the state of the task slot to free and
* return its index. If the slot is not empty, then it will set the state of the task slot to
* releasing, fail all tasks and return -1.
*
* @param allocationId
* identifying the task slot to be freed
* @throws S... | 3.26 |
flink_FlinkTestcontainersConfigurator_configure_rdh | /**
* Configures and creates {@link FlinkContainers}.
*/
public FlinkContainers configure() {
// Create temporary directory for building Flink image
final Path imageBuildingTempDir;
try {
imageBuildingTempDir = Files.createTempDirectory("flink-image-build");
} catch (IOException e) {
t... | 3.26 |
flink_CliResultView_init_rdh | // --------------------------------------------------------------------------------------------
@Override
protected void init() {
refreshThread.start();
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.