name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hudi_HashID_byteSize
/** * Get this Hash size in bytes. * * @return Bytes needed to represent this size */ public int byteSize() { return (((this.bits - 1) / Byte.SIZE) + 1); }
3.68
flink_MailboxProcessor_runMailboxLoop
/** * Runs the mailbox processing loop. This is where the main work is done. This loop can be * suspended at any time by calling {@link #suspend()}. For resuming the loop this method should * be called again. */ public void runMailboxLoop() throws Exception { suspended = !mailboxLoopRunning; final TaskMail...
3.68
hadoop_IOStatisticsSnapshot_requiredSerializationClasses
/** * What classes are needed to deserialize this class? * Needed to securely unmarshall this from untrusted sources. * @return a list of required classes to deserialize the data. */ public static List<Class> requiredSerializationClasses() { return Arrays.stream(DESERIALIZATION_CLASSES) .collect(Collectors....
3.68
pulsar_AuthorizationProvider_allowTopicOperationAsync
/** * Check if a given <tt>role</tt> is allowed to execute a given topic <tt>operation</tt> on the topic. * * @param topic topic name * @param role role name * @param operation topic operation * @param authData authenticated data * @return CompletableFuture<Boolean> */ default CompletableFuture<Boolean> allowTo...
3.68
dubbo_GovernanceRuleRepository_addListener
/** * {@link #addListener(String, String, ConfigurationListener)} * * @param key the key to represent a configuration * @param listener configuration listener */ default void addListener(String key, ConfigurationListener listener) { addListener(key, DEFAULT_GROUP, listener); }
3.68
dubbo_ServiceInstancesChangedEvent_getServiceInstances
/** * @return all {@link ServiceInstance service instances} */ public List<ServiceInstance> getServiceInstances() { return serviceInstances; }
3.68
framework_SQLContainer_rollback
/** * Rolls back all the changes, additions and removals made to the items of * this container. * * @throws UnsupportedOperationException * @throws SQLException */ public void rollback() throws UnsupportedOperationException, SQLException { getLogger().log(Level.FINE, "Rolling back changes..."); removedIte...
3.68
hudi_ClusteringUtil_scheduleClustering
/** * Schedules clustering plan by condition. * * @param conf The configuration * @param writeClient The write client * @param committed Whether the instant was committed */ public static void scheduleClustering(Configuration conf, HoodieFlinkWriteClient writeClient, boolean committed) { validateCluste...
3.68
framework_CSSInjectWithColorpicker_createBackgroundColorSelect
/** * Creates a background color select dialog */ private Component createBackgroundColorSelect() { ColorPicker bgColor = new ColorPicker("Background", Color.WHITE); bgColor.setWidth("110px"); bgColor.setCaption("Background"); bgColor.addValueChangeListener(event -> { // Get the new backgroun...
3.68
hbase_AvlUtil_seekFirst
/** * Reset the iterator, and seeks to the first (min) node of the tree * @param root the current root of the tree */ public void seekFirst(final TNode root) { current = root; height = 0; if (root != null) { while (current.avlLeft != null) { stack[height++] = current; current = (TNode) current....
3.68
hbase_SnapshotManager_snapshotDisabledTable
/** * Take a snapshot of a disabled table. * @param snapshot description of the snapshot to take. Modified to be {@link Type#DISABLED}. * @throws IOException if the snapshot could not be started or filesystem for snapshot temporary * directory could not be determined */ private synchronized voi...
3.68
flink_EnvironmentSettings_getBuiltInDatabaseName
/** * Gets the specified name of the default database in the initial catalog to be created when * instantiating a {@link TableEnvironment}. */ public String getBuiltInDatabaseName() { return configuration.get(TABLE_DATABASE_NAME); }
3.68
flink_NetworkBufferAllocator_allocatePooledNetworkBuffer
/** * Allocates a pooled network buffer for the specific input channel. * * @param receiverId The id of the requested input channel. * @return The pooled network buffer. */ @Nullable Buffer allocatePooledNetworkBuffer(InputChannelID receiverId) { Buffer buffer = null; RemoteInputChannel inputChannel = net...
3.68
hmily_StringUtils_isAnyBlank
/** * Is any blank boolean. * * @param css the css * @return the boolean */ private static boolean isAnyBlank(final CharSequence... css) { if (isEmpty(css)) { return true; } for (CharSequence cs : css) { if (isBlank(cs)) { return true; } } return false; }
3.68
hbase_CellUtil_setTimestamp
/** * Sets the given timestamp to the cell. Note that this method is a LimitedPrivate API and may * change between minor releases. * @throws IOException when the passed cell is not of type {@link ExtendedCell} */ @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC) public static void setTimestamp(Cell c...
3.68
flink_PlanNode_getNodeCosts
/** * Gets the costs incurred by this node. The costs reflect also the costs incurred by the * shipping strategies of the incoming connections. * * @return The node-costs, or null, if not yet set. */ public Costs getNodeCosts() { return this.nodeCosts; }
3.68
flink_MemoryMappedBoundedData_close
/** * Unmaps the file from memory and deletes the file. After calling this method, access to any * ByteBuffer obtained from this instance will cause a segmentation fault. */ public void close() throws IOException { IOUtils.closeQuietly(file); // in case we dispose before finishing writes for (ByteBuffer bb ...
3.68
flink_TemporalRowTimeJoinOperator_emitResultAndCleanUpState
/** * @return a row time of the oldest unprocessed probe record or Long.MaxValue, if all records * have been processed. */ private long emitResultAndCleanUpState(long currentWatermark) throws Exception { List<RowData> rightRowsSorted = getRightRowSorted(rightRowtimeComparator); long lastUnprocessedTime =...
3.68
zxing_MinimalECIInput_length
/** * Returns the length of this input. The length is the number * of {@code byte}s, FNC1 characters or ECIs in the sequence. * * @return the number of {@code char}s in this sequence */ public int length() { return bytes.length; }
3.68
hbase_JVMClusterUtil_getMaster
/** Returns the master */ public HMaster getMaster() { return this.master; }
3.68
flink_ExternalResourceOptions_getSystemConfigKeyConfigOptionForResource
/** * Generate the config option key for the configuration key of external resource in the * deploying system. */ public static String getSystemConfigKeyConfigOptionForResource( String resourceName, String suffix) { return keyWithResourceNameAndSuffix(resourceName, suffix); }
3.68
open-banking-gateway_Xs2aConsentInfo_isZeroScaAvailable
/** * Is the current consent authorization using zero SCA flow */ public boolean isZeroScaAvailable(Xs2aContext ctx) { return (null == ctx.getAvailableSca() || null != ctx.getAvailableSca() && ctx.getAvailableSca().isEmpty()) && null == ctx.getScaSelected(); }
3.68
hudi_AvroSchemaUtils_isCompatibleProjectionOf
/** * Validate whether the {@code targetSchema} is a "compatible" projection of {@code sourceSchema}. * Only difference of this method from {@link #isStrictProjectionOf(Schema, Schema)} is * the fact that it allows some legitimate type promotions (like {@code int -> long}, * {@code decimal(3, 2) -> decimal(5, 2)}, ...
3.68
pulsar_AuthenticationState_authenticateAsync
/** * Challenge passed in auth data. If authentication is complete after the execution of this method, return null. * Otherwise, return response data to be sent to the client. * * <p>Note: the implementation of {@link AuthenticationState#authenticate(AuthData)} converted a null result into a * zero length byte arr...
3.68
hadoop_ProtobufHelper_protoFromToken
/** * Create a {@code TokenProto} instance * from a hadoop token. * This builds and caches the fields * (identifier, password, kind, service) but not * renewer or any payload. * @param tok token * @return a marshallable protobuf class. */ public static TokenProto protoFromToken(Token<?> tok) { return ShadedPr...
3.68
framework_CssLayout_addComponent
/** * Adds a component into indexed position in this container. * * @param c * the component to be added. * @param index * the index of the component position. The components currently * in and after the position are shifted forwards. */ public void addComponent(Component c, int...
3.68
hbase_FanOutOneBlockAsyncDFSOutput_flush
/** * Flush the buffer out to datanodes. * @param syncBlock will call hsync if true, otherwise hflush. * @return A CompletableFuture that hold the acked length after flushing. */ @Override public CompletableFuture<Long> flush(boolean syncBlock) { CompletableFuture<Long> future = new CompletableFuture<>(); flush...
3.68
flink_Rowtime_watermarksFromSource
/** * Sets a built-in watermark strategy which indicates the watermarks should be preserved from * the underlying DataStream API and thus preserves the assigned watermarks from the source. */ public Rowtime watermarksFromSource() { internalProperties.putString( ROWTIME_WATERMARKS_TYPE, ROWTIME_WATERM...
3.68
framework_TreeGrid_isExpanded
/** * Returns whether a given item is expanded or collapsed. * * @param item * the item to check * @return true if the item is expanded, false if collapsed */ public boolean isExpanded(T item) { return getDataCommunicator().isExpanded(item); }
3.68
framework_AbstractComponent_setEnabled
/* * (non-Javadoc) * * @see com.vaadin.ui.Component#setEnabled(boolean) */ @Override public void setEnabled(boolean enabled) { getState().enabled = enabled; }
3.68
dubbo_MetadataReport_publishAppMetadata
/** * Application Metadata -- START **/ default void publishAppMetadata(SubscriberMetadataIdentifier identifier, MetadataInfo metadataInfo) {}
3.68
hbase_CoprocessorHost_findCoprocessors
/** * Find list of coprocessors that extend/implement the given class/interface * @param cls the class/interface to look for * @return the list of coprocessors, or null if not found */ public <T extends C> List<T> findCoprocessors(Class<T> cls) { ArrayList<T> ret = new ArrayList<>(); for (E env : coprocEnviron...
3.68
flink_WatermarkStrategy_withIdleness
/** * Creates a new enriched {@link WatermarkStrategy} that also does idleness detection in the * created {@link WatermarkGenerator}. * * <p>Add an idle timeout to the watermark strategy. If no records flow in a partition of a * stream for that amount of time, then that partition is considered "idle" and will not ...
3.68
hmily_HmilyRepositoryStorage_writeHmilyLocks
/** * Try to write locks. * * @param hmilyLocks hmily locks */ public static void writeHmilyLocks(final Collection<HmilyLock> hmilyLocks) { if (!hmilyLocks.isEmpty()) { PUBLISHER.syncPublishEvent(hmilyLocks, EventTypeEnum.WRITE_HMILY_LOCKS.getCode()); } }
3.68
flink_ExceptionHistoryEntry_create
/** * Creates an {@code ExceptionHistoryEntry} based on the provided {@code Execution}. * * @param failedExecution the failed {@code Execution}. * @param taskName the name of the task. * @param failureLabels the labels associated with the failure. * @return The {@code ExceptionHistoryEntry}. * @throws NullPointe...
3.68
hudi_WriteMetadataEvent_mergeWith
/** * Merges this event with given {@link WriteMetadataEvent} {@code other}. * * @param other The event to be merged */ public void mergeWith(WriteMetadataEvent other) { ValidationUtils.checkArgument(this.taskID == other.taskID); // the instant time could be monotonically increasing this.instantTime = other.i...
3.68
hbase_OrderedBytes_unsignedCmp
/** * Perform unsigned comparison between two long values. Conforms to the same interface as * {@link org.apache.hadoop.hbase.CellComparator}. */ private static int unsignedCmp(long x1, long x2) { int cmp; if ((cmp = (x1 < x2 ? -1 : (x1 == x2 ? 0 : 1))) == 0) return 0; // invert the result when either value is...
3.68
hadoop_Adl_getUriDefaultPort
/** * @return Default port for ADL File system to communicate */ @Override public final int getUriDefaultPort() { return AdlFileSystem.DEFAULT_PORT; }
3.68
flink_RemoteStorageScanner_close
/** Close the executor. */ public void close() { synchronized (scannerExecutor) { scannerExecutor.shutdownNow(); } try { if (!scannerExecutor.awaitTermination(5L, TimeUnit.MINUTES)) { throw new TimeoutException("Timeout to shutdown the flush thread."); } } catch (Inte...
3.68
flink_CostEstimator_costOperator
/** * This method computes the cost of an operator. The cost is composed of cost for input * shipping, locally processing an input, and running the operator. * * <p>It requires at least that all inputs are set and have a proper ship strategy set, which is * not equal to <tt>NONE</tt>. * * @param n The node to co...
3.68
framework_CustomLayout_removeComponent
/** * Removes the component from this container from given location. * * @param location * the Location identifier of the component. */ public void removeComponent(String location) { this.removeComponent(slots.get(location)); }
3.68
flink_Preconditions_checkNotNull
/** * Ensures that the given object reference is not null. Upon violation, a {@code * NullPointerException} with the given message is thrown. * * <p>The error message is constructed from a template and an arguments array, after a similar * fashion as {@link String#format(String, Object...)}, but supporting only {@...
3.68
pulsar_ResourceGroupService_getRgTenantRegistersCount
// Visibility for testing. protected static double getRgTenantRegistersCount (String rgName) { return rgTenantRegisters.labels(rgName).get(); }
3.68
hbase_BulkLoadHFilesTool_tryAtomicRegionLoad
/** * Attempts to do an atomic load of many hfiles into a region. If it fails, it returns a list of * hfiles that need to be retried. If it is successful it will return an empty list. NOTE: To * maintain row atomicity guarantees, region server side should succeed atomically and fails * atomically. * @param conn ...
3.68
flink_TieredStorageNettyServiceImpl_setupInputChannels
/** * Set up input channels in {@link SingleInputGate}. The method will be invoked by the pekko rpc * thread at first, and then the method {@link * TieredStorageNettyService#registerConsumer(TieredStoragePartitionId, * TieredStorageSubpartitionId)} will be invoked by the same thread sequentially, which ensures * t...
3.68
framework_AbstractListing_setItemIconGenerator
/** * Sets the item icon generator that is used to produce custom icons for * shown items. The generator can return null for items with no icon. * <p> * Implementations that support item icons make this method public. * * @see IconGenerator * * @param itemIconGenerator * the item icon generator to s...
3.68
framework_TabSheet_selectedTabIndexAfterTabRemove
/** * Called when a selected tab is removed to specify the new tab to select. * Can be overridden to provide another algorithm that calculates the new * selection. * * Current implementation will choose the first enabled tab to the right of * the removed tab if it's not the last one, otherwise will choose the * ...
3.68
aws-saas-boost_Environment_builder
/** * Constructs a {@link Environment.Builder} using the provided {@link Environment} as a baseline. * * It will always be true that calling <code>build</code> on the {@link Environment.Builder} returned * by this function will create an {@link Environment} equal to the provided {@link Environment}. In other words...
3.68
querydsl_AbstractHibernateQuery_iterate
/** * Return the query results as an {@code Iterator}. If the query * contains multiple results pre row, the results are returned in * an instance of {@code Object[]}.<br> * <br> * Entities returned as results are initialized on demand. The first * SQL query returns identifiers only.<br> */ @Override public Clos...
3.68
hadoop_Utils_write
/** * Write the objec to a DataOutput. The serialized format of the Version is * major version followed by minor version, both as big-endian short * integers. * * @param out * The DataOutput object. * @throws IOException raised on errors performing I/O. */ public void write(DataOutput out) throws IOEx...
3.68
framework_ItemClickEvent_getPropertyId
/** * Returns property on which click event occurred. Returns null if source * cannot be resolved at property level. For example if clicked a cell in * table, the "column id" is returned. * * @return a property id of clicked property or null if click didn't occur * on any distinct property. */ public Obj...
3.68
shardingsphere-elasticjob_ExecutionService_clearMisfire
/** * Clear misfire flag. * * @param items sharding items need to be cleared */ public void clearMisfire(final Collection<Integer> items) { for (int each : items) { jobNodeStorage.removeJobNodeIfExisted(ShardingNode.getMisfireNode(each)); } }
3.68
framework_BootstrapHandler_getUIClass
/** * Gets the UI class which will be used. * * @return the UI class */ public Class<? extends UI> getUIClass() { return bootstrapResponse.getUiClass(); }
3.68
hadoop_RegistryOperationsService_validatePath
/** * Validate a path * @param path path to validate * @throws InvalidPathnameException if a path is considered invalid */ protected void validatePath(String path) throws InvalidPathnameException { // currently no checks are performed }
3.68
hadoop_SignerFactory_isSignerRegistered
/** * Check if the signer has already been registered. * @param signerType signer to get * @return true if the signer is registered. */ public static boolean isSignerRegistered(String signerType) { return SIGNERS.containsKey(signerType); }
3.68
hadoop_WebPageUtils_appendToolSection
/** * Creates the tool section after a closed section. If it is not enabled, * the section is created without any links. * @param section a closed HTML div section * @param conf configuration object * @return the tool section, if it is enabled, null otherwise */ public static Hamlet.UL<Hamlet.DIV<Hamlet>> appendT...
3.68
druid_IPAddress_isClassA
/** * Check if the IP address is belongs to a Class A IP address. * * @return Return <code>true</code> if the encapsulated IP address belongs to a class A IP address, otherwise * returne <code>false</code>. */ public final boolean isClassA() { return (ipAddress & 0x00000001) == 0; }
3.68
hbase_AbstractFSWAL_doCheckSlowSync
/** Returns true if we exceeded the slow sync roll threshold over the last check interval */ protected boolean doCheckSlowSync() { boolean result = false; long now = EnvironmentEdgeManager.currentTime(); long elapsedTime = now - lastTimeCheckSlowSync; if (elapsedTime >= slowSyncCheckInterval) { if (slowSync...
3.68
hbase_MemorySizeUtil_safeGetHeapMemoryUsage
/** * Return JVM memory statistics while properly handling runtime exceptions from the JVM. * @return a memory usage object, null if there was a runtime exception. (n.b. you could also get * -1 values back from the JVM) * @see MemoryUsage */ public static MemoryUsage safeGetHeapMemoryUsage() { MemoryUsag...
3.68
hudi_CompactionUtils_getLogCompactionPlan
/** * This method will serve only log compaction instants, * because we use same HoodieCompactionPlan for both the operations. */ public static HoodieCompactionPlan getLogCompactionPlan(HoodieTableMetaClient metaClient, String logCompactionInstant) { HoodieInstant logCompactionRequestedInstant = HoodieTimeline.get...
3.68
framework_VComboBox_handleMouseDownEvent
/** * Handles special behavior of the mouse down event. * * @param event */ private void handleMouseDownEvent(Event event) { /* * Prevent the keyboard focus from leaving the textfield by preventing * the default behavior of the browser. Fixes #4285. */ if (event.getTypeInt() == Event.ONMOUSED...
3.68
flink_NFACompiler_getTakeCondition
/** * @return the {@link IterativeCondition condition} for the {@code TAKE} edge that * corresponds to the specified {@link Pattern} and extended with stop(until) condition * if necessary. */ @SuppressWarnings("unchecked") private IterativeCondition<T> getTakeCondition(Pattern<T, ?> pattern) { Iterative...
3.68
hbase_RegionInfo_parseDelimitedFrom
/** * Parses all the RegionInfo instances from the passed in stream until EOF. Presumes the * RegionInfo's were serialized to the stream with oDelimitedByteArray() * @param bytes serialized bytes * @param offset the start offset into the byte[] buffer * @param length how far we should read into the byte[] buffer ...
3.68
hbase_MetricsSource_decrSourceInitializing
/** * Decrement the count for initializing sources */ public void decrSourceInitializing() { singleSourceSource.decrSourceInitializing(); globalSourceSource.decrSourceInitializing(); }
3.68
flink_CatalogFactory_createCatalog
/** * Creates and configures a {@link Catalog} using the given context. * * <p>An implementation should perform validation and the discovery of further (nested) * factories in this method. */ default Catalog createCatalog(Context context) { throw new CatalogException("Catalog factories must implement createCat...
3.68
hbase_ServerRegionReplicaUtil_getRegionInfoForFs
/** * Returns the regionInfo object to use for interacting with the file system. * @return An RegionInfo object to interact with the filesystem */ public static RegionInfo getRegionInfoForFs(RegionInfo regionInfo) { if (regionInfo == null) { return null; } return RegionReplicaUtil.getRegionInfoForDefaultRe...
3.68
framework_DataCommunicator_getMinPushSize
/** * Get minimum size of data which will be sent to the client when data * source is set. * * @see #setMinPushSize(int) * * @return current minimum push size of initial data chunk which is sent to * the client when data source is set */ public int getMinPushSize() { return minPushSize; }
3.68
hbase_RawDouble_encodeDouble
/** * Write instance {@code val} into buffer {@code buff}. */ public int encodeDouble(byte[] buff, int offset, double val) { return Bytes.putDouble(buff, offset, val); }
3.68
flink_CloseableRegistry_unregisterAndCloseAll
/** * Unregisters all given {@link Closeable} objects from this registry and closes all objects * that are were actually registered. Suppressed (and collects) all exceptions that happen * during closing and throws only when the all {@link Closeable} objects have been processed. * * @param toUnregisterAndClose clos...
3.68
hadoop_InMemoryConfigurationStore_getConfStoreVersion
/** * Configuration mutations applied directly in-memory. As such, there is no * persistent configuration store. * As there is no configuration store for versioning purposes, * a conf store version is not applicable. * @return null Conf store version not applicable for this store. * @throws Exception if any excep...
3.68
hadoop_StreamUtil_goodClassOrNull
/** It may seem strange to silently switch behaviour when a String * is not a classname; the reason is simplified Usage:<pre> * -mapper [classname | program ] * instead of the explicit Usage: * [-mapper program | -javamapper classname], -mapper and -javamapper are mutually exclusive. * (repeat for -reducer, -combi...
3.68
dubbo_StringUtils_parseKeyValuePair
/** * parse key-value pair. * * @param str string. * @param itemSeparator item separator. * @return key-value map; */ private static Map<String, String> parseKeyValuePair(String str, String itemSeparator) { String[] tmp = str.split(itemSeparator); Map<String, String> map = new HashMap<String, St...
3.68
framework_ListenerMethod_writeObject
/* Special serialization to handle method references */ private void writeObject(ObjectOutputStream out) throws IOException { try { out.defaultWriteObject(); String name = method.getName(); Class<?>[] paramTypes = method.getParameterTypes(); out.writeObject(name); out.writeOb...
3.68
flink_CheckpointConfig_setCheckpointTimeout
/** * Sets the maximum time that a checkpoint may take before being discarded. * * @param checkpointTimeout The checkpoint timeout, in milliseconds. */ public void setCheckpointTimeout(long checkpointTimeout) { if (checkpointTimeout < MINIMAL_CHECKPOINT_TIME) { throw new IllegalArgumentException( ...
3.68
Activiti_RootPropertyResolver_getProperty
/** * Get property value * * @param property * property name * @return value associated with the given property */ public Object getProperty(String property) { return map.get(property); }
3.68
hadoop_AllocationFileQueueParser_getErrorString
/** * Set up the error string based on the supplied parent queueName and element. * @param parentQueueName the parent queue name. * @param element the element that should not be present for the parent queue. * @return the error string. */ private String getErrorString(String parentQueueName, String element) { re...
3.68
hbase_MetricsSource_setAgeOfLastShippedOp
/** * Set the age of the last edit that was shipped * @param timestamp target write time of the edit * @param walGroup which group we are setting */ public void setAgeOfLastShippedOp(long timestamp, String walGroup) { long age = EnvironmentEdgeManager.currentTime() - timestamp; singleSourceSource.setLastShippe...
3.68
hadoop_AMOptions_initFromParser
/** * Initialize an {@code AMOptions} from a command line parser. * * @param cliParser * Where to initialize from. * @return A new {@code AMOptions} filled out with options from the parser. */ static AMOptions initFromParser(CommandLine cliParser) { Map<String, String> originalShellEnv = new HashMap<>(...
3.68
framework_VTabsheet_showAllTabs
/** For internal use only. May be removed or replaced in the future. */ public void showAllTabs() { scrollerIndex = tb.getFirstVisibleTab(); scrollerPositionTabId = scrollerIndex < 0 ? null : tb.getTab(scrollerIndex).id; for (int i = 0; i < tb.getTabCount(); i++) { Tab t = tb.getTab(i); ...
3.68
hudi_SparkUpsertDeltaCommitPartitioner_convertLogFilesSizeToExpectedParquetSize
// TODO (NA) : Make this static part of utility public long convertLogFilesSizeToExpectedParquetSize(List<HoodieLogFile> hoodieLogFiles) { long totalSizeOfLogFiles = hoodieLogFiles.stream() .map(HoodieLogFile::getFileSize) .filter(size -> size > 0) .reduce(Long::sum) .orE...
3.68
framework_RowItem_removeItemProperty
/** * Removing properties is not supported. Properties are generated by * SQLContainer. */ @Override public boolean removeItemProperty(Object id) throws UnsupportedOperationException { throw new UnsupportedOperationException(); }
3.68
framework_ConnectorTracker_getDirtyConnectors
/** * Returns a collection of all connectors which have been marked as dirty. * <p> * The state and pending RPC calls for dirty connectors are sent to the * client in the following request. * </p> * * @return A collection of all dirty connectors for this uI. This list may * contain invisible connectors....
3.68
hbase_CompactionThroughputControllerFactory_resolveDeprecatedClassName
/** * Resolve deprecated class name to keep backward compatibiliy * @param oldName old name of the class * @return the new name if there is any */ private static String resolveDeprecatedClassName(String oldName) { String className = oldName.trim(); if (className.equals(DEPRECATED_NAME_OF_PRESSURE_AWARE_THROUGHP...
3.68
flink_HiveStatsUtil_createPartitionColumnStats
/** Create columnStatistics from the given Hive column stats of a hive partition. */ public static ColumnStatistics createPartitionColumnStats( Partition hivePartition, String partName, Map<String, CatalogColumnStatisticsDataBase> colStats, String hiveVersion) { ColumnStatisticsDesc ...
3.68
framework_VBrowserFrame_setSource
/** * Set the source (the "src" attribute) of iframe. Will replace old iframe * with new. * * @param source * Source of iframe. */ public void setSource(String source) { if (source == null) { if (iframe != null) { getElement().removeChild(iframe); iframe = null; ...
3.68
hudi_TypeUtils_unsafeCast
/** * This utility abstracts unsafe type-casting in a way that allows to * <ul> * <li>Search for such type-casts more easily (just searching for usages of this method)</li> * <li>Avoid type-cast warnings from the compiler</li> * </ul> */ @SuppressWarnings("unchecked") public static <T> T unsafeCast(Object o) ...
3.68
hadoop_GPGPolicyFacade_getPolicyManager
/** * Provides a utility for the policy generator to read the policy manager * from the FederationStateStore. Because the policy generator should be the * only component updating the policy, this implementation does not use the * reinitialization feature. * * @param queueName the name of the queue we want the pol...
3.68
framework_TreeGrid_fireExpandEvent
/** * Emit an expand event. * * @param item * the item that was expanded * @param userOriginated * whether the expand was triggered by a user interaction or the * server */ private void fireExpandEvent(T item, boolean userOriginated) { fireEvent(new ExpandEvent<>(this, item,...
3.68
shardingsphere-elasticjob_JobConfiguration_maxTimeDiffSeconds
/** * Set max tolerate time different seconds between job server and registry center. * * <p> * ElasticJob will throw exception if exceed max tolerate time different seconds. * -1 means do not check. * </p> * * @param maxTimeDiffSeconds max tolerate time different seconds between job server and registry center ...
3.68
zxing_DecoderResult_getErrorsCorrected
/** * @return number of errors corrected, or {@code null} if not applicable */ public Integer getErrorsCorrected() { return errorsCorrected; }
3.68
hbase_KeyValue_getFamilyLength
/** Returns Family length */ public byte getFamilyLength(int famLenPos) { return this.bytes[famLenPos]; }
3.68
dubbo_ConfigurationUtils_getSubProperties
/** * Search props and extract sub properties. * <pre> * # properties * dubbo.protocol.name=dubbo * dubbo.protocol.port=1234 * * # extract protocol props * Map props = getSubProperties("dubbo.protocol."); * * # result * props: {"name": "dubbo", "port" : "1234"} * * </pre> * * @param configMaps * @param ...
3.68
hbase_ValueFilter_parseFrom
/** * Parse a serialized representation of {@link ValueFilter} * @param pbBytes A pb serialized {@link ValueFilter} instance * @return An instance of {@link ValueFilter} made from <code>bytes</code> * @throws DeserializationException if an error occurred * @see #toByteArray */ public static ValueFilter parseFrom(...
3.68
framework_MultiSelectionModelImpl_updateSelection
/** * Updates the selection by adding and removing the given items. * <p> * All selection updates should go through this method, since it handles * incorrect parameters, removing duplicates, notifying data communicator * and and firing events. * * @param addedItems * the items added to selection, not...
3.68
flink_BinaryHashPartition_finalizeBuildPhase
/** * After build phase. * * @return build spill return buffer, if have spilled, it returns the current write buffer, * because it was used all the time in build phase, so it can only be returned at this time. */ int finalizeBuildPhase(IOManager ioAccess, FileIOChannel.Enumerator probeChannelEnumerator) ...
3.68
framework_Potus_setParty
/** * @param party * the party to set */ public void setParty(String party) { this.party = party; }
3.68
hbase_Scan_withStartRow
/** * Set the start row of the scan. * <p> * If the specified row does not exist, or the {@code inclusive} is {@code false}, the Scanner * will start from the next closest row after the specified row. * <p> * <b>Note:</b> <strong>Do NOT use this in combination with {@link #setRowPrefixFilter(byte[])} or * {@link...
3.68
hudi_HoodieHBaseIndexConfig_hbaseIndexMaxQPSPerRegionServer
/** * <p> * Method to set maximum QPS allowed per Region Server. This should be same across various jobs. This is intended to * limit the aggregate QPS generated across various jobs to an HBase Region Server. * </p> * <p> * It is recommended to set this value based on your global indexing throughput needs and mos...
3.68
hadoop_TwoColumnLayout_postHead
/** * Do what needs to be done after the header is rendered. * @param html the html to use to render. */ protected void postHead(Page.HTML<__> html) { }
3.68
open-banking-gateway_PsuAuthService_createPsuIfNotExist
/** * Create new PSU if it does not exists yet. * @param login PSU login * @param password PSU password * @return New PSU */ @Transactional public Psu createPsuIfNotExist(String login, String password) { Optional<Psu> psu = psuRepository.findByLogin(login); if (psu.isPresent()) { throw new PsuRegis...
3.68