name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hibernate-validator_ValidatorFactoryBean_isNullable | // TODO to be removed once using CDI API 4.x
public boolean isNullable() {
return false;
} | 3.68 |
hadoop_ManifestCommitter_abortJob | /**
* Abort the job.
* Invokes
* {@link #executeCleanup(String, JobContext, ManifestCommitterConfig)}
* then saves the (ongoing) job report data if reporting is enabled.
* @param jobContext Context of the job whose output is being written.
* @param state final runstate of the job
* @throws IOException failure du... | 3.68 |
hbase_ReplicationSourceManager_init | /**
* Adds a normal source per registered peer cluster.
*/
void init() throws IOException {
for (String id : this.replicationPeers.getAllPeerIds()) {
addSource(id, true);
}
} | 3.68 |
flink_TwoPhaseCommitSinkFunction_enableTransactionTimeoutWarnings | /**
* 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
*/
protected Tw... | 3.68 |
flink_RetryingRegistration_cancel | /** Cancels the registration procedure. */
public void cancel() {
canceled = true;
completionFuture.cancel(false);
} | 3.68 |
hmily_DisruptorProvider_onData | /**
* push data to disruptor queue.
*
* @param t the t
*/
public void onData(final T t) {
long position = ringBuffer.next();
try {
DataEvent<T> de = ringBuffer.get(position);
de.setT(t);
ringBuffer.publish(position);
} catch (Exception ex) {
logger.error("push data error:... | 3.68 |
dubbo_RpcServiceContext_getInvocation | /**
* @deprecated Replace to getMethodName(), getParameterTypes(), getArguments()
*/
@Override
@Deprecated
public Invocation getInvocation() {
return invocation;
} | 3.68 |
morf_ChangelogBuilder_withIncludeDataChanges | /**
* Set whether to include data changes in the log output. The default is to
* omit data changes.
*
* @param includeDataChanges Indicates whether data changes should be included or not.
* @return This builder for chaining
*/
public ChangelogBuilder withIncludeDataChanges(boolean includeDataChanges) {
this.inc... | 3.68 |
flink_PekkoUtils_terminateActorSystem | /**
* Terminates the given {@link ActorSystem} and returns its termination future.
*
* @param actorSystem to terminate
* @return Termination future
*/
public static CompletableFuture<Void> terminateActorSystem(ActorSystem actorSystem) {
return ScalaFutureUtils.toJava(actorSystem.terminate())
.thenA... | 3.68 |
dubbo_ConfigUtils_getProperties | /**
* Get dubbo properties.
* It is not recommended using this method to modify dubbo properties.
*
* @return
*/
public static Properties getProperties(Set<ClassLoader> classLoaders) {
String path = System.getProperty(CommonConstants.DUBBO_PROPERTIES_KEY);
if (StringUtils.isEmpty(path)) {
path = Sy... | 3.68 |
framework_FilesystemContainer_accept | /**
* Allows only files with the extension and directories.
*
* @see java.io.FilenameFilter#accept(File, String)
*/
@Override
public boolean accept(File dir, String name) {
if (name.endsWith(filter)) {
return true;
}
return new File(dir, name).isDirectory();
} | 3.68 |
hudi_HoodieWrapperFileSystem_createImmutableFileInPath | /**
* Creates a new file with overwrite set to false. This ensures files are created
* only once and never rewritten, also, here we take care if the content is not
* empty, will first write the content to a temp file if {needCreateTempFile} is
* true, and then rename it back after the content is written.
*
* @par... | 3.68 |
hbase_SplitTableRegionProcedure_preSplitRegionBeforeMETA | /**
* Post split region actions before the Point-of-No-Return step
* @param env MasterProcedureEnv
**/
private void preSplitRegionBeforeMETA(final MasterProcedureEnv env)
throws IOException, InterruptedException {
final List<Mutation> metaEntries = new ArrayList<Mutation>();
final MasterCoprocessorHost cpHost ... | 3.68 |
flink_TemplateUtils_extractProcedureGlobalFunctionTemplates | /** Retrieve global templates from procedure class. */
static Set<FunctionTemplate> extractProcedureGlobalFunctionTemplates(
DataTypeFactory typeFactory, Class<? extends Procedure> procedure) {
return asFunctionTemplatesForProcedure(
typeFactory, collectAnnotationsOfClass(ProcedureHint.class, pr... | 3.68 |
hbase_HFileReaderImpl_checkKeyLen | /** Returns True if v <= 0 or v > current block buffer limit. */
protected final boolean checkKeyLen(final int v) {
return v <= 0 || v > this.blockBuffer.limit();
} | 3.68 |
flink_HiveParserTypeCheckProcFactory_processGByExpr | /**
* Function to do groupby subexpression elimination. This is called by all the processors
* initially. As an example, consider the query select a+b, count(1) from T group by a+b; Then
* a+b is already precomputed in the group by operators key, so we substitute a+b in the select
* list with the internal column na... | 3.68 |
hbase_MasterObserver_preListNamespaces | /**
* Called before a listNamespaces request has been processed.
* @param ctx the environment to interact with the framework and master
* @param namespaces an empty list, can be filled with what to return if bypassing
* @throws IOException if something went wrong
*/
default void preListNamespaces(ObserverCo... | 3.68 |
flink_ExecutionVertex_resetForNewExecution | /** Archives the current Execution and creates a new Execution for this vertex. */
public void resetForNewExecution() {
resetForNewExecutionInternal(System.currentTimeMillis());
} | 3.68 |
hbase_MultiVersionConcurrencyControl_complete | /**
* Mark the {@link WriteEntry} as complete and advance the read point as much as possible. Call
* this even if the write has FAILED (AFTER backing out the write transaction changes completely)
* so we can clean up the outstanding transaction. How much is the read point advanced? Let S be
* the set of all write n... | 3.68 |
querydsl_AbstractMongodbQuery_fetchResults | /**
* Fetch results with the specific fields
*
* @param paths fields to return
* @return results
*/
public QueryResults<K> fetchResults(Path<?>... paths) {
queryMixin.setProjection(paths);
return fetchResults();
} | 3.68 |
hadoop_AllocateResponse_updateErrors | /**
* Set the <code>updateErrors</code> of the response.
* @see AllocateResponse#setUpdateErrors(List)
* @param updateErrors <code>updateErrors</code> of the response
* @return {@link AllocateResponseBuilder}
*/
@Private
@Unstable
public AllocateResponseBuilder updateErrors(
List<UpdateContainerError> updateEr... | 3.68 |
hibernate-validator_ConstrainedExecutable_merge | /**
* Creates a new constrained executable object by merging this and the given
* other executable. Both executables must have the same location, i.e.
* represent the same executable on the same type.
*
* @param other The executable to merge.
*
* @return A merged executable.
*/
public ConstrainedExecutable merg... | 3.68 |
morf_DataValueLookupBuilderImpl_initialiseArray | /**
* Creates the storage array.
*/
private Object[] initialiseArray(int numberOfColumns) {
return new Object[numberOfColumns];
} | 3.68 |
framework_CalendarDropHandler_getConnector | /*
* (non-Javadoc)
*
* @see
* com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler#getConnector()
*/
@Override
public CalendarConnector getConnector() {
return calendarConnector;
} | 3.68 |
hadoop_SignerManager_initCustomSigners | /**
* Initialize custom signers and register them with the AWS SDK.
*
*/
public void initCustomSigners() {
String[] customSigners = ownerConf.getTrimmedStrings(CUSTOM_SIGNERS);
if (customSigners == null || customSigners.length == 0) {
// No custom signers specified, nothing to do.
LOG.debug("No custom si... | 3.68 |
flink_JobEdge_getSource | /**
* Returns the data set at the source of the edge. May be null, if the edge refers to the source
* via an ID and has not been connected.
*
* @return The data set at the source of the edge
*/
public IntermediateDataSet getSource() {
return source;
} | 3.68 |
framework_Window_getAssistiveRole | /**
* Gets the WAI-ARIA role the window.
*
* This role defines how an assistive device handles a window. Available
* roles are alertdialog and dialog (@see
* <a href="http://www.w3.org/TR/2011/CR-wai-aria-20110118/roles">Roles
* Model</a>).
*
* @return WAI-ARIA role set for the window
*/
public WindowRole getA... | 3.68 |
framework_JSR356WebsocketInitializer_initAtmosphereForVaadinServlet | /**
* Initializes Atmosphere for use with the given Vaadin servlet
* <p>
* For JSR 356 websockets to work properly, the initialization must be done
* in the servlet context initialization phase.
*
* @param servletRegistration
* The servlet registration info for the servlet
* @param servletContext
*/... | 3.68 |
hadoop_NMClientAsync_onContainerReInitialize | /**
* Callback for container re-initialization request.
*
* @param containerId the Id of the container to be Re-Initialized.
*/
public void onContainerReInitialize(ContainerId containerId) {} | 3.68 |
hmily_HmilyRepositoryFacade_findUndoByParticipantId | /**
* Find undo by participant id list.
*
* @param participantId the participant id
* @return the list
*/
public List<HmilyParticipantUndo> findUndoByParticipantId(final Long participantId) {
return hmilyRepository.findHmilyParticipantUndoByParticipantId(participantId);
} | 3.68 |
flink_JobSubmissionResult_isJobExecutionResult | /**
* Checks if this JobSubmissionResult is also a JobExecutionResult. See {@code
* getJobExecutionResult} to retrieve the JobExecutionResult.
*
* @return True if this is a JobExecutionResult, false otherwise
*/
public boolean isJobExecutionResult() {
return false;
} | 3.68 |
querydsl_GeometryExpression_asBinary | /**
* Exports this geometric object to a specific Well-known Binary Representation of
* Geometry.
*
* @return binary representation
*/
public SimpleExpression<byte[]> asBinary() {
if (binary == null) {
binary = Expressions.operation(byte[].class, SpatialOps.AS_BINARY, mixin);
}
return binary;
} | 3.68 |
framework_VScrollTable_updateSelectionProperties | /** For internal use only. May be removed or replaced in the future. */
public void updateSelectionProperties(UIDL uidl,
AbstractComponentState state, boolean readOnly) {
setMultiSelectMode(uidl.hasAttribute("multiselectmode")
? uidl.getIntAttribute("multiselectmode")
: MULTISELECT_M... | 3.68 |
hadoop_ParsedTaskAttempt_obtainHttpPort | /**
* @return http port if set. Returns null otherwise.
*/
public Integer obtainHttpPort() {
return httpPort;
} | 3.68 |
dubbo_ThreadlessExecutor_execute | /**
* If the calling thread is still waiting for a callback task, add the task into the blocking queue to wait for schedule.
* Otherwise, submit to shared callback executor directly.
*
* @param runnable
*/
@Override
public void execute(Runnable runnable) {
RunnableWrapper run = new RunnableWrapper(runnable);
... | 3.68 |
querydsl_BooleanBuilder_and | /**
* Create the intersection of this and the given predicate
*
* @param right right hand side of {@code and} operation
* @return the current object
*/
public BooleanBuilder and(@Nullable Predicate right) {
if (right != null) {
if (predicate == null) {
predicate = right;
} else {
... | 3.68 |
framework_DDEventHandleStrategy_handleMouseMove | /**
* Called to handle {@link Event#ONMOUSEMOVE} event.
*
* @param target
* target element over which DnD event has happened
* @param event
* ONMOUSEMOVE GWT event for active DnD operation
* @param mediator
* VDragAndDropManager data accessor
*/
protected void handleMouseMove(E... | 3.68 |
hbase_MasterServices_getSplitWALManager | /** Returns return null if current is zk-based WAL splitting */
default SplitWALManager getSplitWALManager() {
return null;
} | 3.68 |
hbase_HRegionFileSystem_removeStoreFiles | /**
* Closes and archives the specified store files from the specified family.
* @param familyName Family that contains the store files
* @param storeFiles set of store files to remove
* @throws IOException if the archiving fails
*/
public void removeStoreFiles(String familyName, Collection<HStoreFile> storeFiles)... | 3.68 |
hbase_CacheConfig_getCacheCompactedBlocksOnWriteThreshold | /** Returns total file size in bytes threshold for caching while writing during compaction */
public long getCacheCompactedBlocksOnWriteThreshold() {
return this.cacheCompactedDataOnWriteThreshold;
} | 3.68 |
flink_MemorySegment_putCharBigEndian | /**
* Writes the given character (16 bit, 2 bytes) to the given position in big-endian byte order.
* This method's speed depends on the system's native byte order, and it is possibly slower than
* {@link #putChar(int, char)}. For most cases (such as transient storage in memory or
* serialization for I/O and network... | 3.68 |
framework_VAbstractSplitPanel_setFirstWidget | /**
* For internal use only. May be removed or replaced in the future.
*
* @param w
* the widget to set to the first region or {@code null} to
* remove previously set widget
*/
public void setFirstWidget(Widget w) {
if (firstChild == w) {
return;
}
if (firstChild != null)... | 3.68 |
hadoop_TaggedInputSplit_getInputFormatClass | /**
* Retrieves the InputFormat class to use for this split.
*
* @return The InputFormat class to use
*/
public Class<? extends InputFormat> getInputFormatClass() {
return inputFormatClass;
} | 3.68 |
hbase_PrefixFilter_parseFrom | /**
* Parse a serialized representation of {@link PrefixFilter}
* @param pbBytes A pb serialized {@link PrefixFilter} instance
* @return An instance of {@link PrefixFilter} made from <code>bytes</code>
* @throws DeserializationException if an error occurred
* @see #toByteArray
*/
public static PrefixFilter parseF... | 3.68 |
framework_Navigator_addViewChangeListener | /**
* Listen to changes of the active view.
* <p>
* Registered listeners are invoked in registration order before (
* {@link ViewChangeListener#beforeViewChange(ViewChangeEvent)
* beforeViewChange()}) and after (
* {@link ViewChangeListener#afterViewChange(ViewChangeEvent)
* afterViewChange()}) a view change occ... | 3.68 |
hadoop_IOStatisticsBinding_trackDurationOfCallable | /**
* Given a callable/lambda expression,
* return a new one which wraps the inner and tracks
* the duration of the operation, including whether
* it passes/fails.
* @param factory factory of duration trackers
* @param statistic statistic key
* @param input input callable.
* @param <B> return type.
* @return a... | 3.68 |
morf_DatabaseType_findByProductName | /**
* Returns the first available database type matching the JDBC product
* name.
*
* <p>Returns empty if no matching database type is found. If there are
* multiple matches for the product name, {@link IllegalStateException}
* will be thrown.</p>
*
* <p>No performance guarantees are made, but it will be <em>at... | 3.68 |
pulsar_OpAddEntry_handleAddFailure | /**
* It handles add failure on the given ledger. it can be triggered when add-entry fails or times out.
*
* @param lh
*/
void handleAddFailure(final LedgerHandle lh) {
// If we get a write error, we will try to create a new ledger and re-submit the pending writes. If the
// ledger creation fails (persisten... | 3.68 |
flink_ArrayData_createElementGetter | /**
* Creates an accessor for getting elements in an internal array data structure at the given
* position.
*
* @param elementType the element type of the array
*/
static ElementGetter createElementGetter(LogicalType elementType) {
final ElementGetter elementGetter;
// ordered by type root definition
s... | 3.68 |
hbase_BlockingRpcConnection_closeSocket | // just close socket input and output.
private void closeSocket() {
IOUtils.closeStream(out);
IOUtils.closeStream(in);
IOUtils.closeSocket(socket);
out = null;
in = null;
socket = null;
} | 3.68 |
hbase_MiniBatchOperationInProgress_size | /** Returns The number of operations(Mutations) involved in this batch. */
public int size() {
return this.lastIndexExclusive - this.firstIndex;
} | 3.68 |
framework_VFilterSelect_doSelectedItemAction | /**
* Send the current selection to the server. Triggered when a selection
* is made or on a blur event.
*/
public void doSelectedItemAction() {
debug("VFS.SM: doSelectedItemAction()");
// do not send a value change event if null was and stays selected
final String enteredItemValue = tb.getText();
if... | 3.68 |
pulsar_LoadSimulationController_trade | // Trade using the arguments parsed via JCommander and the topic name.
private synchronized void trade(final ShellArguments arguments, final String topic, final int client)
throws Exception {
// Decide which client to send to randomly to preserve statelessness of
// the controller.
outputStreams[cli... | 3.68 |
flink_ExecutionConfig_disableForceAvro | /** Disables the Apache Avro serializer as the forced serializer for POJOs. */
public void disableForceAvro() {
setForceAvro(false);
} | 3.68 |
hbase_HMaster_getCompactionState | /**
* Get the compaction state of the table
* @param tableName The table name
* @return CompactionState Compaction state of the table
*/
public CompactionState getCompactionState(final TableName tableName) {
CompactionState compactionState = CompactionState.NONE;
try {
List<RegionInfo> regions = assignmentM... | 3.68 |
hbase_BaseReplicationEndpoint_getWALEntryfilter | /** Returns a default set of filters */
@Override
public WALEntryFilter getWALEntryfilter() {
ArrayList<WALEntryFilter> filters = Lists.newArrayList();
WALEntryFilter scopeFilter = getScopeWALEntryFilter();
if (scopeFilter != null) {
filters.add(scopeFilter);
}
WALEntryFilter tableCfFilter = getNamespaceT... | 3.68 |
flink_WindowsGrouping_reset | /** Reset for next group. */
public void reset() {
nextWindow = null;
watermark = Long.MIN_VALUE;
triggerWindowStartIndex = 0;
emptyWindowTriggered = true;
resetBuffer();
} | 3.68 |
framework_Table_getPageLength | /**
* Gets the page length.
*
* <p>
* Setting page length 0 disables paging.
* </p>
*
* @return the Length of one page.
*/
public int getPageLength() {
return pageLength;
} | 3.68 |
framework_VGridLayout_getRowHeights | /**
* Returns the row heights measured in pixels.
*
* @return
*/
protected int[] getRowHeights() {
return rowHeights;
} | 3.68 |
framework_VAccordion_getCaptionHeight | /**
* Returns the offset height of the caption node.
*
* @return the height in pixels
*/
public int getCaptionHeight() {
return captionNode.getOffsetHeight();
} | 3.68 |
shardingsphere-elasticjob_JobRegistry_isShutdown | /**
* Judge job is shutdown or not.
*
* @param jobName job name
* @return job is shutdown or not
*/
public boolean isShutdown(final String jobName) {
return !schedulerMap.containsKey(jobName) || !jobInstanceMap.containsKey(jobName);
} | 3.68 |
hbase_EndpointObserver_postEndpointInvocation | /**
* Called after an Endpoint service method is invoked. The response message can be altered using
* the builder.
* @param ctx the environment provided by the region server
* @param service the endpoint service
* @param methodName the invoked service method
* @param request Reque... | 3.68 |
hbase_FavoredNodesPlan_getFavoredServerPosition | /**
* Return the position of the server in the favoredNodes list. Assumes the favoredNodes list is of
* size 3.
*/
public static Position getFavoredServerPosition(List<ServerName> favoredNodes,
ServerName server) {
if (
favoredNodes == null || server == null
|| favoredNodes.size() != FavoredNodeAssignm... | 3.68 |
hadoop_IdentifierResolver_resolve | /**
* Resolves a given identifier. This method has to be called before calling
* any of the getters.
*/
public void resolve(String identifier) {
if (identifier.equalsIgnoreCase(RAW_BYTES_ID)) {
setInputWriterClass(RawBytesInputWriter.class);
setOutputReaderClass(RawBytesOutputReader.class);
setOutputKe... | 3.68 |
hibernate-validator_ValueExtractorManager_run | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.68 |
flink_ResultPartitionMetrics_refreshAndGetTotal | /**
* Iterates over all sub-partitions and collects the total number of queued buffers in a
* best-effort way.
*
* @return total number of queued buffers
*/
long refreshAndGetTotal() {
return partition.getNumberOfQueuedBuffers();
} | 3.68 |
flink_JoinedStreams_window | /** Specifies the window on which the join operation works. */
@PublicEvolving
public <W extends Window> WithWindow<T1, T2, KEY, W> window(
WindowAssigner<? super TaggedUnion<T1, T2>, W> assigner) {
return new WithWindow<>(
input1,
input2,
keySelector1,
keySel... | 3.68 |
flink_ActorSystemBootstrapTools_startActorSystem | /**
* Starts an Actor System with given Pekko config.
*
* @param config Config of the started ActorSystem.
* @param actorSystemName Name of the started ActorSystem.
* @param logger The logger to output log information.
* @return The ActorSystem which has been started.
*/
private static ActorSystem startActorSyst... | 3.68 |
hadoop_OBSBlockOutputStream_uploadCurrentBlock | /**
* Start an asynchronous upload of the current block.
*
* @throws IOException Problems opening the destination for upload or
* initializing the upload.
*/
private synchronized void uploadCurrentBlock() throws IOException {
Preconditions.checkState(hasActiveBlock(), "No active block");
LO... | 3.68 |
zxing_FormatInformation_decodeFormatInformation | /**
* @param maskedFormatInfo1 format info indicator, with mask still applied
* @param maskedFormatInfo2 second copy of same info; both are checked at the same time
* to establish best match
* @return information about the format it specifies, or {@code null}
* if doesn't seem to match any known pattern
*/
stat... | 3.68 |
flink_Hardware_getNumberCPUCores | /**
* Gets the number of CPU cores (hardware contexts) that the JVM has access to.
*
* @return The number of CPU cores.
*/
public static int getNumberCPUCores() {
return Runtime.getRuntime().availableProcessors();
} | 3.68 |
hadoop_SFTPConnectionPool_shutdown | /** Shutdown the connection pool and close all open connections. */
synchronized void shutdown() {
if (this.con2infoMap == null){
return; // already shutdown in case it is called
}
LOG.info("Inside shutdown, con2infoMap size=" + con2infoMap.size());
this.maxConnection = 0;
Set<ChannelSftp> cons = con2inf... | 3.68 |
framework_AbstractComponent_isEnabled | /*
* (non-Javadoc)
*
* @see com.vaadin.ui.Component#isEnabled()
*/
@Override
public boolean isEnabled() {
return getState(false).enabled;
} | 3.68 |
flink_TableResultImpl_jobClient | /**
* Specifies job client which associates the submitted Flink job.
*
* @param jobClient a {@link JobClient} for the submitted Flink job.
*/
public Builder jobClient(JobClient jobClient) {
this.jobClient = jobClient;
return this;
} | 3.68 |
flink_HsBufferContext_release | /** Mark buffer status to release. */
public void release() {
if (isReleased()) {
return;
}
released = true;
// decrease ref count when buffer is released from memory.
buffer.recycleBuffer();
} | 3.68 |
hadoop_LocalCacheDirectoryManager_getCacheDirectoryRoot | /**
* Given a path to a directory within a local cache tree return the
* root of the cache directory.
*
* @param path the directory within a cache directory
* @return the local cache directory root or null if not found
*/
public static Path getCacheDirectoryRoot(Path path) {
while (path != null) {
String n... | 3.68 |
hadoop_ReduceTaskAttemptInfo_getShuffleRuntime | /**
* Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
*
* @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt
*/
public long getShuffleRuntime() {
return shuffleTime;
} | 3.68 |
flink_Tuple15_of | /**
* Creates a new tuple and assigns the given values to the tuple's fields. This is more
* convenient than using the constructor, because the compiler can infer the generic type
* arguments implicitly. For example: {@code Tuple3.of(n, x, s)} instead of {@code new
* Tuple3<Integer, Double, String>(n, x, s)}
*/
pu... | 3.68 |
hbase_HFileBlock_getHFileContext | /**
* @return This HFileBlocks fileContext which will a derivative of the fileContext for the file
* from which this block's data was originally read.
*/
public HFileContext getHFileContext() {
return this.fileContext;
} | 3.68 |
flink_SplitAssignmentTracker_onCheckpoint | /**
* Behavior of SplitAssignmentTracker on checkpoint. Tracker will mark uncheckpointed assignment
* as checkpointed with current checkpoint ID.
*
* @param checkpointId the id of the ongoing checkpoint
*/
public void onCheckpoint(long checkpointId) throws Exception {
// Include the uncheckpointed assignments ... | 3.68 |
streampipes_InfluxStore_close | /**
* Shuts down the connection to the InfluxDB server
*/
public void close() throws SpRuntimeException {
influxDb.flush();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new SpRuntimeException(e);
}
influxDb.close();
} | 3.68 |
hadoop_ActiveAuditManagerS3A_setUnbondedSpan | /**
* Set the unbonded span.
* @param unbondedSpan the new unbonded span
*/
private void setUnbondedSpan(final WrappingAuditSpan unbondedSpan) {
this.unbondedSpan = unbondedSpan;
} | 3.68 |
zxing_MatrixUtil_embedDarkDotAtLeftBottomCorner | // Embed the lonely dark dot at left bottom corner. JISX0510:2004 (p.46)
private static void embedDarkDotAtLeftBottomCorner(ByteMatrix matrix) throws WriterException {
if (matrix.get(8, matrix.getHeight() - 8) == 0) {
throw new WriterException();
}
matrix.set(8, matrix.getHeight() - 8, 1);
} | 3.68 |
framework_VTree_getNavigationEndKey | /**
* Get the key the moves the selection to the end of the table. By default
* this is the End key but by overriding this you can change the key to
* whatever you want.
*
* @return
*/
protected int getNavigationEndKey() {
return KeyCodes.KEY_END;
} | 3.68 |
hbase_HRegion_getRowLockInternal | // will be override in tests
protected RowLock getRowLockInternal(byte[] row, boolean readLock, RowLock prevRowLock)
throws IOException {
// create an object to use a a key in the row lock map
HashedBytes rowKey = new HashedBytes(row);
RowLockContext rowLockContext = null;
RowLockImpl result = null;
boole... | 3.68 |
hbase_ZKWatcher_connectionEvent | /**
* Called when there is a connection-related event via the Watcher callback.
* <p>
* If Disconnected or Expired, this should shutdown the cluster. But, since we send a
* KeeperException.SessionExpiredException along with the abort call, it's possible for the
* Abortable to catch it and try to create a new sessi... | 3.68 |
hadoop_AzureNativeFileSystemStore_createPermissionJsonSerializer | /**
* Creates a JSON serializer that can serialize a PermissionStatus object into
* the JSON string we want in the blob metadata.
*
* @return The JSON serializer.
*/
private static JSON createPermissionJsonSerializer() {
org.eclipse.jetty.util.log.Log.getProperties().setProperty("org.eclipse.jetty.util.log.annou... | 3.68 |
flink_SqlGatewayRestAPIVersion_getStableVersions | /**
* Returns the supported stable versions.
*
* @return the list of the stable versions.
*/
public static List<SqlGatewayRestAPIVersion> getStableVersions() {
return Arrays.stream(SqlGatewayRestAPIVersion.values())
.filter(SqlGatewayRestAPIVersion::isStableVersion)
.collect(Collectors.t... | 3.68 |
hudi_HoodieRecordPayload_getOrderingValue | /**
* This method can be used to extract the ordering value of the payload for combining/merging,
* or 0 if no value is specified which means natural order(arrival time is used).
*
* @return the ordering value
*/
@PublicAPIMethod(maturity = ApiMaturityLevel.STABLE)
default Comparable<?> getOrderingValue() {
// d... | 3.68 |
framework_GridConnector_getRowKey | /**
* Gets the row key for a row object.
*
* @param row
* the row object
* @return the key for the given row
*/
public String getRowKey(JsonObject row) {
final Object key = dataSource.getRowKey(row);
assert key instanceof String : "Internal key was not a String but a "
+ key.getClas... | 3.68 |
framework_VAbstractCalendarPanel_getDate | /**
* Returns the current date value.
*
* @return current date value
*/
public Date getDate() {
return value;
} | 3.68 |
flink_SubtaskStateStats_getAlignmentDuration | /**
* @return Duration of the stream alignment (for exactly-once only) or <code>-1</code> if the
* runtime did not report this.
*/
public long getAlignmentDuration() {
return alignmentDuration;
} | 3.68 |
framework_SQLContainer_removeAllContainerFilters | /**
* {@inheritDoc}
*/
@Override
public void removeAllContainerFilters() {
filters.clear();
refresh();
} | 3.68 |
flink_DataSet_max | /**
* Syntactic sugar for {@link #aggregate(Aggregations, int)} using {@link Aggregations#MAX} as
* the aggregation function.
*
* <p><strong>Note:</strong> This operation is not to be confused with {@link #maxBy(int...)},
* which selects one element with maximum value at the specified field positions.
*
* @param... | 3.68 |
hadoop_WeightedPolicyInfo_getHeadroomAlpha | /**
* Return the parameter headroomAlpha, used by policies that balance
* weight-based and load-based considerations in their decisions.
*
* For policies that use this parameter, values close to 1 indicate that most
* of the decision should be based on currently observed headroom from various
* sub-clusters, valu... | 3.68 |
flink_TableColumn_of | /** @deprecated Use {@link #computed(String, DataType, String)} instead. */
@Deprecated
public static TableColumn of(String name, DataType type, String expression) {
return computed(name, type, expression);
} | 3.68 |
flink_JobEdge_setShipStrategyName | /**
* Sets the name of the ship strategy for the represented input.
*
* @param shipStrategyName The name of the ship strategy.
*/
public void setShipStrategyName(String shipStrategyName) {
this.shipStrategyName = shipStrategyName;
} | 3.68 |
hudi_HoodiePipeline_option | /**
* Add a config option.
*/
public Builder option(ConfigOption<?> option, Object val) {
this.options.put(option.key(), val.toString());
return this;
} | 3.68 |
framework_VOverlay_getApplicationConnection | /**
* Get the {@link ApplicationConnection} that this overlay belongs to. If
* it's not set, {@link #getOwner()} is used to figure it out.
*
* @return
*/
protected ApplicationConnection getApplicationConnection() {
if (ac != null) {
return ac;
} else if (getOwner() != null) {
ComponentConne... | 3.68 |
streampipes_PipelineManager_getPipeline | /**
* Returns the stored pipeline with the given pipeline id
*
* @param pipelineId id of pipeline
* @return pipeline resulting pipeline with given id
*/
public static Pipeline getPipeline(String pipelineId) {
return getPipelineStorage().getPipeline(pipelineId);
} | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.