name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hbase_CompactingMemStore_size | /**
* @return Total memory occupied by this MemStore. This won't include any size occupied by the
* snapshot. We assume the snapshot will get cleared soon. This is not thread safe and the
* memstore may be changed while computing its size. It is the responsibility of the
* caller to make sur... | 3.68 |
hbase_ResponseConverter_getResults | /**
* Create Results from the cells using the cells meta data.
*/
public static Result[] getResults(CellScanner cellScanner, ScanResponse response)
throws IOException {
if (response == null) return null;
// If cellscanner, then the number of Results to return is the count of elements in the
// cellsPerResult ... | 3.68 |
hbase_ColumnFamilyDescriptorBuilder_setVersionsWithTimeToLive | /**
* Retain all versions for a given TTL(retentionInterval), and then only a specific number of
* versions(versionAfterInterval) after that interval elapses.
* @param retentionInterval Retain all versions for this interval
* @param versionAfterInterval Retain no of versions to retain after retentionInterval
* ... | 3.68 |
framework_VTabsheet_focusPreviousTab | /**
* Left arrow key focus move. Selection won't change until the selection
* key is pressed, but the target tab must be selectable. If no
* selectable tabs are found before currently focused tab, focus isn't
* moved.
*/
private void focusPreviousTab() {
int newTabIndex = focusedTabIndex;
// Find the previ... | 3.68 |
hadoop_AbfsOutputStream_write | /**
* Writes length bytes from the specified byte array starting at off to
* this output stream.
*
* @param data the byte array to write.
* @param off the start off in the data.
* @param length the number of bytes to write.
* @throws IOException if an I/O error occurs. In particular, an IOException may be
* ... | 3.68 |
hbase_ProcedureUtil_createRetryCounter | /**
* Get a retry counter for getting the backoff time. We will use the
* {@link ExponentialBackoffPolicyWithLimit} policy, and the base unit is 1 second, max sleep time
* is 10 minutes by default.
* <p/>
* For UTs, you can set the {@link #PROCEDURE_RETRY_SLEEP_INTERVAL_MS} and
* {@link #PROCEDURE_RETRY_MAX_SLEEP... | 3.68 |
hbase_QuotaState_setQuotas | /**
* Setup the global quota information. (This operation is part of the QuotaState setup)
*/
public synchronized void setQuotas(final Quotas quotas) {
if (quotas.hasThrottle()) {
globalLimiter = QuotaLimiterFactory.fromThrottle(quotas.getThrottle());
} else {
globalLimiter = NoopQuotaLimiter.get();
}
} | 3.68 |
flink_CatalogManager_getCatalog | /**
* Gets a {@link Catalog} instance by name.
*
* <p>If the catalog has already been initialized, the initialized instance will be returned
* directly. Otherwise, the {@link CatalogDescriptor} will be obtained from the {@link
* CatalogStore}, and the catalog instance will be initialized.
*
* @param catalogName ... | 3.68 |
morf_SqlDialect_appendFrom | /**
* appends from clause to the result
*
* @param result from clause will be appended here
* @param stmt statement with from clause
* @param <T> The type of AbstractSelectStatement
*/
protected <T extends AbstractSelectStatement<T>> void appendFrom(StringBuilder result, AbstractSelectStatement<T> stmt) {
if (s... | 3.68 |
framework_ComponentLocator_getClient | /**
* Returns the {@link ApplicationConnection} used by this locator.
* <p>
* This method is primarily for internal use by the framework.
*
* @return the application connection
*/
public ApplicationConnection getClient() {
return client;
} | 3.68 |
framework_UIInitHandler_getPushIdUIDL | /**
* Gets the push connection identifier as UIDL.
*
* @param session
* the vaadin session to which the security key belongs
* @return the push identifier UIDL
*/
private static String getPushIdUIDL(VaadinSession session) {
return "\"" + ApplicationConstants.UIDL_PUSH_ID + "\":\""
+ ses... | 3.68 |
hudi_JenkinsHash_hash | /**
* taken from hashlittle() -- hash a variable-length key into a 32-bit value
*
* @param key the key (the unaligned variable-length array of bytes)
* @param nbytes number of bytes to include in hash
* @param initval can be any integer value
* @return a 32-bit value. Every bit of the key affects every bit... | 3.68 |
hudi_AbstractTableFileSystemView_buildFileGroups | /**
* Build FileGroups from passed in file-status.
*/
protected List<HoodieFileGroup> buildFileGroups(FileStatus[] statuses, HoodieTimeline timeline,
boolean addPendingCompactionFileSlice) {
return buildFileGroups(convertFileStatusesToBaseFiles(statuses), convertFileS... | 3.68 |
hbase_Server_getFileSystem | /** Returns Return the FileSystem object used (can return null!). */
// TODO: Distinguish between "dataFs" and "walFs".
default FileSystem getFileSystem() {
// This default is pretty dodgy!
Configuration c = getConfiguration();
FileSystem fs = null;
try {
if (c != null) {
fs = FileSystem.get(c);
}... | 3.68 |
dubbo_NetUtils_isValidAddress | /**
* Tells whether the address to test is an invalid address.
*
* @implNote Pattern matching only.
* @param address address to test
* @return true if invalid
*/
public static boolean isValidAddress(String address) {
return ADDRESS_PATTERN.matcher(address).matches();
} | 3.68 |
hbase_MasterObserver_postAddReplicationPeer | /**
* Called after add a replication peer
* @param ctx the environment to interact with the framework and master
* @param peerId a short name that identifies the peer
* @param peerConfig configuration for the replication peer
*/
default void postAddReplicationPeer(final ObserverContext<MasterCoprocessor... | 3.68 |
flink_ExecutionConfig_canEqual | /**
* This method simply checks whether the object is an {@link ExecutionConfig} instance.
*
* @deprecated It is not intended to be used by users.
*/
@Deprecated
public boolean canEqual(Object obj) {
return obj instanceof ExecutionConfig;
} | 3.68 |
flink_CliFrontend_getDefaultParallelism | /**
* Get default parallelism from command line via effective configuration.
*
* @param effectiveConfiguration Flink effective configuration.
* @return default parallelism.
*/
private int getDefaultParallelism(Configuration effectiveConfiguration) {
return effectiveConfiguration.get(CoreOptions.DEFAULT_PARALLE... | 3.68 |
framework_Profiler_isImplEnabled | /**
* Overridden in {@link EnabledProfiler} to make {@link #isEnabled()} return
* true if GWT.create returns that class.
*
* @return <code>true</code> if the profiling is enabled, else
* <code>false</code>
*/
protected boolean isImplEnabled() {
return false;
} | 3.68 |
hbase_SnapshotScannerHDFSAclHelper_grantAcl | /**
* Set acl when grant user permission
* @param userPermission the user and permission
* @param skipNamespaces the namespace set to skip set acl because already set
* @param skipTables the table set to skip set acl because already set
* @return false if an error occurred, otherwise true
*/
public boolean gr... | 3.68 |
framework_VLayoutSlot_positionHorizontally | /**
* Position the slot horizontally and set the width and the right margin.
*
* @param currentLocation
* the left position for this slot
* @param allocatedSpace
* how much horizontal space is available for this slot
* @param marginRight
* the right margin this slot should have ... | 3.68 |
pulsar_AuthorizationProvider_getSubscriptionPermissionsAsync | /**
* Get authorization-action permissions on a topic.
* @param namespaceName
* @return CompletableFuture<Map<String, Set<String>>>
*/
default CompletableFuture<Map<String, Set<String>>> getSubscriptionPermissionsAsync(NamespaceName namespaceName) {
return FutureUtil.failedFuture(new IllegalStateException(
... | 3.68 |
hadoop_FederationRegistryClient_removeAppFromRegistry | /**
* Remove an application from registry.
*
* @param appId application id
* @param ignoreMemoryState whether to ignore the memory data in terms of
* known application
*/
public synchronized void removeAppFromRegistry(ApplicationId appId,
boolean ignoreMemoryState) {
Map<String, Token<AMRMTokenIdentifi... | 3.68 |
hadoop_HsSingleCounterPage_preHead | /*
* (non-Javadoc)
* @see org.apache.hadoop.mapreduce.v2.hs.webapp.HsView#preHead(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML)
*/
@Override protected void preHead(Page.HTML<__> html) {
commonPreHead(html);
setActiveNavColumnForTask();
set(DATATABLES_ID, "singleCounter");
set(initID(DATATABLES, "singleCo... | 3.68 |
morf_FieldReference_build | /**
* Builds the {@link FieldReference}.
*
* @return The field reference.
*/
@Override
public FieldReference build() {
return new FieldReference(alias, table, name, direction, nullValueHandling);
} | 3.68 |
hudi_BaseHoodieTableServiceClient_inlineCompaction | /**
* Performs a compaction operation on a table, serially before or after an insert/upsert action.
* Scheduling and execution is done inline.
*/
protected Option<String> inlineCompaction(Option<Map<String, String>> extraMetadata) {
Option<String> compactionInstantTimeOpt = inlineScheduleCompaction(extraMetadata);... | 3.68 |
framework_Page_getHeight | /**
* Gets the new browser window height.
*
* @return an integer with the new pixel height of the browser window
*/
public int getHeight() {
return height;
} | 3.68 |
hbase_CreateStoreFileWriterParams_includesTag | /**
* Whether to includesTag or not
*/
public CreateStoreFileWriterParams includesTag(boolean includesTag) {
this.includesTag = includesTag;
return this;
} | 3.68 |
framework_VTree_getNavigationPageUpKey | /**
* Get the key the moves the selection one page up in the table. By default
* this is the Page Up key but by overriding this you can change the key to
* whatever you want.
*
* @return
*/
protected int getNavigationPageUpKey() {
return KeyCodes.KEY_PAGEUP;
} | 3.68 |
framework_VAccordion_setHeight | /**
* Sets the height for this stack item's contents.
*
* @param height
* the height to set (in pixels), or {@code -1} to remove
* height
*/
public void setHeight(int height) {
if (height == -1) {
super.setHeight("");
content.getStyle().setHeight(0, Unit.PX);
} else {... | 3.68 |
pulsar_TimeAverageBrokerData_reset | /**
* Reuse this TimeAverageBrokerData using new data.
*
* @param bundles
* The bundles belonging to the broker.
* @param data
* Map from bundle names to the data for that bundle.
* @param defaultStats
* The stats to use when a bundle belonging to this broker is not found in the... | 3.68 |
hadoop_TaskAttemptContextImpl_getTaskAttemptID | /**
* Get the unique name for this task attempt.
*/
public TaskAttemptID getTaskAttemptID() {
return taskId;
} | 3.68 |
hbase_HFileCorruptionChecker_getMobFilesChecked | /** Returns number of mob files checked in the last HfileCorruptionChecker run */
public int getMobFilesChecked() {
return mobFilesChecked.get();
} | 3.68 |
hbase_RegionCoprocessorHost_postScannerFilterRow | /**
* This will be called by the scan flow when the current scanned row is being filtered out by the
* filter.
* @param s the scanner
* @param curRowCell The cell in the current row which got filtered out
* @return whether more rows are available for the scanner or not
*/
public boolean postScannerFilter... | 3.68 |
hbase_ExecutorType_getExecutorName | /** Returns Conflation of the executor type and the passed {@code serverName}. */
String getExecutorName(String serverName) {
return this.toString() + "-" + serverName.replace("%", "%%");
} | 3.68 |
zxing_DataMatrixWriter_convertByteMatrixToBitMatrix | /**
* Convert the ByteMatrix to BitMatrix.
*
* @param reqHeight The requested height of the image (in pixels) with the Datamatrix code
* @param reqWidth The requested width of the image (in pixels) with the Datamatrix code
* @param matrix The input matrix.
* @return The output matrix.
*/
private static BitMatrix... | 3.68 |
hbase_SnapshotScannerHDFSAclHelper_snapshotAcl | /**
* Set acl when take a snapshot
* @param snapshot the snapshot desc
* @return false if an error occurred, otherwise true
*/
public boolean snapshotAcl(SnapshotDescription snapshot) {
try {
long start = EnvironmentEdgeManager.currentTime();
TableName tableName = snapshot.getTableName();
// global us... | 3.68 |
hadoop_MoveStep_setVolumeSetID | /**
* Sets volume id.
*
* @param volumeSetID - volume ID
*/
public void setVolumeSetID(String volumeSetID) {
this.volumeSetID = volumeSetID;
} | 3.68 |
hadoop_PoolAlignmentContext_updateResponseState | /**
* Client side implementation only receives state alignment info.
* It does not provide state alignment info therefore this does nothing.
*/
@Override
public void updateResponseState(RpcHeaderProtos.RpcResponseHeaderProto.Builder header) {
// Do nothing.
} | 3.68 |
flink_ResultPartitionMetrics_refreshAndGetAvg | /**
* Iterates over all sub-partitions and collects the average number of queued buffers in a
* sub-partition in a best-effort way.
*
* @return average number of queued buffers per sub-partition
*/
float refreshAndGetAvg() {
return partition.getNumberOfQueuedBuffers() / (float) partition.getNumberOfSubpartitio... | 3.68 |
hbase_OrderedBytes_decodeNumericAsLong | /**
* Decode a primitive {@code long} value from the Numeric encoding. Numeric encoding is based on
* {@link BigDecimal}; in the event the encoded value is larger than can be represented in a
* {@code long}, this method performs an implicit narrowing conversion as described in
* {@link BigDecimal#doubleValue()}.
*... | 3.68 |
framework_Tree_getChildren | /**
* Gets the IDs of all Items that are children of the specified Item.
*
* @see Container.Hierarchical#getChildren(Object)
*/
@Override
public Collection<?> getChildren(Object itemId) {
return ((Container.Hierarchical) items).getChildren(itemId);
} | 3.68 |
querydsl_AbstractFetchableMongodbQuery_fetchFirst | /**
* Fetch first with the specific fields
*
* @param paths fields to return
* @return first result
*/
public K fetchFirst(Path<?>... paths) {
getQueryMixin().setProjection(paths);
return fetchFirst();
} | 3.68 |
hmily_HashedWheelTimer_addTimeout | /**
* Add {@link HashedWheelTimeout} to this bucket.
*/
public void addTimeout(final HashedWheelTimeout timeout) {
assert timeout.bucket == null;
timeout.bucket = this;
if (head == null) {
head = tail = timeout;
} else {
tail.next = timeout;
timeout.prev = tail;
tail = ... | 3.68 |
morf_SqlScriptExecutorProvider_get | /**
* Gets an instance of a {@link SqlScriptExecutor} with the provided visitor
* set.
*
* @param visitor the visitor.
* @return an instance of an {@link SqlScriptExecutor}.
*/
public SqlScriptExecutor get(SqlScriptVisitor visitor) {
if (connectionResources != null) {
return new SqlScriptExecutor(defaultVis... | 3.68 |
flink_DefaultLookupCache_build | /** Creates the cache. */
public DefaultLookupCache build() {
return new DefaultLookupCache(
expireAfterAccessDuration,
expireAfterWriteDuration,
maximumSize,
cacheMissingKey);
} | 3.68 |
flink_BinaryArrayWriter_setNullAt | /**
* @deprecated Use {@link #createNullSetter(LogicalType)} for avoiding logical types during
* runtime.
*/
@Deprecated
public void setNullAt(int pos, LogicalType type) {
switch (type.getTypeRoot()) {
case BOOLEAN:
setNullBoolean(pos);
break;
case TINYINT:
... | 3.68 |
framework_Upload_setImmediateMode | /**
* Sets the immediate mode of the upload.
* <p>
* If the upload is in immediate mode, the file upload is started
* immediately after the user has selected the file.
* <p>
* If the upload is not in immediate mode, after selecting the file the user
* must click another button to start the upload.
* <p>
* The ... | 3.68 |
hadoop_FsGetter_getNewInstance | /**
* Gets new file system instance of given uri.
* @param uri uri.
* @param conf configuration.
* @throws IOException raised on errors performing I/O.
* @return file system.
*/
public FileSystem getNewInstance(URI uri, Configuration conf)
throws IOException {
return FileSystem.newInstance(uri, conf);
} | 3.68 |
Activiti_TreeValueExpression_dump | /**
* Print the parse tree.
* @param writer
*/
public void dump(PrintWriter writer) {
NodePrinter.dump(writer, node);
} | 3.68 |
flink_JobGraph_getJobConfiguration | /**
* Returns the configuration object for this job. Job-wide parameters should be set into that
* configuration object.
*
* @return The configuration object for this job.
*/
public Configuration getJobConfiguration() {
return this.jobConfiguration;
} | 3.68 |
druid_WallConfig_setSelelctAllow | /**
* @deprecated use setSelelctAllow
*/
public void setSelelctAllow(boolean selelctAllow) {
this.setSelectAllow(selelctAllow);
} | 3.68 |
hbase_HRegion_replayWALFlushStartMarker | /**
* Replay the flush marker from primary region by creating a corresponding snapshot of the store
* memstores, only if the memstores do not have a higher seqId from an earlier wal edit (because
* the events may be coming out of order).
* @deprecated Since 3.0.0, will be removed in 4.0.0. Only for keep compatibili... | 3.68 |
flink_PipelinedSubpartition_getChannelStateFuture | /** for testing only. */
// suppress this warning as it is only for testing.
@SuppressWarnings("FieldAccessNotGuarded")
@VisibleForTesting
CompletableFuture<List<Buffer>> getChannelStateFuture() {
return channelStateFuture;
} | 3.68 |
AreaShop_ResellingRegionEvent_getBuyer | /**
* Get the player that is trying to buy the region.
* @return The player that is trying to buy the region
*/
public OfflinePlayer getBuyer() {
return player;
} | 3.68 |
flink_VersionedIOReadableWritable_getReadVersion | /**
* Returns the found serialization version. If this instance was not read from serialized bytes
* but simply instantiated, then the current version is returned.
*
* @return the read serialization version, or the current version if the instance was not read
* from bytes.
*/
public int getReadVersion() {
... | 3.68 |
hadoop_AbstractTask_getTaskId | /**
* Get TaskId for a Task.
* @return TaskID: Task command line
*/
@Override
public final TaskId getTaskId() {
return taskID;
} | 3.68 |
hbase_HFileWriterImpl_createOutputStream | /** A helper method to create HFile output streams in constructors */
protected static FSDataOutputStream createOutputStream(Configuration conf, FileSystem fs,
Path path, InetSocketAddress[] favoredNodes) throws IOException {
FsPermission perms = CommonFSUtils.getFilePermissions(fs, conf, HConstants.DATA_FILE_UMASK... | 3.68 |
hibernate-validator_MetaDataBuilder_add | /**
* Adds the given element to this builder. It must be checked with
* {@link #accepts(ConstrainedElement)} before, whether this is allowed or
* not.
*
* @param constrainedElement The element to add.
*/
public void add(ConstrainedElement constrainedElement) {
directConstraints.addAll( adaptConstraints( constrai... | 3.68 |
framework_OnStateChangeMethod_invoke | /**
* Invokes the listener method for a state change.
*
* @param stateChangeEvent
* the state change event
*/
public void invoke(StateChangeEvent stateChangeEvent) {
ServerConnector connector = (ServerConnector) stateChangeEvent
.getSource();
Class<?> declaringClass = this.declaring... | 3.68 |
framework_UIConnector_forceStateChangeRecursively | /**
* Force a full recursive re-check of every connector's state variables.
*
* @see #forceStateChange()
*
* @since 7.3
*
* @param connector
* the connector which should get recursive forced state change
*/
protected static void forceStateChangeRecursively(
AbstractConnector connector) {
... | 3.68 |
hadoop_IOStatisticsBinding_trackJavaFunctionDuration | /**
* Given a java function/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 inputFn input function
* @param <A> type of argument to... | 3.68 |
hadoop_ResourceUsageMetrics_getVirtualMemoryUsage | /**
* Get the virtual memory usage.
*/
public long getVirtualMemoryUsage() {
return virtualMemoryUsage;
} | 3.68 |
framework_AbstractSelect_getItemIdOver | /**
* If the drag operation is currently over an {@link Item}, this method
* returns the identifier of that {@link Item}.
*
*/
public Object getItemIdOver() {
return idOver;
} | 3.68 |
pulsar_LegacyHierarchicalLedgerRangeIterator_getEndLedgerIdByLevel | /**
* Get the largest cache id in a specified node /level1/level2.
*
* @param level1
* 1st level node name
* @param level2
* 2nd level node name
* @return the largest ledger id
*/
private long getEndLedgerIdByLevel(String level1, String level2) throws IOException {
return StringUtils.strin... | 3.68 |
hudi_SparkRDDWriteClient_bootstrap | /**
* Main API to run bootstrap to hudi.
*/
@Override
public void bootstrap(Option<Map<String, String>> extraMetadata) {
initTable(WriteOperationType.UPSERT, Option.ofNullable(HoodieTimeline.METADATA_BOOTSTRAP_INSTANT_TS)).bootstrap(context, extraMetadata);
} | 3.68 |
hbase_MetricSampleQuantiles_snapshot | /**
* Get a snapshot of the current values of all the tracked quantiles.
* @return snapshot of the tracked quantiles if no items have been added to the estimator
*/
synchronized public Map<MetricQuantile, Long> snapshot() throws IOException {
// flush the buffer first for best results
insertBatch();
Map<Metric... | 3.68 |
hbase_ZKNodeTracker_blockUntilAvailable | /**
* Gets the data of the node, blocking until the node is available or the specified timeout has
* elapsed.
* @param timeout maximum time to wait for the node data to be available, n milliseconds. Pass 0
* for no timeout.
* @return data of the node
* @throws InterruptedException if the waiting th... | 3.68 |
framework_VScrollTable_isScrollPositionVisible | /** For internal use only. May be removed or replaced in the future. */
public boolean isScrollPositionVisible() {
return scrollPositionElement != null && !scrollPositionElement
.getStyle().getDisplay().equals(Display.NONE.toString());
} | 3.68 |
morf_GraphBasedUpgradeBuilder_traverseAndLog | /**
* Recurrence method logging the nodes.
*
* @param node to be logged
* @param visited set of already logged nodes which should not be logged again
*/
private void traverseAndLog(GraphBasedUpgradeNode node, Set<GraphBasedUpgradeNode> visited) {
if (!visited.contains(node)) {
LOG.debug(node.toString());
... | 3.68 |
hudi_StreamerUtil_readConfig | /**
* Read config from properties file (`--props` option) and cmd line (`--hoodie-conf` option).
*/
public static DFSPropertiesConfiguration readConfig(org.apache.hadoop.conf.Configuration hadoopConfig, Path cfgPath, List<String> overriddenProps) {
DFSPropertiesConfiguration conf = new DFSPropertiesConfiguration(ha... | 3.68 |
pulsar_AdditionalServletUtils_searchForServlets | /**
* Search and load the available additional servlets.
*
* @param additionalServletDirectory the directory where all the additional servlets are stored
* @return a collection of additional servlet definitions
* @throws IOException when fail to load the available additional servlets from the provided directory.
... | 3.68 |
flink_TableColumn_getName | /** Returns the name of this column. */
public String getName() {
return name;
} | 3.68 |
morf_InsertStatement_avoidDirectPath | /**
* If supported by the dialect, hints to the database that an {@code APPEND} query hint should be used in the insert statement.
*
* <p>In general, as with all query plan modification, <strong>do not use this unless you know
* exactly what you are doing</strong>.</p>
*
* <p>These directives are applied in the S... | 3.68 |
hbase_MetricsSink_incrementFailedBatches | /**
* Convenience method to update metrics when batch of operations has failed.
*/
public void incrementFailedBatches() {
mss.incrFailedBatches();
} | 3.68 |
streampipes_AdapterHealthCheck_checkAndRestoreAdapters | /**
* In this method it is checked which adapters are currently running.
* Then it calls all workers to validate if the adapter instance is
* still running as expected. If the adapter is not running anymore a new worker instance is invoked.
*/
public void checkAndRestoreAdapters() {
// Get all adapters
Map<Stri... | 3.68 |
hmily_ZkPassiveConfig_fileName | /**
* File name string.
*
* @return the string
*/
public String fileName() {
return path + "." + fileExtension;
} | 3.68 |
hadoop_OBSFileSystem_initCannedAcls | /**
* Initialize bucket acl for upload, write operation.
*
* @param conf the configuration to use for the FS.
*/
private void initCannedAcls(final Configuration conf) {
// No canned acl in obs
String cannedACLName = conf.get(OBSConstants.CANNED_ACL,
OBSConstants.DEFAULT_CANNED_ACL);
if (!cannedACLName.i... | 3.68 |
framework_VaadinService_findVaadinSession | /**
* Attempts to find a Vaadin service session associated with this request.
* <p>
* Handles locking of the session internally to avoid creation of duplicate
* sessions by two threads simultaneously.
* </p>
*
* @param request
* the request to get a vaadin service session for.
*
* @see VaadinSessio... | 3.68 |
framework_DropTargetExtension_onDrop | /**
* Invoked when a <code>drop</code> has been received from client side.
* Fires the {@link DropEvent}.
*
* @param types
* List of data types from {@code DataTransfer.types} object.
* @param data
* Map containing all types and corresponding data from the
* {@code
* Da... | 3.68 |
pulsar_KubernetesServiceAccountTokenAuthProvider_cacheAuthData | /**
* No need to cache anything. Kubernetes generates the token used for authentication.
*/
@Override
public Optional<FunctionAuthData> cacheAuthData(Function.FunctionDetails funcDetails,
AuthenticationDataSource authenticationDataSource)
throws Exception {
... | 3.68 |
hbase_ProcedureCoordinator_rpcConnectionFailure | /**
* The connection to the rest of the procedure group (members and coordinator) has been
* broken/lost/failed. This should fail any interested procedures, but not attempt to notify other
* members since we cannot reach them anymore.
* @param message description of the error
* @param cause the actual cause of t... | 3.68 |
hbase_ProcedureExecutor_submitProcedures | /**
* Add a set of new root-procedure to the executor.
* @param procs the new procedures to execute.
*/
// TODO: Do we need to take nonces here?
public void submitProcedures(Procedure<TEnvironment>[] procs) {
Preconditions.checkArgument(lastProcId.get() >= 0);
if (procs == null || procs.length <= 0) {
return... | 3.68 |
flink_Bucket_restore | /**
* Restores a {@code Bucket} from the state included in the provided {@link BucketState}.
*
* @param subtaskIndex the index of the subtask creating the bucket.
* @param initialPartCounter the initial counter for the part files of the bucket.
* @param bucketWriter the {@link BucketWriter} used to write part file... | 3.68 |
graphhopper_MatrixResponse_hasProblems | /**
* @return true if there are invalid or disconnected points (which both do not yield an error in case we do not fail fast).
* @see GHMRequest#setFailFast(boolean)
*/
public boolean hasProblems() {
return !disconnectedPoints.isEmpty() || !invalidFromPoints.isEmpty() || !invalidToPoints.isEmpty();
} | 3.68 |
hbase_AsyncConnection_getTable | /**
* Retrieve an {@link AsyncTable} implementation for accessing a table.
* <p>
* This method no longer checks table existence. An exception will be thrown if the table does not
* exist only when the first operation is attempted.
* @param tableName the name of the table
* @param pool the thread pool to use ... | 3.68 |
hadoop_RollingFileSystemSink_checkIfPropertyExists | /**
* Throw a {@link MetricsException} if the given property is not set.
*
* @param key the key to validate
*/
private void checkIfPropertyExists(String key) {
if (!properties.containsKey(key)) {
throw new MetricsException("Metrics2 configuration is missing " + key
+ " property");
}
} | 3.68 |
pulsar_HeapHistogramUtil_callDiagnosticCommand | /**
* Calls a diagnostic commands.
* The available operations are similar to what the jcmd commandline tool has,
* however the naming of the operations are different. The "help" operation can be used
* to find out the available operations. For example, the jcmd command "Thread.print" maps
* to "threadPrint" operat... | 3.68 |
hbase_AsyncRegionLocationCache_cleanProblematicOverlappedRegions | /**
* When caching a location, the region may have been the result of a merge. Check to see if the
* region's boundaries overlap any other cached locations in a problematic way. Those would have
* been merge parents which no longer exist. We need to proactively clear them out to avoid a case
* where a merged region... | 3.68 |
flink_DefaultConfigurableOptionsFactory_configure | /**
* Creates a {@link DefaultConfigurableOptionsFactory} instance from a {@link ReadableConfig}.
*
* <p>If no options within {@link RocksDBConfigurableOptions} has ever been configured, the
* created RocksDBOptionsFactory would not override anything defined in {@link
* PredefinedOptions}.
*
* @param configurati... | 3.68 |
morf_FilteredDataSetProducerAdapter_tableNames | /**
* If multiple calls to this are expected, consider caching the list of table names.
* @see org.alfasoftware.morf.dataset.SchemaAdapter#tableNames()
*/
@Override
public Collection<String> tableNames() {
return Collections2.filter(delegate.tableNames(), includingPredicate);
} | 3.68 |
morf_ExistingViewStateLoader_getViewsToDeploy | /**
* @return the views which need to be deployed.
*/
public Collection<View> getViewsToDeploy() {
return viewsToDeploy;
} | 3.68 |
hbase_MetaTableAccessor_getAllRegions | /**
* Lists all of the regions currently in META.
* @param connection to connect with
* @param excludeOfflinedSplitParents False if we are to include offlined/splitparents regions,
* true and we'll leave out offlined regions from returned list
* @return List of a... | 3.68 |
hadoop_SkylineStoreValidator_validate | /**
* Check if pipelineId is <em>null</em> or resourceOverTime is <em>null</em>.
*
* @param pipelineId the id of the recurring pipeline.
* @param resourceOverTime predicted {@code Resource} allocation to be added.
* @throws SkylineStoreException if input parameters are invalid.
*/
public final void validate... | 3.68 |
querydsl_GeometryExpressions_ymax | /**
* Returns Y maxima of a bounding box 2d or 3d or a geometry.
*
* @param expr geometry
* @return y maxima
*/
public static NumberExpression<Double> ymax(GeometryExpression<?> expr) {
return Expressions.numberOperation(Double.class, SpatialOps.YMAX, expr);
} | 3.68 |
flink_BlobServerConnection_writeErrorToStream | /**
* Writes to the output stream the error return code, and the given exception in serialized
* form.
*
* @param out Thr output stream to write to.
* @param t The exception to send.
* @throws IOException Thrown, if the output stream could not be written to.
*/
private static void writeErrorToStream(OutputStream... | 3.68 |
zxing_CalendarParsedResult_getEndTimestamp | /**
* @return event end {@link Date}, or -1 if event has no duration
* @see #getStartTimestamp()
*/
public long getEndTimestamp() {
return end;
} | 3.68 |
hbase_ImmutableSegment_getSnapshotScanners | /**
* We create a new {@link SnapshotSegmentScanner} to increase the reference count of
* {@link MemStoreLABImpl} used by this segment.
*/
List<KeyValueScanner> getSnapshotScanners() {
return Collections.singletonList(new SnapshotSegmentScanner(this));
} | 3.68 |
framework_BasicWeekClickHandler_setDates | /**
* Set the start and end dates for the event.
*
* @param event
* The event that the start and end dates should be set
* @param start
* The start date
* @param end
* The end date
*/
protected void setDates(WeekClick event, Date start, Date end) {
event.getComponent().setS... | 3.68 |
framework_TreeGrid_addExpandListener | /**
* Adds an ExpandListener to this TreeGrid.
*
* @see ExpandEvent
*
* @param listener
* the listener to add
* @return a registration for the listener
*/
public Registration addExpandListener(ExpandListener<T> listener) {
return addListener(ExpandEvent.class, listener,
ExpandListener... | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.