name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
flink_FlinkContainersSettings_isZookeeperHA | /** Is zookeeper HA boolean. */
public Boolean isZookeeperHA() {
return zookeeperHA;
} | 3.68 |
framework_Profiler_reset | /**
* Resets the collected profiler data. Calls to this method will be removed
* by the compiler unless profiling is enabled.
*/
public static void reset() {
if (isEnabled()) {
/*
* Old implementations might call reset for initialization, so
* ensure it is initialized here as well. Init... | 3.68 |
hbase_Segment_getScanner | /**
* Creates the scanner for the given read point
* @return a scanner for the given read point
*/
protected KeyValueScanner getScanner(long readPoint) {
return new SegmentScanner(this, readPoint);
} | 3.68 |
graphhopper_OSMReaderConfig_setElevationMaxWayPointDistance | /**
* Sets the max elevation discrepancy between way points and the simplified polyline in meters
*/
public OSMReaderConfig setElevationMaxWayPointDistance(double elevationMaxWayPointDistance) {
this.elevationMaxWayPointDistance = elevationMaxWayPointDistance;
return this;
} | 3.68 |
hbase_SplitWALManager_archive | /**
* Archive processed WAL
*/
public void archive(String wal) throws IOException {
WALSplitUtil.moveWAL(this.fs, new Path(wal), this.walArchiveDir);
} | 3.68 |
dubbo_MockClusterInvoker_selectMockInvoker | /**
* Return MockInvoker
* Contract:
* directory.list() will return a list of normal invokers if Constants.INVOCATION_NEED_MOCK is absent or not true in invocation, otherwise, a list of mock invokers will return.
* if directory.list() returns more than one mock invoker, only one of them will be used.
*
* @param i... | 3.68 |
framework_HasValue_isEmpty | /**
* Returns whether this {@code HasValue} is considered to be empty.
* <p>
* By default this is an equality check between current value and empty
* value.
*
* @return {@code true} if considered empty; {@code false} if not
*/
public default boolean isEmpty() {
return Objects.equals(getValue(), getEmptyValue... | 3.68 |
hbase_LruBlockCache_asReferencedHeapBlock | /**
* The block cached in LRUBlockCache will always be an heap block: on the one side, the heap
* access will be more faster then off-heap, the small index block or meta block cached in
* CombinedBlockCache will benefit a lot. on other side, the LRUBlockCache size is always
* calculated based on the total heap size... | 3.68 |
hudi_HoodieTableConfig_clearMetadataPartitions | /**
* Clear {@link HoodieTableConfig#TABLE_METADATA_PARTITIONS}
* {@link HoodieTableConfig#TABLE_METADATA_PARTITIONS_INFLIGHT}.
*/
public void clearMetadataPartitions(HoodieTableMetaClient metaClient) {
setMetadataPartitionState(metaClient, MetadataPartitionType.FILES, false);
} | 3.68 |
hadoop_HttpReferrerAuditHeader_builder | /**
* Get a builder.
* @return a new builder.
*/
public static Builder builder() {
return new Builder();
} | 3.68 |
zxing_MinimalEncoder_getEndMode | /** Returns Mode.ASCII in case that:
* - Mode is EDIFACT and characterLength is less than 4 or the remaining characters can be encoded in at most 2
* ASCII bytes.
* - Mode is C40, TEXT or X12 and the remaining characters can be encoded in at most 1 ASCII byte.
* Returns mode in all other cases.
* */
Mode get... | 3.68 |
flink_DataSet_combineGroup | /**
* Applies a GroupCombineFunction on a non-grouped {@link DataSet}. A CombineFunction is similar
* to a GroupReduceFunction but does not perform a full data exchange. Instead, the
* CombineFunction calls the combine method once per partition for combining a group of results.
* This operator is suitable for combi... | 3.68 |
morf_TableOutputter_unsupportedOperationExceptionMessageSuffix | /**
* Creates an {@link UnsupportedOperationException} message suffix for a given
* {@link Column} and {@link WritableSheet}.
*
* @param column the {@link Column}
* @param writableSheet the {@link WritableSheet}
* @return the {@link UnsupportedOperationException} message suffix
*/
private String unsupportedOpera... | 3.68 |
hudi_BaseHoodieTableServiceClient_preCommit | /**
* Any pre-commit actions like conflict resolution goes here.
*
* @param metadata commit metadata for which pre commit is being invoked.
*/
protected void preCommit(HoodieCommitMetadata metadata) {
// Create a Hoodie table after startTxn which encapsulated the commits and files visible.
// Important to creat... | 3.68 |
pulsar_AwsCredentialProviderPlugin_getV2CredentialsProvider | /**
* Returns a V2 credential provider for use with the v2 SDK.
*
* Defaults to an implementation that pulls credentials from a v1 provider
*/
default software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getV2CredentialsProvider() {
// make a small wrapper to forward requests to v1, this allows
//... | 3.68 |
framework_VAbstractSplitPanel_setPositionReversed | /**
* For internal use only. May be removed or replaced in the future.
*
* @param reversed
* {@code true} if split position should be measured from the
* second region, {@code false} (default) if from the the first
* region
*/
public void setPositionReversed(boolean reversed) {
... | 3.68 |
hadoop_WordMedian_readAndFindMedian | /**
* This is a standard program to read and find a median value based on a file
* of word counts such as: 1 456, 2 132, 3 56... Where the first values are
* the word lengths and the following values are the number of times that
* words of that length appear.
*
* @param path
* The path to read the HDFS... | 3.68 |
streampipes_BoilerpipeHTMLContentHandler_startElement | // @Override
public void startElement(String uri, String localName, String qName, Attributes atts)
throws SAXException {
labelStacks.add(null);
TagAction ta = tagActions.get(localName);
if (ta != null) {
if (ta.changesTagLevel()) {
tagLevel++;
}
flush = ta.start(this, localName, qName, atts... | 3.68 |
hudi_HoodieRepairTool_checkBackupPathForRepair | /**
* Verifies the backup path for repair.
* If there is no backup path configured, creates a new one in temp folder.
* If the backup path already has files, throws an error to the user.
* If the backup path is within the table base path, throws an error too.
*
* @return {@code 0} if successful; {@code -1} otherw... | 3.68 |
querydsl_MetaDataExporter_setColumnAnnotations | /**
* Set whether column annotations should be created
*
* @param columnAnnotations
*/
public void setColumnAnnotations(boolean columnAnnotations) {
this.columnAnnotations = columnAnnotations;
} | 3.68 |
streampipes_InfluxStore_onEvent | /**
* Saves an event to the connected InfluxDB database
*
* @param event The event which should be saved
* @throws SpRuntimeException If the column name (key-value of the event map) is not allowed
*/
public void onEvent(Event event) throws SpRuntimeException {
var missingFields = new ArrayList<String>();
var n... | 3.68 |
pulsar_GenericRecord_getNativeObject | /**
* Return the internal native representation of the Record,
* like a AVRO GenericRecord.
*
* @return the internal representation of the record
* @throws UnsupportedOperationException if the operation is not supported
*/
@Override
default Object getNativeObject() {
throw new UnsupportedOperationException();... | 3.68 |
flink_FileRegionBuffer_getNioBufferReadable | /**
* This method is only called by tests and by event-deserialization, like checkpoint barriers.
* Because such events are not used for bounded intermediate results, this method currently
* executes only in tests.
*/
@Override
public ByteBuffer getNioBufferReadable() {
try {
final ByteBuffer buffer = B... | 3.68 |
hbase_Connection_getBufferedMutator | /**
* <p>
* Retrieve a {@link BufferedMutator} for performing client-side buffering of writes. The
* {@link BufferedMutator} returned by this method is thread-safe. This BufferedMutator will use
* the Connection's ExecutorService. This object can be used for long lived operations.
* </p>
* <p>
* The caller is re... | 3.68 |
flink_SegmentsUtil_inFirstSegment | /** Is it just in first MemorySegment, we use quick way to do something. */
private static boolean inFirstSegment(MemorySegment[] segments, int offset, int numBytes) {
return numBytes + offset <= segments[0].size();
} | 3.68 |
hudi_HoodieTableMetadataUtil_processRollbackMetadata | /**
* Extracts information about the deleted and append files from the {@code HoodieRollbackMetadata}.
* <p>
* During a rollback files may be deleted (COW, MOR) or rollback blocks be appended (MOR only) to files. This
* function will extract this change file for each partition.
*
* @param rollbackMetadata ... | 3.68 |
pulsar_BacklogQuotaManager_disconnectProducers | /**
* Disconnect producers on given topic.
*
* @param persistentTopic
* The topic on which all producers should be disconnected
*/
private void disconnectProducers(PersistentTopic persistentTopic) {
List<CompletableFuture<Void>> futures = new ArrayList<>();
Map<String, Producer> producers = pers... | 3.68 |
hbase_Get_addFamily | /**
* Get all columns from the specified family.
* <p>
* Overrides previous calls to addColumn for this family.
* @param family family name
* @return the Get object
*/
public Get addFamily(byte[] family) {
familyMap.remove(family);
familyMap.put(family, null);
return this;
} | 3.68 |
hbase_AbstractFSWALProvider_extractFileNumFromWAL | /**
* It returns the file create timestamp (the 'FileNum') from the file name. For name format see
* {@link #validateWALFilename(String)} public until remaining tests move to o.a.h.h.wal
* @param wal must not be null
* @return the file number that is part of the WAL file name
*/
public static long extractFileNumFr... | 3.68 |
hudi_TimelineUtils_getExtraMetadataFromLatestIncludeClustering | /**
* Get extra metadata for specified key from latest commit/deltacommit/replacecommit instant including internal commits
* such as clustering.
*/
public static Option<String> getExtraMetadataFromLatestIncludeClustering(HoodieTableMetaClient metaClient, String extraMetadataKey) {
return metaClient.getCommitsTimel... | 3.68 |
hbase_HRegion_getStore | /**
* Return HStore instance. Does not do any copy: as the number of store is limited, we iterate on
* the list.
*/
private HStore getStore(Cell cell) {
return stores.entrySet().stream().filter(e -> CellUtil.matchingFamily(cell, e.getKey()))
.map(e -> e.getValue()).findFirst().orElse(null);
} | 3.68 |
flink_ValueDataTypeConverter_extractDataType | /**
* Returns the clearly identifiable data type if possible. For example, {@code 12L} can be
* expressed as {@code DataTypes.BIGINT().notNull()}. However, for example, {@code null} could
* be any type and is not supported.
*
* <p>All types of the {@link LogicalTypeFamily#PREDEFINED} family, symbols, and arrays ar... | 3.68 |
querydsl_ClassPathUtils_safeClassForName | /**
* Get the class for the given className via the given classLoader
*
* @param classLoader classloader to be used
* @param className fully qualified class name
* @return {@code Class} instance matching the class name or null if not found
*/
public static Class<?> safeClassForName(ClassLoader classLoader, String... | 3.68 |
morf_SchemaChangeSequence_removeColumns | /**
* @see org.alfasoftware.morf.upgrade.SchemaEditor#removeColumns(java.lang.String, org.alfasoftware.morf.metadata.Column[])
*/
@Override
public void removeColumns(String tableName, Column... definitions) {
// simple redirect for now, but a future optimisation could re-implement this to be more efficient
for (C... | 3.68 |
hadoop_OBSFileSystem_mkdirs | /**
* Make the given path and all non-existent parents into directories. Has the
* semantics of Unix {@code 'mkdir -p'}. Existence of the directory hierarchy
* is not an error.
*
* @param path path to create
* @param permission to apply to f
* @return true if a directory was created
* @throws FileAlreadyE... | 3.68 |
rocketmq-connect_DorisSinkTask_start | /**
* Start the component
*
* @param keyValue
*/
@Override
public void start(KeyValue keyValue) {
originalConfig = keyValue;
config = new DorisSinkConfig(keyValue);
remainingRetries = config.getMaxRetries();
log.info("Initializing doris writer");
this.updater = new Updater(config);
} | 3.68 |
flink_NFA_open | /**
* Initialization method for the NFA. It is called before any element is passed and thus
* suitable for one time setup work.
*
* @param cepRuntimeContext runtime context of the enclosing operator
* @param conf The configuration containing the parameters attached to the contract.
*/
public void open(RuntimeCont... | 3.68 |
hadoop_ManifestPrinter_field | /**
* Print a field, if non-null.
* @param name field name.
* @param value value.
*/
private void field(String name, Object value) {
if (value != null) {
println("%s: %s", name, value);
}
} | 3.68 |
hadoop_NativeAzureFileSystemHelper_isBlobAlreadyExistsConflict | /*
* Determines if a conditional request failed because the blob already
* exists.
*
* @param e - the storage exception thrown by the failed operation.
*
* @return true if a conditional request failed because the blob already
* exists; otherwise, returns false.
*/
static boolean isBlobAlreadyExistsConflict(Stor... | 3.68 |
hbase_IOEngine_usesSharedMemory | /**
* IOEngine uses shared memory means, when reading Cacheable from it, those refers to the same
* memory area as used by the Engine for caching it.
* @return true when IOEngine using shared memory.
*/
default boolean usesSharedMemory() {
return false;
} | 3.68 |
flink_DynamicTableFactory_getEnrichmentOptions | /**
* Returns a map of options that can enrich the options of the original {@link
* #getCatalogTable()} during a plan restore.
*
* <p>If and only if {@code table.plan.restore.catalog-objects} is set to {@code ALL}, this
* method may return a non-empty {@link Map} of options retrieved from the {@link Catalog}.
*
... | 3.68 |
framework_SessionDestroyEvent_getService | /**
* Gets the Vaadin service from which the even originates.
*
* @return the Vaadin service
*/
public VaadinService getService() {
return getSource();
} | 3.68 |
framework_VFlash_setSource | /**
* Set the resource representing the Flash content that should be displayed.
*
* @param source
* the resource URL
*/
public void setSource(String source) {
if (this.source != source) {
this.source = source;
needsRebuild = true;
}
} | 3.68 |
hbase_Result_getTotalSizeOfCells | /**
* Get total size of raw cells
* @return Total size.
*/
public static long getTotalSizeOfCells(Result result) {
long size = 0;
if (result.isEmpty()) {
return size;
}
for (Cell c : result.rawCells()) {
size += c.heapSize();
}
return size;
} | 3.68 |
flink_RemoteInputChannel_getUnannouncedCredit | /**
* Gets the currently unannounced credit.
*
* @return Credit which was not announced to the sender yet.
*/
public int getUnannouncedCredit() {
return unannouncedCredit.get();
} | 3.68 |
hbase_QualifierFilter_toByteArray | /** Returns The filter serialized using pb */
@Override
public byte[] toByteArray() {
FilterProtos.QualifierFilter.Builder builder = FilterProtos.QualifierFilter.newBuilder();
builder.setCompareFilter(super.convert());
return builder.build().toByteArray();
} | 3.68 |
flink_DualInputOperator_getSecondInput | /**
* Returns the second input, or null, if none is set.
*
* @return The contract's second input.
*/
public Operator<IN2> getSecondInput() {
return this.input2;
} | 3.68 |
hadoop_XAttrStorage_updateINodeXAttrs | /**
* Update xattrs of inode.
* <p>
* Must be called while holding the FSDirectory write lock.
*
* @param inode INode to update
* @param xAttrs to update xAttrs.
* @param snapshotId id of the latest snapshot of the inode
*/
public static void updateINodeXAttrs(INode inode,
List<XAttr> xAttrs, int snapshot... | 3.68 |
hadoop_FederationStateStoreUtils_logAndThrowStoreException | /**
* Throws an <code>FederationStateStoreException</code> due to an error in
* <code>FederationStateStore</code>.
*
* @param t the throwable raised in the called class.
* @param log the logger interface.
* @param errMsgFormat the error message format string.
* @param args referenced by the format specifiers in ... | 3.68 |
flink_ChannelWriterOutputView_getBytesMemoryUsed | /**
* Gets the number of bytes used by this output view, including written bytes and header bytes.
*
* @return The number of bytes that have been written to this output view.
*/
public long getBytesMemoryUsed() {
return (this.blockCount - 1) * getSegmentSize() + getCurrentPositionInSegment();
} | 3.68 |
flink_BinaryStringDataUtil_toDecimal | /**
* Parses a {@link BinaryStringData} to {@link DecimalData}.
*
* @return DecimalData value if the parsing was successful.
*/
public static DecimalData toDecimal(BinaryStringData str, int precision, int scale)
throws NumberFormatException {
str.ensureMaterialized();
DecimalData data;
if (Dec... | 3.68 |
hadoop_JobBase_addLongValue | /**
* Increment the given counter by the given incremental value If the counter
* does not exist, one is created with value 0.
*
* @param name
* the counter name
* @param inc
* the incremental value
* @return the updated value.
*/
protected Long addLongValue(Object name, long inc) {
Long v... | 3.68 |
pulsar_DefaultMetadataResolver_resolve | /**
* Resolves the authorization metadata.
* @return metadata
* @throws IOException if the metadata could not be resolved.
*/
public Metadata resolve() throws IOException {
try {
URLConnection c = this.metadataUrl.openConnection();
if (connectTimeout != null) {
c.setConnectTimeout((i... | 3.68 |
flink_LeaderInformationRegister_clear | /**
* Creates a new {@code LeaderInformationRegister} that matches the passed {@code
* LeaderInformationRegister} except for the entry of {@code componentId} which is removed if it
* existed.
*/
public static LeaderInformationRegister clear(
@Nullable LeaderInformationRegister leaderInformationRegister, Str... | 3.68 |
framework_GridLayoutExtraSpacing_getTestDescription | /*
* (non-Javadoc)
*
* @see com.vaadin.tests.components.AbstractTestUI#getTestDescription()
*/
@Override
protected String getTestDescription() {
// TODO Auto-generated method stub
return null;
} | 3.68 |
morf_SqlScriptExecutorProvider_defaultVisitor | /**
* Defaults the {@code visitor} to be a NullVisitor if the visitor is null.
*
* @param visitor the visitor to potentially default.
* @return a not-null visitor.
*/
protected SqlScriptVisitor defaultVisitor(SqlScriptVisitor visitor) {
if (visitor != null) {
return visitor;
}
return new NullVisitor();
} | 3.68 |
framework_MenuItem_getCommand | /**
* Gets the command associated with this item.
*
* @return this item's command, or <code>null</code> if none exists
*/
public Command getCommand() {
return command;
} | 3.68 |
hadoop_WordList_getSize | /**
* Returns the size of the list.
*/
public int getSize() {
return list.size();
} | 3.68 |
hudi_InternalFilter_add | /**
* Adds an array of keys to <i>this</i> filter.
*
* @param keys The array of keys.
*/
public void add(Key[] keys) {
if (keys == null) {
throw new IllegalArgumentException("Key[] may not be null");
}
for (Key key : keys) {
add(key);
}
} | 3.68 |
flink_ParameterTool_createPropertiesFile | /**
* Create a properties file with all the known parameters (call after the last get*() call). Set
* the default value, if overwrite is true.
*
* @param pathToFile Location of the default properties file.
* @param overwrite Boolean flag indicating whether or not to overwrite the file
* @throws IOException If ove... | 3.68 |
hbase_BucketCache_evictBlock | /**
* Try to evict the block from {@link BlockCache} by force. We'll call this in few cases:<br>
* 1. Close an HFile, and clear all cached blocks. <br>
* 2. Call {@link Admin#clearBlockCache(TableName)} to clear all blocks for a given table.<br>
* <p>
* Firstly, we'll try to remove the block from RAMCache,and then... | 3.68 |
hmily_XaLoadBalancerAutoConfiguration_xaTransactionEventListener | /**
* Register {@link SpringCloudXaLoadBalancer.TransactionEventListener} Bean.
*
* @return {@link SpringCloudXaLoadBalancer.TransactionEventListener} Bean
*/
@Bean
public SpringCloudXaLoadBalancer.TransactionEventListener xaTransactionEventListener() {
return new SpringCloudXaLoadBalancer.TransactionEventListe... | 3.68 |
streampipes_TextBlock_hasLabel | /**
* Checks whether this TextBlock has the given label.
*
* @param label The label
* @return <code>true</code> if this block is marked by the given label.
*/
public boolean hasLabel(final String label) {
return labels != null && labels.contains(label);
} | 3.68 |
querydsl_AbstractSQLQuery_getResults | /**
* Get the results as a JDBC ResultSet
*
* @return results as ResultSet
*/
public ResultSet getResults() {
final SQLListenerContextImpl context = startContext(connection(), queryMixin.getMetadata());
String queryString = null;
List<Object> constants = Collections.emptyList();
try {
liste... | 3.68 |
hadoop_BlockStorageMovementTracker_stopTracking | /**
* Sets running flag to false.
*/
public void stopTracking() {
running = false;
} | 3.68 |
hbase_MasterProcedureScheduler_waitGlobalExclusiveLock | // ============================================================================
// Global Locking Helpers
// ============================================================================
/**
* Try to acquire the share lock on global.
* @see #wakeGlobalExclusiveLock(Procedure, String)
* @param procedure the procedure ... | 3.68 |
framework_VRichTextArea_addBlurHandler | /**
* Adds a blur handler to the component.
*
* @param blurHandler
* the blur handler to add
*/
public void addBlurHandler(BlurHandler blurHandler) {
blurHandlers.put(blurHandler, rta.addBlurHandler(blurHandler));
} | 3.68 |
hudi_ClusteringUtil_rollbackClustering | /**
* Force rolls back the inflight clustering instant, for handling failure case.
*
* @param table The hoodie table
* @param writeClient The write client
* @param instantTime The instant time
*/
public static void rollbackClustering(HoodieFlinkTable<?> table, HoodieFlinkWriteClient<?> writeClient, String instant... | 3.68 |
dubbo_ReferenceAnnotationBeanPostProcessor_processReferenceAnnotatedBeanDefinition | /**
* process @DubboReference at java-config @bean method
* <pre class="code">
* @Configuration
* public class ConsumerConfig {
*
* @Bean
* @DubboReference(group="demo", version="1.2.3")
* public ReferenceBean<DemoService> demoService() {
* return new ReferenceBean(... | 3.68 |
flink_CheckpointConfig_setCheckpointingMode | /**
* Sets the checkpointing mode (exactly-once vs. at-least-once).
*
* @param checkpointingMode The checkpointing mode.
*/
public void setCheckpointingMode(CheckpointingMode checkpointingMode) {
configuration.set(ExecutionCheckpointingOptions.CHECKPOINTING_MODE, checkpointingMode);
} | 3.68 |
flink_JoinOperator_projectTuple16 | /**
* Projects a pair of joined elements to a {@link Tuple} with the previously selected
* fields. Requires the classes of the fields of the resulting tuples.
*
* @return The projected data set.
* @see Tuple
* @see DataSet
*/
public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
P... | 3.68 |
framework_StaticSection_setHtml | /**
* Sets the HTML content displayed in this cell.
*
* @param html
* the html to set, not null
*/
public void setHtml(String html) {
Objects.requireNonNull(html, "html cannot be null");
removeComponentIfPresent();
cellState.html = html;
cellState.type = GridStaticCellType.HTML;
row.... | 3.68 |
flink_SpillChannelManager_unregisterChannelToBeRemovedAtShutdown | /**
* Removes a channel from the list of channels that are to be removed at shutdown.
*
* @param channel The channel id.
*/
synchronized void unregisterChannelToBeRemovedAtShutdown(FileIOChannel.ID channel) {
channelsToDeleteAtShutdown.remove(channel);
} | 3.68 |
flink_OptimizerNode_getBroadcastConnectionNames | /** Return the list of names associated with broadcast inputs for this node. */
public List<String> getBroadcastConnectionNames() {
return this.broadcastConnectionNames;
} | 3.68 |
morf_InsertStatement_toString | /**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder result = new StringBuilder("SQL INSERT INTO [" + table + "]");
if (!hints.isEmpty()) result.append(" HINTS ").append(hints);
if (!fields.isEmpty()) result.append(" FIELDS ").append(fields);
if (!values.isEmpty()) resu... | 3.68 |
hbase_ThrottleSettings_getProto | /**
* Returns a copy of the internal state of <code>this</code>
*/
QuotaProtos.ThrottleRequest getProto() {
return proto.toBuilder().build();
} | 3.68 |
morf_H2_formatJdbcUrl | /**
* @see org.alfasoftware.morf.jdbc.DatabaseType#formatJdbcUrl(JdbcUrlElements)
*/
@Override
public String formatJdbcUrl(JdbcUrlElements jdbcUrlElements) {
// http://www.h2database.com/html/features.html#database_url
StringBuilder builder = new StringBuilder()
.append("jdbc:h2:");
if (StringUtils.isNotB... | 3.68 |
hadoop_FederationCache_buildSubClusterPolicyConfigurationResponse | /**
* Build SubClusterPolicyConfiguration Response.
*
* @return SubClusterPolicyConfiguration Response.
* @throws YarnException exceptions from yarn servers.
*/
private CacheResponse<SubClusterPolicyConfiguration> buildSubClusterPolicyConfigurationResponse()
throws YarnException {
GetSubClusterPoliciesConfig... | 3.68 |
flink_TaskStatsRequestCoordinator_collectTaskStats | /**
* Collects result from one of the tasks.
*
* @param executionId ID of the Task.
* @param taskStatsResult Result of the stats sample from the Task.
*/
protected void collectTaskStats(
ImmutableSet<ExecutionAttemptID> executionId, T taskStatsResult) {
checkDiscarded();
if (pendingTasks.remove(ex... | 3.68 |
hbase_HBaseSaslRpcServer_unwrap | /**
* Unwrap InvalidToken exception, otherwise return the one passed in.
*/
public static Throwable unwrap(Throwable e) {
Throwable cause = e;
while (cause != null) {
if (cause instanceof InvalidToken) {
return cause;
}
cause = cause.getCause();
}
return e;
} | 3.68 |
framework_DefaultFieldGroupFieldFactory_populateWithEnumData | /**
* Populates the given select with all the enums in the given {@link Enum}
* class. Uses {@link Enum}.toString() for caption.
*
* @param select
* The select to populate
* @param enumClass
* The Enum class to use
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
protected void populateWi... | 3.68 |
framework_UIConnector_getSubWindows | /**
* Return a list of current sub-windows. This method is meant for testing
* purposes only.
*
* @return a list of sub-windows
*/
public List<WindowConnector> getSubWindows() {
List<WindowConnector> windows = new ArrayList<>();
for (ComponentConnector child : getChildComponents()) {
if (child inst... | 3.68 |
flink_AbstractPythonFunctionOperator_advanceWatermark | /**
* Advances the watermark of all managed timer services, potentially firing event time timers.
* It also ensures that the fired timers are processed in the Python user-defined functions.
*/
private void advanceWatermark(Watermark watermark) throws Exception {
if (getTimeServiceManager().isPresent()) {
... | 3.68 |
flink_MultipleParameterTool_toMultiMap | /**
* Return MultiMap of all the parameters processed by {@link MultipleParameterTool}.
*
* @return MultiMap of the {@link MultipleParameterTool}. Key is String and Value is a
* Collection of String.
*/
public Map<String, Collection<String>> toMultiMap() {
return data;
} | 3.68 |
hbase_ProcedureExecutor_isProcedureOwner | /**
* Check if the user is this procedure's owner
* @param procId the target procedure
* @param user the user
* @return true if the user is the owner of the procedure, false otherwise or the owner is
* unknown.
*/
public boolean isProcedureOwner(long procId, User user) {
if (user == null) {
return... | 3.68 |
pulsar_Authentication_getAuthData | /**
* Get/Create an authentication data provider which provides the data that this client will be sent to the broker.
* Some authentication method need to auth between each client channel. So it need the broker, who it will talk to.
*
* @param brokerHostName
* target broker host name
*
* @return The aut... | 3.68 |
hbase_CatalogFamilyFormat_getServerColumn | /**
* Returns the column qualifier for server column for replicaId
* @param replicaId the replicaId of the region
* @return a byte[] for server column qualifier
*/
public static byte[] getServerColumn(int replicaId) {
return replicaId == 0
? HConstants.SERVER_QUALIFIER
: Bytes.toBytes(HConstants.SERVER_QU... | 3.68 |
flink_Catalog_listProcedures | /**
* List the names of all procedures in the given database. An empty list is returned if no
* procedure.
*
* @param dbName name of the database.
* @return a list of the names of the procedures in this database
* @throws DatabaseNotExistException if the database does not exist
* @throws CatalogException in case... | 3.68 |
morf_ResultSetComparer_compareColumnValue | /**
* Given data values from right and left data sets, compare and record mismatch.
*
* @return An optional mismatch.
*/
@SuppressWarnings({ "rawtypes" })
private Optional<ResultSetMismatch> compareColumnValue(Comparable leftValue, Comparable rightValue, String[] keys, int columnIndex, int columnType, MismatchType ... | 3.68 |
hibernate-validator_DefaultValidationOrder_assertDefaultGroupSequenceIsExpandable | /**
* Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to
* be validated.
*
* @param defaultGroupSequence the default group sequence of the bean currently validated
*
* @throws jakarta.validation.GroupDefinitionException in case {@code defaultGroupSequen... | 3.68 |
flink_TableFunctionCollector_outputResult | /** Output final result of this UDTF to downstreams. */
@SuppressWarnings("unchecked")
public void outputResult(Object result) {
this.collected = true;
this.collector.collect(result);
} | 3.68 |
hmily_HmilyRepositoryFacade_updateHmilyTransactionStatus | /**
* Update hmily transaction status int.
*
* @param transId the trans id
* @param status the status
*/
public void updateHmilyTransactionStatus(final Long transId, final Integer status) {
checkRows(hmilyRepository.updateHmilyTransactionStatus(transId, status));
} | 3.68 |
dubbo_ServiceInstancesChangedEvent_getServiceName | /**
* @return The name of service that was changed
*/
public String getServiceName() {
return serviceName;
} | 3.68 |
hbase_ConnectionOverAsyncConnection_getBatchPool | // only used for executing coprocessor calls, as users may reference the methods in the
// BlockingInterface of the protobuf stub so we have to execute the call in a separated thread...
// Will be removed in 4.0.0 along with the deprecated coprocessor methods in Table and Admin
// interface.
private ExecutorService get... | 3.68 |
flink_BlobCacheSizeTracker_track | /** Register the BLOB to the tracker. */
public void track(JobID jobId, BlobKey blobKey, long size) {
checkNotNull(jobId);
checkNotNull(blobKey);
checkArgument(size >= 0);
synchronized (lock) {
if (caches.putIfAbsent(Tuple2.of(jobId, blobKey), size) == null) {
blobKeyByJob.computeIf... | 3.68 |
rocketmq-connect_IdentifierRules_trailingQuoteString | /**
* Get the string used as a trailing quote.
*
* @return the trailing quote string; never null
*/
public String trailingQuoteString() {
return trailingQuoteString;
} | 3.68 |
hadoop_ConnectionContext_isIdle | /**
* Check if the connection is idle. It checks if the connection is not used
* by another thread.
* @return True if the connection is not used by another thread.
*/
public synchronized boolean isIdle() {
return !isActive() && !isClosed();
} | 3.68 |
flink_OverWindowPartitionedOrdered_as | /**
* Assigns an alias for this window that the following {@code select()} clause can refer to.
*
* @param alias alias for this over window
* @return the fully defined over window
*/
public OverWindow as(Expression alias) {
return new OverWindow(
alias,
partitionBy,
orderBy,... | 3.68 |
framework_VOverlay_getOverlayContainer | /**
* Gets the 'overlay container' element pertaining to the given
* {@link ApplicationConnection}. Each overlay should be created in a
* overlay container element, so that the correct theme and styles can be
* applied.
*
* @param ac
* A reference to {@link ApplicationConnection}
* @return The overla... | 3.68 |
hbase_HRegion_getSpecificStores | /**
* get stores which matches the specified families
* @return the stores need to be flushed.
*/
private Collection<HStore> getSpecificStores(List<byte[]> families) {
Collection<HStore> specificStoresToFlush = new ArrayList<>();
for (byte[] family : families) {
specificStoresToFlush.add(stores.get(family));... | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.