name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
pulsar_AutoConsumeSchema_fetchSchemaIfNeeded | /**
* It may happen that the schema is not loaded but we need it, for instance in order to call getSchemaInfo()
* We cannot call this method in getSchemaInfo, because getSchemaInfo is called in many
* places and we will introduce lots of deadlocks.
*/
public void fetchSchemaIfNeeded(SchemaVersion schemaVersion) thr... | 3.68 |
hadoop_OSSListResult_isV1 | /**
* Is this a v1 API result or v2?
* @return true if v1, false if v2
*/
public boolean isV1() {
return v1Result != null;
} | 3.68 |
hadoop_IOStatisticsBinding_fromStorageStatistics | /**
* Create IOStatistics from a storage statistics instance.
*
* This will be updated as the storage statistics change.
* @param storageStatistics source data.
* @return an IO statistics source.
*/
public static IOStatistics fromStorageStatistics(
StorageStatistics storageStatistics) {
DynamicIOStatistics... | 3.68 |
dubbo_TTable_addRow | /**
* Add a row
*/
public TTable addRow(Object... columnDataArray) {
if (null != columnDataArray) {
for (int index = 0; index < columnDefineArray.length; index++) {
final ColumnDefine columnDefine = columnDefineArray[index];
if (index < columnDataArray.length && null != columnData... | 3.68 |
hbase_ProcedureMember_receivedReachedGlobalBarrier | /**
* Notification that procedure coordinator has reached the global barrier
* @param procName name of the subprocedure that should start running the in-barrier phase
*/
public void receivedReachedGlobalBarrier(String procName) {
Subprocedure subproc = subprocs.get(procName);
if (subproc == null) {
LOG.warn(... | 3.68 |
framework_DropTargetExtensionConnector_sendDropEventToServer | /**
* Initiates a server RPC for the drop event.
*
* @param types
* List of data types from {@code DataTransfer.types} object.
* @param data
* Map containing all types and corresponding data from the
* {@code
* DataTransfer} object.
* @param dropEffect
* The... | 3.68 |
pulsar_OwnedBundle_getNamespaceBundle | /**
* Access to the namespace name.
*
* @return NamespaceName
*/
public NamespaceBundle getNamespaceBundle() {
return this.bundle;
} | 3.68 |
hibernate-validator_AnnotationMetaDataProvider_retrieveBeanConfiguration | /**
* @param beanClass The bean class for which to retrieve the meta data
*
* @return Retrieves constraint related meta data from the annotations of the given type.
*/
private <T> BeanConfiguration<T> retrieveBeanConfiguration(Class<T> beanClass) {
Set<ConstrainedElement> constrainedElements = getFieldMetaData( be... | 3.68 |
rocketmq-connect_RocketMqAdminUtil_initDefaultLitePullConsumer | /**
* init default lite pull consumer
*
* @param config
* @param autoCommit
* @return
* @throws MQClientException
*/
public static DefaultLitePullConsumer initDefaultLitePullConsumer(RocketMqConfig config,
boolean autoCommit) throws MQClientExcept... | 3.68 |
framework_AbstractFieldConnector_isRequiredIndicatorVisible | /**
* Checks whether the required indicator should be shown for the field.
*
* Required indicators are hidden if the field or its data source is
* read-only.
*
* @return true if required indicator should be shown
*/
@Override
public boolean isRequiredIndicatorVisible() {
return getState().required && !isRead... | 3.68 |
querydsl_ComparableExpression_gtAny | /**
* Create a {@code this > any right} expression
*
* @param right rhs of the comparison
* @return this > any right
*/
public BooleanExpression gtAny(SubQueryExpression<? extends T> right) {
return gt(ExpressionUtils.any(right));
} | 3.68 |
morf_AbstractConnectionResources_sqlDialect | /**
* @see org.alfasoftware.morf.jdbc.ConnectionResources#sqlDialect()
*/
@Override
public final SqlDialect sqlDialect() {
return findDatabaseType().sqlDialect(getSchemaName());
} | 3.68 |
flink_SingleOutputStreamOperator_setBufferTimeout | /**
* Sets the buffering timeout for data produced by this operation. The timeout defines how long
* data may linger in a partially full buffer before being sent over the network.
*
* <p>Lower timeouts lead to lower tail latencies, but may affect throughput. Timeouts of 1 ms
* still sustain high throughput, even f... | 3.68 |
flink_AbstractStreamOperator_setProcessingTimeService | /**
* @deprecated The {@link ProcessingTimeService} instance should be passed by the operator
* constructor and this method will be removed along with {@link SetupableStreamOperator}.
*/
@Deprecated
public void setProcessingTimeService(ProcessingTimeService processingTimeService) {
this.processingTimeService... | 3.68 |
hadoop_LogParserUtil_setDateFormat | /**
* Set date format for the {@link LogParser}.
*
* @param datePattern the date pattern in the log.
*/
public void setDateFormat(final String datePattern) {
this.format = new SimpleDateFormat(datePattern);
} | 3.68 |
hadoop_RequestFactoryImpl_build | /**
* Build the request factory.
* @return the factory
*/
public RequestFactory build() {
return new RequestFactoryImpl(this);
} | 3.68 |
hudi_StreamerUtil_getIndexConfig | /**
* Returns the index config with given configuration.
*/
public static HoodieIndexConfig getIndexConfig(Configuration conf) {
return HoodieIndexConfig.newBuilder()
.withIndexType(OptionsResolver.getIndexType(conf))
.withBucketNum(String.valueOf(conf.getInteger(FlinkOptions.BUCKET_INDEX_NUM_BUCKETS)))... | 3.68 |
hadoop_OBSInputStream_closeStream | /**
* Close a stream: decide whether to abort or close, based on the length of
* the stream and the current position. If a close() is attempted and fails,
* the operation escalates to an abort.
*
* <p>This does not set the {@link #closed} flag.
*
* @param reason reason for stream being closed; used in messages
... | 3.68 |
hadoop_ExtensionHelper_ifBoundDTExtension | /**
* Invoke an operation on an object if it implements the BoundDTExtension
* interface; returns an optional value.
* @param extension the extension to invoke.
* @param fn function to apply
* @param <V> return type of te function.
* @return an optional value which, if not empty, contains the return value
* of t... | 3.68 |
hadoop_RequestFactoryImpl_prepareRequest | /**
* Preflight preparation of AWS request.
* @param <T> web service request builder
* @return prepared builder.
*/
@Retries.OnceRaw
private <T extends SdkRequest.Builder> T prepareRequest(T t) {
if (requestPreparer != null) {
requestPreparer.prepareRequest(t);
}
return t;
} | 3.68 |
hadoop_BlockMissingException_getOffset | /**
* Returns the offset at which this file is corrupted
* @return offset of corrupted file
*/
public long getOffset() {
return offset;
} | 3.68 |
framework_ServiceInitEvent_addRequestHandler | /**
* Adds a new request handler that will be used by this service. The added
* handler will be run before any of the framework's own request handlers,
* but the ordering relative to other custom handlers is not guaranteed.
*
* @param requestHandler
* the request handler to add, not <code>null</code>
... | 3.68 |
framework_AbsoluteLayout_getPosition | /**
* Gets the position of a component in the layout. Returns null if component
* is not attached to the layout.
* <p>
* Note that you cannot update the position by updating this object. Call
* {@link #setPosition(Component, ComponentPosition)} with the updated
* {@link ComponentPosition} object.
* </p>
*
* @p... | 3.68 |
flink_VertexFlameGraphFactory_createOffCpuFlameGraph | /**
* Converts {@link VertexThreadInfoStats} into a FlameGraph representing blocked (Off-CPU)
* threads.
*
* <p>Includes threads in states Thread.State.[TIMED_WAITING, BLOCKED, WAITING].
*
* @param sample Thread details sample containing stack traces.
* @return FlameGraph data structure.
*/
public static Vertex... | 3.68 |
framework_VAbstractPopupCalendar_getOpenCalenderPanelKey | /**
* Get the key code that opens the calendar panel. By default it is the down
* key but you can override this to be whatever you like
*
* @return the key code that opens the calendar panel
*/
protected int getOpenCalenderPanelKey() {
return KeyCodes.KEY_DOWN;
} | 3.68 |
hbase_CellModel_getValue | /** Returns the value */
public byte[] getValue() {
return value;
} | 3.68 |
flink_SavepointWriter_changeOperatorIdentifier | /**
* Changes the identifier of an operator.
*
* <p>This method is comparatively cheap since it only modifies savepoint metadata without
* reading the entire savepoint data.
*
* <p>Use-cases include, but are not limited to:
*
* <ul>
* <li>assigning a UID to an operator that did not have a UID assigned before... | 3.68 |
hbase_ClientZKSyncer_start | /**
* Starts the syncer
* @throws KeeperException if error occurs when trying to create base nodes on client ZK
*/
public void start() throws KeeperException {
LOG.debug("Starting " + getClass().getSimpleName());
this.watcher.registerListener(this);
// create base znode on remote ZK
ZKUtil.createWithParents(... | 3.68 |
hadoop_ReadBufferWorker_run | /**
* Waits until a buffer becomes available in ReadAheadQueue.
* Once a buffer becomes available, reads the file specified in it and then posts results back to buffer manager.
* Rinse and repeat. Forever.
*/
public void run() {
try {
UNLEASH_WORKERS.await();
} catch (InterruptedException ex) {
Thread.c... | 3.68 |
morf_ExceptSetOperator_toString | /**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "EXCEPT " + selectStatement;
} | 3.68 |
hudi_InternalSchemaUtils_reBuildFilterName | /**
* A helper function to help correct the colName of pushed filters.
*
* @param name origin col name from pushed filters.
* @param fileSchema the real schema of avro/parquet file.
* @param querySchema the query schema which query engine produced.
* @return a corrected name.
*/
public static String reBuildFilte... | 3.68 |
framework_BasicForwardHandler_forward | /*
* (non-Javadoc)
*
* @see com.vaadin.addon.calendar.ui.CalendarComponentEvents.ForwardHandler#
* forward
* (com.vaadin.addon.calendar.ui.CalendarComponentEvents.ForwardEvent)
*/
@Override
public void forward(ForwardEvent event) {
Date start = event.getComponent().getStartDate();
Date end = event.getComp... | 3.68 |
hadoop_FederationStateStoreFacade_createRetryPolicy | /**
* Create a RetryPolicy for {@code FederationStateStoreFacade}. In case of
* failure, it retries for:
* <ul>
* <li>{@code FederationStateStoreRetriableException}</li>
* <li>{@code CacheLoaderException}</li>
* </ul>
*
* @param conf the updated configuration
* @return the RetryPolicy for FederationStateStoreF... | 3.68 |
hudi_HoodieLogFileReader_readVersion | /**
* Read log format version from log file.
*/
private HoodieLogFormat.LogFormatVersion readVersion() throws IOException {
return new HoodieLogFormatVersion(inputStream.readInt());
} | 3.68 |
hibernate-validator_ExecutableMetaData_getCrossParameterConstraints | /**
* Returns the cross-parameter constraints declared for the represented
* method or constructor.
*
* @return the cross-parameter constraints declared for the represented
* method or constructor. May be empty but will never be
* {@code null}.
*/
public Set<MetaConstraint<?>> getCrossParameterConstraints() {
r... | 3.68 |
hudi_BaseHoodieDateTimeParser_getConfigInputDateFormatDelimiter | /**
* Returns the input date format delimiter, comma by default.
*/
public String getConfigInputDateFormatDelimiter() {
return this.configInputDateFormatDelimiter;
} | 3.68 |
hadoop_HHUtil_findFirstValidInput | /**
* Find the valid input from all the inputs.
*
* @param <T> Generics Type T.
* @param inputs input buffers to look for valid input
* @return the first valid input
*/
public static <T> T findFirstValidInput(T[] inputs) {
for (T input : inputs) {
if (input != null) {
return input;
}
}
throw ... | 3.68 |
morf_FieldLiteral_getDataType | /**
* @return the dataType
*/
public DataType getDataType() {
return dataType;
} | 3.68 |
hadoop_CommitContext_getJobContext | /**
* Job Context.
* @return job context.
*/
public JobContext getJobContext() {
return jobContext;
} | 3.68 |
morf_OracleMetaDataProvider_runSQL | /**
* Run some SQL, and tidy up afterwards.
*
* Note this assumes a predicate on the schema name will be present with a single parameter in position "1".
*
* @param sql The SQL to run.
* @param handler The handler to handle the result-set.
*/
private void runSQL(String sql, ResultSetHandler handler) {
try {
... | 3.68 |
flink_ErrorInfo_getException | /** Returns the serialized form of the original exception. */
public SerializedThrowable getException() {
return exception;
} | 3.68 |
flink_HiveParserProjectWindowTrimmer_trimProjectWindow | /**
* Remove the redundant nodes from the project node which contains over window node.
*
* @param selectProject the project node contains selected fields in top of the project node
* with window
* @param projectWithWindow the project node which contains windows in the end of project
* expressions.
* @re... | 3.68 |
hbase_MultiRowRangeFilter_isInitialized | /**
* Returns true if this class has been initialized by calling {@link #initialize(boolean)}.
*/
public boolean isInitialized() {
return initialized;
} | 3.68 |
morf_AbstractSelectStatement_orderBy | /**
* Specifies the fields by which to order the result set. For use in builder code.
* See {@link #orderBy(AliasedField...)} for the DSL version.
*
* @param orderFields the fields to order by
* @return a new select statement with the change applied.
*/
public T orderBy(Iterable<AliasedField> orderFields) {
ret... | 3.68 |
framework_AbstractClientConnector_getResource | /**
* Gets a resource defined using {@link #setResource(String, Resource)} with
* the corresponding key.
*
* @param key
* the string identifier of the resource
* @return a resource, or <code>null</code> if there's no resource
* associated with the given key
*
* @see #setResource(String, Reso... | 3.68 |
flink_StreamContextEnvironment_collectNotAllowedConfigurations | /**
* Collects programmatic configuration changes.
*
* <p>Configuration is spread across instances of {@link Configuration} and POJOs (e.g. {@link
* ExecutionConfig}), so we need to have logic for comparing both. For supporting wildcards, the
* first can be accomplished by simply removing keys, the latter by setti... | 3.68 |
framework_FieldGroup_setBuffered | /**
* Sets the buffered mode for the bound fields.
* <p>
* When buffered mode is on the item will not be updated until
* {@link #commit()} is called. If buffered mode is off the item will be
* updated once the fields are updated.
* </p>
* <p>
* The default is to use buffered mode.
* </p>
*
* @see Field#setBu... | 3.68 |
flink_JsonRowSchemaConverter_convert | /**
* Converts a JSON schema into Flink's type information. Throws an exception if the schema
* cannot converted because of loss of precision or too flexible schema.
*
* <p>The converter can resolve simple schema references to solve those cases where entities are
* defined at the beginning and then used throughout... | 3.68 |
hudi_StringUtils_emptyToNull | /**
* Returns the given string if it is nonempty; {@code null} otherwise.
*
* @param string the string to test and possibly return
* @return {@code string} itself if it is nonempty; {@code null} if it is empty or null
*/
public static @Nullable String emptyToNull(@Nullable String string) {
return stringIsNullOrE... | 3.68 |
flink_FlinkTypeSystem_adjustType | /**
* Java numeric will always have invalid precision/scale, use its default decimal
* precision/scale instead.
*/
private RelDataType adjustType(RelDataTypeFactory typeFactory, RelDataType relDataType) {
return RelDataTypeFactoryImpl.isJavaType(relDataType)
? typeFactory.decimalOf(relDataType)
... | 3.68 |
flink_BinaryStringDataUtil_splitByWholeSeparatorPreserveAllTokens | /**
* Splits the provided text into an array, separator string specified.
*
* <p>The separator is not included in the returned String array. Adjacent separators are
* treated as separators for empty tokens.
*
* <p>A {@code null} separator splits on whitespace.
*
* <pre>
* "".splitByWholeSeparatorPreserveAllTok... | 3.68 |
hbase_RegionStateStore_mergeRegions | // ============================================================================================
// Update Region Merging State helpers
// ============================================================================================
public void mergeRegions(RegionInfo child, RegionInfo[] parents, ServerName serverName,
... | 3.68 |
flink_Path_read | /**
* Read uri from {@link DataInputView}.
*
* @param in the input view to read the uri.
* @throws IOException if an error happened.
* @deprecated the method is deprecated since Flink 1.19 because Path will no longer implement
* {@link IOReadableWritable} in future versions. Please use {@code
* deseriali... | 3.68 |
hudi_HFileBootstrapIndex_createReader | /**
* Helper method to create HFile Reader.
*
* @param hFilePath File Path
* @param conf Configuration
* @param fileSystem File System
*/
private static HFile.Reader createReader(String hFilePath, Configuration conf, FileSystem fileSystem) {
LOG.info("Opening HFile for reading :" + hFilePath);
return HoodieHF... | 3.68 |
hbase_CatalogJanitor_cleanMergeRegion | /**
* If merged region no longer holds reference to the merge regions, archive merge region on hdfs
* and perform deleting references in hbase:meta
* @return true if we delete references in merged region on hbase:meta and archive the files on
* the file system
*/
static boolean cleanMergeRegion(MasterServi... | 3.68 |
framework_Form_registerField | /**
* Register the field with the form. All registered fields are validated
* when the form is validated and also committed when the form is committed.
*
* <p>
* The property id must not be already used in the form.
* </p>
*
*
* @param propertyId
* the Property id of the field.
* @param field
* ... | 3.68 |
hudi_DateTimeUtils_formatUnixTimestamp | /**
* Convert UNIX_TIMESTAMP to string in given format.
*
* @param unixTimestamp UNIX_TIMESTAMP
* @param timeFormat string time format
*/
public static String formatUnixTimestamp(long unixTimestamp, String timeFormat) {
ValidationUtils.checkArgument(!StringUtils.isNullOrEmpty(timeFormat));
DateTimeFormatter dt... | 3.68 |
hmily_SwaggerConfig_apiInfo | /**
* Api info api info.
*
* @return the api info
*/
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Swagger API")
.description("dubbo分布式事务解决方案之Hmily测试体验")
.license("Apache 2.0")
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
... | 3.68 |
hudi_SparkValidatorUtils_runValidators | /**
* Check configured pre-commit validators and run them. Note that this only works for COW tables
*
* Throw error if there are validation failures.
*/
public static void runValidators(HoodieWriteConfig config,
HoodieWriteMetadata<HoodieData<WriteStatus>> writeMetadata,
... | 3.68 |
streampipes_NetioRestAdapter_pullData | /**
* pullData is called iteratively according to the polling interval defined in getPollInterval.
*/
@Override
public void pullData() {
try {
NetioAllPowerOutputs allPowerOutputs = requestData();
for (NetioPowerOutput output : allPowerOutputs.getPowerOutputs()) {
Map<String, Object> event = NetioUti... | 3.68 |
flink_StreamConfig_setOperatorNonChainedOutputs | /** Sets the operator level non-chained outputs. */
public void setOperatorNonChainedOutputs(List<NonChainedOutput> nonChainedOutputs) {
toBeSerializedConfigObjects.put(OP_NONCHAINED_OUTPUTS, nonChainedOutputs);
} | 3.68 |
hbase_BufferedMutatorParams_opertationTimeout | /**
* @deprecated Since 2.3.0, will be removed in 4.0.0. Use {@link #operationTimeout(int)}
*/
@Deprecated
public BufferedMutatorParams opertationTimeout(final int operationTimeout) {
this.operationTimeout = operationTimeout;
return this;
} | 3.68 |
hmily_HashedWheelTimer_clearTimeouts | /**
* Clear this bucket and return all not expired / cancelled {@link Timeout}s.
*/
public void clearTimeouts(final Set<Timeout> set) {
for (;;) {
HashedWheelTimeout timeout = pollTimeout();
if (timeout == null) {
return;
}
if (timeout.isExpired() || timeout.isCancelled... | 3.68 |
hadoop_ManifestCommitterSupport_maybeAddIOStatistics | /**
* If the object is an IOStatisticsSource, get and add
* its IOStatistics.
* @param o source object.
*/
public static void maybeAddIOStatistics(IOStatisticsAggregator ios,
Object o) {
if (o instanceof IOStatisticsSource) {
ios.aggregate(((IOStatisticsSource) o).getIOStatistics());
}
} | 3.68 |
rocketmq-connect_RebalanceService_onConfigUpdate | /**
* When config change.
*/
@Override
public void onConfigUpdate() {
RebalanceService.this.wakeup();
} | 3.68 |
framework_Form_getComponentIterator | /**
* @deprecated As of 7.0, use {@link #iterator()} instead.
*/
@Deprecated
public Iterator<Component> getComponentIterator() {
return iterator();
} | 3.68 |
framework_ContainerEventProvider_getStyleNameProperty | /**
* Get the property which provides the style name for the event.
*/
public Object getStyleNameProperty() {
return styleNameProperty;
} | 3.68 |
flink_Hardware_getSizeOfPhysicalMemoryForLinux | /**
* Returns the size of the physical memory in bytes on a Linux-based operating system.
*
* @return the size of the physical memory in bytes or {@code -1}, if the size could not be
* determined
*/
private static long getSizeOfPhysicalMemoryForLinux() {
try (BufferedReader lineReader =
new Buf... | 3.68 |
hudi_AvroSchemaCompatibility_calculateCompatibility | /**
* Calculates the compatibility of a reader/writer schema pair.
*
* <p>
* Relies on external memoization performed by
* {@link #getCompatibility(Schema, Schema)}.
* </p>
*
* @param reader Reader schema to test.
* @param writer Writer schema to test.
* @param locations Stack with which to track the lo... | 3.68 |
framework_Result_ifError | /**
* Applies the {@code consumer} if result is an error.
*
* @param consumer
* consumer to apply in case it's an error
*/
public default void ifError(SerializableConsumer<String> consumer) {
handle(value -> {
}, consumer);
} | 3.68 |
hudi_HoodieParquetInputFormat_initAvroInputFormat | /**
* Spark2 use `parquet.hadoopParquetInputFormat` in `com.twitter:parquet-hadoop-bundle`.
* So that we need to distinguish the constructions of classes with
* `parquet.hadoopParquetInputFormat` or `org.apache.parquet.hadoop.ParquetInputFormat`.
* If we use `org.apache.parquet:parquet-hadoop`, we can use `HudiAvro... | 3.68 |
framework_AbstractField_createValueChange | /**
* Returns a new value change event instance.
*
* @param oldValue
* the value of this field before this value change event
* @param userOriginated
* {@code true} if this event originates from the client,
* {@code false} otherwise.
* @return the new event
*/
protected ValueCh... | 3.68 |
framework_AbstractOrderedLayoutConnector_updateAllSlotListeners | /**
* Add slot listeners
*/
private void updateAllSlotListeners() {
for (ComponentConnector child : getChildComponents()) {
updateSlotListeners(child);
}
} | 3.68 |
framework_AbsoluteLayout_writePositionAttribute | /**
* Private method for writing position attributes
*
* @since 7.4
* @param node
* target node
* @param key
* attribute key
* @param symbol
* value symbol
* @param value
* the value
*/
private void writePositionAttribute(Node node, String key, String symbol,
... | 3.68 |
hbase_MasterMaintenanceModeTracker_start | /**
* Starts the tracking of whether master is in Maintenance Mode.
*/
public void start() {
watcher.registerListener(this);
update();
} | 3.68 |
flink_AsyncWaitOperator_registerTimer | /** Utility method to register timeout timer. */
private ScheduledFuture<?> registerTimer(
ProcessingTimeService processingTimeService,
long timeout,
ThrowingConsumer<Void, Exception> callback) {
final long timeoutTimestamp = timeout + processingTimeService.getCurrentProcessingTime();
r... | 3.68 |
hadoop_ServiceLauncher_noteException | /**
* Record that an Exit Exception has been raised.
* Save it to {@link #serviceException}, with its exit code in
* {@link #serviceExitCode}
* @param exitException exception
*/
void noteException(ExitUtil.ExitException exitException) {
int exitCode = exitException.getExitCode();
if (exitCode != 0) {
LOG.d... | 3.68 |
hbase_VersionResource_getClusterVersionResource | /**
* Dispatch to StorageClusterVersionResource
*/
@Path("cluster")
public StorageClusterVersionResource getClusterVersionResource() throws IOException {
return new StorageClusterVersionResource();
} | 3.68 |
pulsar_ManagedLedger_skipNonRecoverableLedger | /**
* If a ledger is lost, this ledger will be skipped after enabled "autoSkipNonRecoverableData", and the method is
* used to delete information about this ledger in the ManagedCursor.
*/
default void skipNonRecoverableLedger(long ledgerId){} | 3.68 |
querydsl_BooleanExpression_and | /**
* Create a {@code this && right} expression
*
* <p>Returns an intersection of this and the given expression</p>
*
* @param right right hand side of the union
* @return {@code this && right}
*/
public BooleanExpression and(@Nullable Predicate right) {
right = (Predicate) ExpressionUtils.extract(ri... | 3.68 |
streampipes_BoilerpipeHTMLContentHandler_endPrefixMapping | // @Override
public void endPrefixMapping(String prefix) throws SAXException {
} | 3.68 |
flink_VoidNamespace_get | /** Getter for the singleton instance. */
public static VoidNamespace get() {
return INSTANCE;
} | 3.68 |
flink_JoinedRowData_replace | /**
* Replaces the {@link RowData} backing this {@link JoinedRowData}.
*
* <p>This method replaces the backing rows in place and does not return a new object. This is
* done for performance reasons.
*/
public JoinedRowData replace(RowData row1, RowData row2) {
this.row1 = row1;
this.row2 = row2;
return... | 3.68 |
framework_VScrollTable_isEnabled | /**
* Is the cell enabled?
*
* @return True if enabled else False
*/
public boolean isEnabled() {
return getParent() != null;
} | 3.68 |
flink_ZooKeeperStateHandleStore_addAndLock | /**
* Creates a state handle, stores it in ZooKeeper and locks it. A locked node cannot be removed
* by another {@link ZooKeeperStateHandleStore} instance as long as this instance remains
* connected to ZooKeeper.
*
* <p><strong>Important</strong>: This will <em>not</em> store the actual state in ZooKeeper,
* but... | 3.68 |
hbase_KeyValue_getTagsArray | /**
* Returns the backing array of the entire KeyValue (all KeyValue fields are in a single array)
*/
@Override
public byte[] getTagsArray() {
return bytes;
} | 3.68 |
hbase_RegionPlacementMaintainer_invertIndices | /**
* Given an array where each element {@code indices[i]} represents the randomized column index
* corresponding to randomized row index {@code i}, create a new array with the corresponding
* inverted indices.
* @param indices an array of transformed indices to be inverted
* @return an array of inverted indices
... | 3.68 |
framework_LayoutManager_getBorderRight | /**
* Gets the right border of the given element, provided that it has been
* measured. These elements are guaranteed to be measured:
* <ul>
* <li>ManagedLayouts and their child Connectors
* <li>Elements for which there is at least one ElementResizeListener
* <li>Elements for which at least one ManagedLayout has ... | 3.68 |
flink_RocksDBNativeMetricOptions_enableNumEntriesActiveMemTable | /** Returns total number of entries in the active memtable. */
public void enableNumEntriesActiveMemTable() {
this.properties.add(RocksDBProperty.NumEntriesActiveMemTable.getRocksDBProperty());
} | 3.68 |
flink_AbstractMetricGroup_putVariables | /**
* Enters all variables specific to this {@link AbstractMetricGroup} and their associated values
* into the map.
*
* @param variables map to enter variables and their values into
*/
protected void putVariables(Map<String, String> variables) {} | 3.68 |
hadoop_NvidiaGPUPluginForRuntimeV2_getMajorNumber | // Get major number from device name.
private String getMajorNumber(String devName) {
String output = null;
// output "major:minor" in hex
try {
LOG.debug("Get major numbers from /dev/{}", devName);
output = shellExecutor.getMajorMinorInfo(devName);
String[] strs = output.trim().split(":");
LOG.de... | 3.68 |
hadoop_TaskManifest_validate | /**
* Validate the data: those fields which must be non empty, must be set.
* @throws IOException if the data is invalid
* @return
*/
public TaskManifest validate() throws IOException {
verify(TYPE.equals(type), "Wrong type: %s", type);
verify(version == VERSION, "Wrong version: %s", version);
validateCollect... | 3.68 |
pulsar_PulsarAuthorizationProvider_canLookupAsync | /**
* Check whether the specified role can perform a lookup for the specified topic.
*
* For that the caller needs to have producer or consumer permission.
*
* @param topicName
* @param role
* @return
* @throws Exception
*/
@Override
public CompletableFuture<Boolean> canLookupAsync(TopicName topicName, String ... | 3.68 |
hadoop_CachingBlockManager_get | /**
* Gets the block having the given {@code blockNumber}.
*
* @throws IllegalArgumentException if blockNumber is negative.
*/
@Override
public BufferData get(int blockNumber) throws IOException {
checkNotNegative(blockNumber, "blockNumber");
BufferData data;
final int maxRetryDelayMs = bufferPoolSize * 120 ... | 3.68 |
morf_ResultSetMismatch_getRightValue | /**
* @return Value from the right hand result set.
*/
public String getRightValue() {
return rightValue;
} | 3.68 |
dubbo_PathUtil_setArgInfoSplitIndex | /**
* parse pathVariable index from url by annotation info
*
* @param rawPath
* @param argInfos
*/
public static void setArgInfoSplitIndex(String rawPath, List<ArgInfo> argInfos) {
String[] split = rawPath.split(SEPARATOR);
List<PathPair> pathPairs = new ArrayList<>();
for (ArgInfo argInfo : argInfos... | 3.68 |
hbase_WALEntryBatch_getWalEntriesWithSize | /** Returns the WAL Entries. */
public List<Pair<Entry, Long>> getWalEntriesWithSize() {
return walEntriesWithSize;
} | 3.68 |
hadoop_AzureNativeFileSystemStore_checkContainer | /**
* This should be called from any method that does any modifications to the
* underlying container: it makes sure to put the WASB current version in the
* container's metadata if it's not already there.
*/
private ContainerState checkContainer(ContainerAccessType accessType)
throws StorageException, AzureExc... | 3.68 |
framework_MenuBarTooltipsNearEdge_getTicketNumber | /*
* (non-Javadoc)
*
* @see com.vaadin.tests.components.AbstractTestUI#getTicketNumber()
*/
@Override
protected Integer getTicketNumber() {
return 12870;
} | 3.68 |
hudi_MercifulJsonConverter_convert | /**
* Converts json to Avro generic record.
* NOTE: if sanitization is needed for avro conversion, the schema input to this method is already sanitized.
* During the conversion here, we sanitize the fields in the data
*
* @param json Json record
* @param schema Schema
*/
public GenericRecord convert(String... | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.