name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hbase_ReplicationPeerImpl_getId
/** * Get the identifier of this peer * @return string representation of the id (short) */ @Override public String getId() { return id; }
3.68
hbase_LogRollRegionServerProcedureManager_buildSubprocedure
/** * If in a running state, creates the specified subprocedure for handling a backup procedure. * @return Subprocedure to submit to the ProcedureMember. */ public Subprocedure buildSubprocedure(byte[] data) { // don't run a backup if the parent is stop(ping) if (rss.isStopping() || rss.isStopped()) { throw ...
3.68
framework_VMenuBar_addItem
/** * Add a new item to this menu. * * @param item */ public void addItem(CustomMenuItem item) { if (items.contains(item)) { return; } add(item); item.setParentMenu(this); item.setSelected(false); items.add(item); }
3.68
framework_ResourceLoader_loadStylesheet
/** * Load a stylesheet and notify a listener when the stylesheet is loaded. * Calling this method when the stylesheet is currently loading or already * loaded doesn't cause the stylesheet to be loaded again, but the listener * will still be notified when appropriate. * * @param stylesheetUrl * the ur...
3.68
framework_VTransferable_getVariableMap
/** * This helper method should only be called by {@link VDragAndDropManager}. * * @return data in this Transferable that needs to be moved to server. */ Map<String, Object> getVariableMap() { return variables; }
3.68
flink_FlinkImageBuilder_setImageNamePrefix
/** * Sets the prefix name of building image. * * <p>If the name is not specified, {@link #DEFAULT_IMAGE_NAME_BUILD_PREFIX} will be used. */ public FlinkImageBuilder setImageNamePrefix(String imageNamePrefix) { this.imageNamePrefix = imageNamePrefix; return this; }
3.68
dubbo_ServiceInstancesChangedListener_accept
/** * @param event {@link ServiceInstancesChangedEvent event} * @return If service name matches, return <code>true</code>, or <code>false</code> */ private boolean accept(ServiceInstancesChangedEvent event) { return serviceNames.contains(event.getServiceName()); }
3.68
hbase_HMaster_startServiceThreads
/* * Start up all services. If any of these threads gets an unhandled exception then they just die * with a logged message. This should be fine because in general, we do not expect the master to * get such unhandled exceptions as OOMEs; it should be lightly loaded. See what HRegionServer * does if need to install a...
3.68
pulsar_Reflections_classExists
/** * Check if class exists. * * @param fqcn fully qualified class name to search for * @return true if class can be loaded from jar and false if otherwise */ public static boolean classExists(String fqcn) { try { Class.forName(fqcn); return true; } catch (ClassNotFoundException e) { ...
3.68
framework_ColorPickerPopup_setRGBTabVisible
/** * Sets the RGB tab visibility. * * @param visible * The visibility of the RGB tab */ public void setRGBTabVisible(boolean visible) { if (visible && !isTabVisible(rgbTab)) { tabs.addTab(rgbTab, "RGB", null); checkIfTabsNeeded(); } else if (!visible && isTabVisible(rgbTab)) { ...
3.68
morf_SqlUtils_delete
/** * Constructs a Delete Statement. * * <p>Usage is discouraged; this method will be deprecated at some point. Use * {@link DeleteStatement#delete(TableReference)} for preference.</p> * * @param table the database table to delete from. * @return {@link DeleteStatement} */ public static DeleteStatement delete(T...
3.68
framework_ContainerHierarchicalWrapper_addItemSetChangeListener
/* * Registers a new Item set change listener for this Container. Don't add a * JavaDoc comment here, we use the default documentation from implemented * interface. */ @Override public void addItemSetChangeListener( Container.ItemSetChangeListener listener) { if (container instanceof Container.ItemSetCh...
3.68
hadoop_CommonAuditContext_currentThreadID
/** * A thread ID which is unique for this process and shared across all * S3A clients on the same thread, even those using different FS instances. * @return a thread ID for reporting. */ public static String currentThreadID() { return Long.toString(Thread.currentThread().getId()); }
3.68
hudi_HoodieTableMetadataUtil_getFileGroupIndexFromFileId
/** * Extract the index from the fileID of a file group in the MDT partition. See {@code getFileIDForFileGroup} for the format of the fileID. * * @param fileId fileID of a file group. * @return The index of file group */ public static int getFileGroupIndexFromFileId(String fileId) { final int endIndex = getFileI...
3.68
flink_ColumnStats_merge
/** * Merges two column stats. When the stats are unknown, whatever the other are, we need return * unknown stats. The unknown definition for column stats is null. * * @param other The other column stats to merge. * @return The merged column stats. */ public ColumnStats merge(ColumnStats other, boolean isPartitio...
3.68
hibernate-validator_MethodValidationConfiguration_getConfiguredRuleSet
/** * Return an unmodifiable Set of MethodConfigurationRule that are to be * enforced based on the configuration. * * @return a set of method configuration rules based on this configuration state */ public Set<MethodConfigurationRule> getConfiguredRuleSet() { return configuredRuleSet; }
3.68
hibernate-validator_ValidatorFactoryBean_run
/** * Runs the given privileged action, using a privileged block if required. * <p> * <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary * privileged actions within HV's protection domain. */ @IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in...
3.68
rocketmq-connect_RocketMQSourceValueConverter_convertStructValue
/** * convert struct value * * @param toStruct * @param originalStruct */ private void convertStructValue(Struct toStruct, org.apache.kafka.connect.data.Struct originalStruct) { for (Field field : toStruct.schema().getFields()) { try { FieldType type = field.getSchema().getFieldType(); ...
3.68
hbase_MultiByteBuff_position
/** * Sets this MBB's position to the given value. * @return this object */ @Override public MultiByteBuff position(int position) { checkRefCount(); // Short circuit for positioning within the cur item. Mostly that is the case. if ( this.itemBeginPos[this.curItemIndex] <= position && this.itemBeginPo...
3.68
hbase_HBaseReplicationEndpoint_reportSinkSuccess
/** * Report that a {@code SinkPeer} successfully replicated a chunk of data. The SinkPeer that had a * failed replication attempt on it */ protected synchronized void reportSinkSuccess(SinkPeer sinkPeer) { badReportCounts.remove(sinkPeer.getServerName()); }
3.68
hadoop_Cluster_getBlackListedTaskTrackers
/** * Get blacklisted trackers. * * @return array of {@link TaskTrackerInfo} * @throws IOException * @throws InterruptedException */ public TaskTrackerInfo[] getBlackListedTaskTrackers() throws IOException, InterruptedException { return client.getBlacklistedTrackers(); }
3.68
hadoop_ByteArrayDecodingState_checkInputBuffers
/** * Check and ensure the buffers are of the desired length. * @param buffers the buffers to check */ void checkInputBuffers(byte[][] buffers) { int validInputs = 0; for (byte[] buffer : buffers) { if (buffer == null) { continue; } if (buffer.length != decodeLength) { throw new HadoopI...
3.68
framework_SQLContainer_updateOffsetAndCache
/** * Determines a new offset for updating the row cache. The offset is * calculated from the given index, and will be fixed to match the start of * a page, based on the value of pageLength. * * @param index * Index of the item that was requested, but not found in cache */ private void updateOffsetAnd...
3.68
hadoop_ManifestCommitterSupport_createIOStatisticsStore
/** * Create an IOStatistics Store with the standard statistics * set up. * @return a store builder preconfigured with the standard stats. */ public static IOStatisticsStoreBuilder createIOStatisticsStore() { final IOStatisticsStoreBuilder store = iostatisticsStore(); store.withSampleTracking(COUNTER_ST...
3.68
hadoop_RollbackResponse_newInstance
/** * Create new instance of a Rollback response. * @return Rollback Response. */ @Private @Unstable public static RollbackResponse newInstance() { return Records.newRecord(RollbackResponse.class); }
3.68
querydsl_ColumnMetadata_named
/** * Creates default column meta data with the given column name, but without * any type or constraint information. Use the fluent builder methods to * further configure it. * * @throws NullPointerException * if the name is null */ public static ColumnMetadata named(String name) { return new Col...
3.68
graphhopper_VectorTile_getValuesBuilderList
/** * <pre> * Dictionary encoding for values * </pre> * * <code>repeated .vector_tile.Tile.Value values = 4;</code> */ public java.util.List<vector_tile.VectorTile.Tile.Value.Builder> getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); }
3.68
hbase_PrivateCellUtil_writeFamily
/** * Writes the family from the given cell to the output stream * @param out The outputstream to which the data has to be written * @param cell The cell whose contents has to be written * @param flength the family length */ public static void writeFamily(OutputStream out, Cell cell, byte flength) throws IO...
3.68
pulsar_ResourceUsageTopicTransportManager_unregisterResourceUsageConsumer
/* * Unregister a resource owner (resource-group, tenant, namespace, topic etc). * * @param resource usage consumer */ public void unregisterResourceUsageConsumer(ResourceUsageConsumer r) { consumerMap.remove(r.getID()); }
3.68
hadoop_FindOptions_isFollowArgLink
/** * Should command line symbolic links be follows? * * @return true indicates links should be followed */ public boolean isFollowArgLink() { return this.followArgLink; }
3.68
framework_Escalator_getMaxVisibleRowCount
/** * Gets the maximum number of body rows that can be visible on the screen at * once. * * @return the maximum capacity */ public int getMaxVisibleRowCount() { return body.getMaxVisibleRowCount(); }
3.68
hudi_HoodieMetadataTableValidator_validatePartitions
/** * Compare the listing partitions result between metadata table and fileSystem. */ private List<String> validatePartitions(HoodieSparkEngineContext engineContext, String basePath) { // compare partitions List<String> allPartitionPathsFromFS = FSUtils.getAllPartitionPaths(engineContext, basePath, false); Hood...
3.68
hadoop_TaskTrackerInfo_isBlacklisted
/** * Whether tracker is blacklisted * @return true if tracker is blacklisted * false otherwise */ public boolean isBlacklisted() { return isBlacklisted; }
3.68
hadoop_PatternValidator_validate
/** * Validate the name -restricting it to the set defined in * @param name name to validate * @throws IllegalArgumentException if not a valid name */ public void validate(String name) { if (!matches(name)) { throw new IllegalArgumentException( String.format(E_INVALID_NAME, name, pattern)); } }
3.68
hbase_TakeSnapshotHandler_snapshotDisabledRegion
/** * Take a snapshot of the specified disabled region */ protected void snapshotDisabledRegion(final RegionInfo regionInfo) throws IOException { snapshotManifest.addRegion(CommonFSUtils.getTableDir(rootDir, snapshotTable), regionInfo); monitor.rethrowException(); status.setStatus("Completed referencing HFiles ...
3.68
open-banking-gateway_BaseDatasafeDbStorageService_deduceId
/** * Resolves objects' ID from path. * @param path Object path to resolve ID from. * @return ID of the object in the table. */ protected String deduceId(AbsoluteLocation<?> path) { return path.location().getWrapped().getPath().replaceAll("^/", ""); }
3.68
hbase_BackupManager_readRegionServerLastLogRollResult
/** * Get the RS log information after the last log roll from backup system table. * @return RS log info * @throws IOException exception */ public HashMap<String, Long> readRegionServerLastLogRollResult() throws IOException { return systemTable.readRegionServerLastLogRollResult(backupInfo.getBackupRootDir()); }
3.68
hadoop_MutableStat_getSnapshotTimeStamp
/** * @return Return the SampleStat snapshot timestamp. */ public long getSnapshotTimeStamp() { return snapshotTimeStamp; }
3.68
morf_DatabaseSchemaManager_ensureTableExists
/** * Ensure that a specific table is present in the DB. * * @return Any SQL required to adjust the DB to include this table. */ private Collection<? extends String> ensureTableExists(Table requiredTable, TruncationBehavior truncationBehavior, ProducerCache producerCache) { boolean dropRequired; boolean deploy...
3.68
hadoop_FederationBlock_initHtmlPageFederation
/** * Initialize the Html page. * * @param html html object */ private void initHtmlPageFederation(Block html, boolean isEnabled) { List<Map<String, String>> lists = new ArrayList<>(); // Table header TBODY<TABLE<Hamlet>> tbody = html.table("#rms").$class("cell-border").$style("width:100%").thead().tr(...
3.68
flink_DataSet_filter
/** * Applies a Filter transformation on a {@link DataSet}. * * <p>The transformation calls a {@link * org.apache.flink.api.common.functions.RichFilterFunction} for each element of the DataSet and * retains only those element for which the function returns true. Elements for which the * function returns false are...
3.68
morf_XmlDataSetProducer_getWidth
/** * @see org.alfasoftware.morf.metadata.Column#getWidth() */ @Override public int getWidth() { if (width == null) { return 0; } return width; }
3.68
hbase_VerifyReplication_main
/** * Main entry point. * @param args The command line parameters. * @throws Exception When running the job fails. */ public static void main(String[] args) throws Exception { int res = ToolRunner.run(HBaseConfiguration.create(), new VerifyReplication(), args); System.exit(res); }
3.68
framework_VComboBox_setSelectedCaption
/** * Sets the caption of selected item, if "scroll to page" is disabled. This * method is meant for internal use and may change in future versions. * * @since 7.7 * @param selectedCaption * the caption of selected item */ public void setSelectedCaption(String selectedCaption) { explicitSelectedCa...
3.68
hbase_RegionServerSpaceQuotaManager_copyQuotaSnapshots
/** * Copies the last {@link SpaceQuotaSnapshot}s that were recorded. The current view of what the * RegionServer thinks the table's utilization is. */ public Map<TableName, SpaceQuotaSnapshot> copyQuotaSnapshots() { return new HashMap<>(currentQuotaSnapshots.get()); }
3.68
hbase_TableDescriptorBuilder_setReplicationScope
/** * Sets replication scope all & only the columns already in the builder. Columns added later won't * be backfilled with replication scope. * @param scope replication scope * @return a TableDescriptorBuilder */ public TableDescriptorBuilder setReplicationScope(int scope) { Map<byte[], ColumnFamilyDescriptor> n...
3.68
framework_DropTargetExtensionConnector_removeDropListeners
/** * Removes dragenter, dragover, dragleave and drop event listeners from the * given DOM element. * * @param element * DOM element to remove event listeners from. */ private void removeDropListeners(Element element) { EventTarget target = element.cast(); target.removeEventListener(Event.DRAG...
3.68
framework_CellReference_getColumnIndexDOM
/** * Gets the index of the cell in the DOM. The difference to * {@link #getColumnIndex()} is caused by hidden columns. * * @since 7.5.0 * @return the index of the column in the DOM */ public int getColumnIndexDOM() { return columnIndexDOM; }
3.68
graphhopper_VectorTile_setUintValue
/** * <code>optional uint64 uint_value = 5;</code> */ public Builder setUintValue(long value) { bitField0_ |= 0x00000010; uintValue_ = value; onChanged(); return this; }
3.68
framework_TableSqlContainer_createTestTable
/** * (Re)creates the test table * * @param connectionPool */ private void createTestTable(JDBCConnectionPool connectionPool) { Connection conn = null; try { conn = connectionPool.reserveConnection(); Statement statement = conn.createStatement(); try { statement.executeUp...
3.68
flink_ProducerMergedPartitionFileReader_sliceBuffer
/** * Slice the read memory segment to multiple small network buffers. * * <p>Note that although the method appears to be split into multiple buffers, the sliced * buffers still share the same one actual underlying memory segment. * * @param byteBuffer the byte buffer to be sliced, it points to the underlying mem...
3.68
pulsar_EventLoopUtil_newEventLoopGroup
/** * @return an EventLoopGroup suitable for the current platform */ public static EventLoopGroup newEventLoopGroup(int nThreads, boolean enableBusyWait, ThreadFactory threadFactory) { if (Epoll.isAvailable()) { String enableIoUring = System.getProperty(ENABLE_IO_URING); // By default, io_uring w...
3.68
hadoop_ColumnRWHelper_getPutTimestamp
/** * Figures out the cell timestamp used in the Put For storing. * Will supplement the timestamp if required. Typically done for flow run * table.If we supplement the timestamp, we left shift the timestamp and * supplement it with the AppId id so that there are no collisions in the flow * run table's cells. */ p...
3.68
framework_ContainerEventProvider_setStyleNameProperty
/** * Set the property which provides the style name for the event. */ public void setStyleNameProperty(Object styleNameProperty) { this.styleNameProperty = styleNameProperty; }
3.68
zilla_ManyToOneRingBuffer_consumerHeartbeatTime
/** * {@inheritDoc} */ public long consumerHeartbeatTime() { return buffer.getLongVolatile(consumerHeartbeatIndex); }
3.68
druid_BeanTypeAutoProxyCreator_setTargetBeanType
/** * @param targetClass the targetClass to set */ public void setTargetBeanType(Class<?> targetClass) { this.targetBeanType = targetClass; }
3.68
flink_RpcEndpoint_internalCallOnStop
/** * Internal method which is called by the RpcService implementation to stop the RpcEndpoint. * * @return Future which is completed once all post stop actions are completed. If an error * occurs this future is completed exceptionally */ public final CompletableFuture<Void> internalCallOnStop() { validate...
3.68
flink_SqlNodeConvertUtils_toCatalogView
/** convert the query part of a VIEW statement into a {@link CatalogView}. */ static CatalogView toCatalogView( SqlNode query, List<SqlNode> viewFields, Map<String, String> viewOptions, String viewComment, ConvertContext context) { // Put the sql string unparse (getQuotedSqlS...
3.68
hmily_EventData_getConfig
/** * Gets config. * * @param <M> the type parameter * @return the config */ public <M extends Config> M getConfig() { return (M) config; }
3.68
flink_HybridSource_builder
/** Builder for {@link HybridSource}. */ public static <T, EnumT extends SplitEnumerator> HybridSourceBuilder<T, EnumT> builder( Source<T, ?, ?> firstSource) { HybridSourceBuilder<T, EnumT> builder = new HybridSourceBuilder<>(); return builder.addSource(firstSource); }
3.68
flink_KvStateRegistry_unregisterKvState
/** * Unregisters the KvState instance identified by the given KvStateID. * * @param jobId JobId the KvState instance belongs to * @param kvStateId KvStateID to identify the KvState instance * @param keyGroupRange Key group range the KvState instance belongs to */ public void unregisterKvState( JobID jobI...
3.68
graphhopper_EdgeBasedTarjanSCC_getSingleEdgeComponents
/** * The set of edge-keys that form their own (single-edge key) component. If {@link EdgeBasedTarjanSCC#excludeSingleEdgeComponents} * is enabled this set will be empty. */ public BitSet getSingleEdgeComponents() { return singleEdgeComponents; }
3.68
flink_TaskEventDispatcher_clearAll
/** Removes all registered event handlers. */ public void clearAll() { synchronized (registeredHandlers) { registeredHandlers.clear(); } }
3.68
morf_FieldReference_getImpliedName
/** * @see org.alfasoftware.morf.sql.element.AliasedField#getImpliedName() */ @Override public String getImpliedName() { return StringUtils.isBlank(super.getImpliedName()) ? getName() : super.getImpliedName(); }
3.68
flink_FlinkContainersSettings_haStoragePath
/** * Sets the {@code haStoragePath} and returns a reference to this Builder enabling method * chaining. * * @param haStoragePath The path for storing HA data. * @return A reference to this Builder. */ public Builder haStoragePath(String haStoragePath) { this.haStoragePath = haStoragePath; return setConfi...
3.68
graphhopper_LandmarkStorage_createLandmarks
/** * This method calculates the landmarks and initial weightings to &amp; from them. */ public void createLandmarks() { if (isInitialized()) throw new IllegalStateException("Initialize the landmark storage only once!"); // fill 'from' and 'to' weights with maximum value long maxBytes = (long) gr...
3.68
hbase_AccessControlUtil_buildGetUserPermissionsResponse
/** * Converts the permissions list into a protocol buffer GetUserPermissionsResponse */ public static GetUserPermissionsResponse buildGetUserPermissionsResponse(final List<UserPermission> permissions) { GetUserPermissionsResponse.Builder builder = GetUserPermissionsResponse.newBuilder(); for (UserPermission pe...
3.68
druid_CharsetConvert_isEmpty
/** * 判断空字符串 * * @param s String * @return boolean */ public boolean isEmpty(String s) { return s == null || "".equals(s); }
3.68
hbase_AbstractFSWALProvider_getTimestamp
/** * Split a WAL filename to get a start time. WALs usually have the time we start writing to them * with as part of their name, usually the suffix. Sometimes there will be an extra suffix as when * it is a WAL for the meta table. For example, WALs might look like this * <code>10.20.20.171%3A60020.1277499063250</c...
3.68
hbase_MapReduceBackupMergeJob_convertToDest
/** * Converts path before copying * @param p path * @param backupDirPath backup root * @return converted path */ protected Path convertToDest(Path p, Path backupDirPath) { String backupId = backupDirPath.getName(); Deque<String> stack = new ArrayDeque<String>(); String name = null; while (true...
3.68
hadoop_AbfsClientThrottlingIntercept_setAnalyzer
/** * Sets the analyzer for the intercept. * @param name Name of the analyzer. * @param abfsConfiguration The configuration. * @return AbfsClientThrottlingAnalyzer instance. */ private AbfsClientThrottlingAnalyzer setAnalyzer(String name, AbfsConfiguration abfsConfiguration) { return new AbfsClientThrottlingAnal...
3.68
hbase_CompactionLifeCycleTracker_afterExecution
/** * Called after compaction is executed by CompactSplitThread. * <p> * Requesting compaction on a region can lead to multiple compactions on different stores, so we * will pass the {@link Store} in to tell you the store we operate on. */ default void afterExecution(Store store) { }
3.68
hadoop_OBSPosixBucketUtils_fsCreateFolder
// Used to create a folder static void fsCreateFolder(final OBSFileSystem owner, final String objectName) throws ObsException { for (int retryTime = 1; retryTime < OBSCommonUtils.MAX_RETRY_TIME; retryTime++) { try { innerFsCreateFolder(owner, objectName); return; } catch (ObsExceptio...
3.68
pulsar_URIPreconditions_checkURIIfPresent
/** * Check whether the given string is a legal URI and passes the user's check. * * @param uri URI String * @param predicate User defined rule * @param errorMessage Error message * @throws IllegalArgumentException Illegal URI or failed in the user's rules */ public static void checkURIIfPresent(@Nul...
3.68
hadoop_MapHost_penalize
/** * Mark the host as penalized */ public synchronized void penalize() { state = State.PENALIZED; }
3.68
hadoop_QueueAclsInfo_getQueueName
/** * Get queue name. * * @return name */ public String getQueueName() { return queueName; }
3.68
flink_FlinkImageBuilder_setLogProperties
/** * Sets log4j properties. * * <p>Containers will use "log4j-console.properties" under flink-dist as the base configuration * of loggers. Properties specified by this method will be appended to the config file, or * overwrite the property if already exists in the base config file. */ public FlinkImageBuilder se...
3.68
dubbo_ScopeClusterInvoker_isInjvmExported
/** * Checks whether the current ScopeClusterInvoker is exported to the local JVM and returns a boolean value. * * @return true if the ScopeClusterInvoker is exported to the local JVM, false otherwise * @throws RpcException if there was an error during the invocation */ private boolean isInjvmExported() { Bool...
3.68
graphhopper_BBox_calculateIntersection
/** * Calculates the intersecting BBox between this and the specified BBox * * @return the intersecting BBox or null if not intersecting */ public BBox calculateIntersection(BBox bBox) { if (!this.intersects(bBox)) return null; double minLon = Math.max(this.minLon, bBox.minLon); double maxLon =...
3.68
querydsl_AbstractHibernateQuery_setComment
/** * Add a comment to the generated SQL. * @param comment comment * @return the current object */ @SuppressWarnings("unchecked") public Q setComment(String comment) { this.comment = comment; return (Q) this; }
3.68
dubbo_TriHttp2RemoteFlowController_stream
/** * The stream this state is associated with. */ @Override public Http2Stream stream() { return stream; }
3.68
morf_Cast_drive
/** * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser traverser) { traverser.dispatch(getExpression()); }
3.68
flink_RocksDBIncrementalRestoreOperation_restoreBaseDBFromLocalState
/** Restores RocksDB instance from local state. */ private void restoreBaseDBFromLocalState(IncrementalLocalKeyedStateHandle localKeyedStateHandle) throws Exception { KeyedBackendSerializationProxy<K> serializationProxy = readMetaData(localKeyedStateHandle.getMetaDataStateHandle()); List<Sta...
3.68
streampipes_AbstractConfigurablePipelineElementBuilder_requiredFile
/** * @param label The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in a user-friendly manner. * @param requiredFiletypes A list of required filetypes (a string marking the file extension) the element supports. * @return this */...
3.68
rocketmq-connect_DorisSinkConnector_taskConfigs
/** * Returns a set of configurations for Tasks based on the current configuration, * producing at most count configurations. * * @param maxTasks maximum number of configurations to generate * @return configurations for Tasks */ @Override public List<KeyValue> taskConfigs(int maxTasks) { log.info("Starting ta...
3.68
hadoop_AbstractMultipartUploader_close
/** * Perform any cleanup. * The upload is not required to support any operations after this. * @throws IOException problems on close. */ @Override public void close() throws IOException { }
3.68
hbase_BufferedMutatorParams_setWriteBufferPeriodicFlushTimerTickMs
/** * Set the TimerTick how often the buffer timeout if checked. * @deprecated Since 3.0.0, will be removed in 4.0.0. We use a common timer in the whole client * implementation so you can not set it any more. */ @Deprecated public BufferedMutatorParams setWriteBufferPeriodicFlushTimerTickMs(long timerTi...
3.68
hadoop_ConnectionPool_getMinSize
/** * Get the minimum number of connections in this pool. * * @return Minimum number of connections. */ protected int getMinSize() { return this.minSize; }
3.68
framework_Slot_setLayout
/** * Set the layout in which this slot is. This method must be called exactly * once at slot construction time when using the default constructor. * * The method should normally only be called by * {@link VAbstractOrderedLayout#createSlot(Widget)}. * * @since 7.6 * @param layout * the layout contai...
3.68
streampipes_BoilerpipeHTMLContentHandler_endDocument
// @Override public void endDocument() throws SAXException { flushBlock(); }
3.68
pulsar_ClientCnxIdleState_tryMarkReleasedAndCloseConnection
/** * Changes the idle-state of the connection to #{@link State#RELEASED}, This method only changes this * connection from the #{@link State#RELEASING} state to the #{@link State#RELEASED} * state, and close {@param clientCnx} if change state to #{@link State#RELEASED} success. * @return Whether change idle-stat to...
3.68
framework_GridLayoutElement_getCell
/** * Gets the cell element at the given position. * * @param row * the row coordinate * @param column * the column coordinate * @return the cell element at the given position * @throws NoSuchElementException * if no cell was found at the given position * @since 8.0.6 */ pub...
3.68
shardingsphere-elasticjob_SQLPropertiesFactory_getProperties
/** * Get SQL properties. * * @param type tracing storage database type * @return SQL properties */ public static Properties getProperties(final TracingStorageDatabaseType type) { return loadProps(String.format("%s.properties", type.getType())); }
3.68
flink_ResourceInformationReflector_getAllResourceInfos
/** Get the name and value of all resources from the {@link Resource}. */ @VisibleForTesting Map<String, Long> getAllResourceInfos(Object resource) { if (!isYarnResourceTypesAvailable) { return Collections.emptyMap(); } final Map<String, Long> externalResources = new HashMap<>(); final Object[]...
3.68
hadoop_NMTokenCache_setNMToken
/** * Sets the NMToken for node address only in the singleton obtained from * {@link #getSingleton()}. If you are using your own NMTokenCache that is * different from the singleton, use {@link #setToken(String, Token) } * * @param nodeAddr * node address (host:port) * @param token * NMToken ...
3.68
rocketmq-connect_ColumnDefinition_typeName
/** * Retrieves the designated column's database-specific type name. * * @return type name used by the database. If the column type is a user-defined type, then a * fully-qualified type name is returned. */ public String typeName() { return typeName; }
3.68
framework_CSSInjectWithColorpicker_createEditor
/** * Creates a text editor for visually editing text * * @param text * The text editor * @return */ private Component createEditor(String text) { Panel editor = new Panel("Text Editor"); editor.setWidth("580px"); VerticalLayout panelContent = new VerticalLayout(); panelContent.setSpa...
3.68
framework_ColorPickerPreviewElement_getColorFieldContainsErrors
/** * Get whether TextField in ColorPickerPreview has validation errors. * * @return true if field has errors, false otherwise * * @since 8.4 */ public boolean getColorFieldContainsErrors() { List<WebElement> caption = findElements( By.className("v-caption-v-colorpicker-preview-textfield")); r...
3.68
flink_AsynchronousFileIOChannel_handleProcessedBuffer
/** * Handles a processed <tt>Buffer</tt>. This method is invoked by the asynchronous IO worker * threads upon completion of the IO request with the provided buffer and/or an exception that * occurred while processing the request for that buffer. * * @param buffer The buffer to be processed. * @param ex The excep...
3.68
flink_TestStreamEnvironment_randomizeConfiguration
/** * This is the place for randomization the configuration that relates to DataStream API such as * ExecutionConf, CheckpointConf, StreamExecutionEnvironment. List of the configurations can be * found here {@link StreamExecutionEnvironment#configure(ReadableConfig, ClassLoader)}. All * other configuration should b...
3.68