name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
pulsar_AuthorizationProvider_allowTenantOperationAsync
/** * Check if a given <tt>role</tt> is allowed to execute a given <tt>operation</tt> on the tenant. * * @param tenantName tenant name * @param role role name * @param operation tenant operation * @param authData authenticated data of the role * @return a completable future represents check result */ default Co...
3.68
framework_MultiSelectionModelConnector_updateRowSelected
/** * Marks the given row to be selected or deselected. Returns true if the * value actually changed. * <p> * Note: If selection model is in batch select state, the row will be pinned * on select. * * @param row * row handle * @param selected * {@code true} if row should be selected; {@c...
3.68
framework_Table_setRowHeaderMode
/** * Sets the row header mode. * <p> * The mode can be one of the following ones: * <ul> * <li>{@link #ROW_HEADER_MODE_HIDDEN}: The row captions are hidden.</li> * <li>{@link #ROW_HEADER_MODE_ID}: Items Id-objects <code>toString()</code> * is used as row caption. * <li>{@link #ROW_HEADER_MODE_ITEM}: Item-objec...
3.68
flink_Tuple25_copy
/** * Shallow tuple copy. * * @return A new Tuple with the same fields as this. */ @Override @SuppressWarnings("unchecked") public Tuple25< T0, T1, T2, T3, T4, T5, T6, T7, ...
3.68
framework_VCalendarPanel_setSubmitListener
/** * The submit listener is called when the user selects a value from the * calendar either by clicking the day or selects it by keyboard. * * @param submitListener * The listener to trigger */ public void setSubmitListener(SubmitListener submitListener) { this.submitListener = submitListener; }
3.68
hbase_ActivePolicyEnforcement_getLocallyCachedPolicies
/** * Returns an unmodifiable version of the policy enforcements that were cached because they are * not in violation of their quota. */ Map<TableName, SpaceViolationPolicyEnforcement> getLocallyCachedPolicies() { return Collections.unmodifiableMap(locallyCachedPolicies); }
3.68
hbase_HMaster_createNamespace
/** * Create a new Namespace. * @param namespaceDescriptor descriptor for new Namespace * @param nonceGroup Identifier for the source of the request, a client or process. * @param nonce A unique identifier for this operation from the client or process * identified ...
3.68
flink_SubsequenceInputTypeStrategy_finishWithVarying
/** * Defines a common {@link InputTypeStrategy} for the next arguments. Given input strategy * must expect a varying number of arguments. That means that the maximum number of * arguments must not be defined. */ public InputTypeStrategy finishWithVarying(InputTypeStrategy inputTypeStrategy) { final ArgumentCou...
3.68
hadoop_QueueResourceQuotas_getConfiguredMaxResource
/* * Configured Maximum Resource */ public Resource getConfiguredMaxResource() { return getConfiguredMaxResource(NL); }
3.68
flink_BinarySegmentUtils_setBoolean
/** * set boolean from segments. * * @param segments target segments. * @param offset value offset. */ public static void setBoolean(MemorySegment[] segments, int offset, boolean value) { if (inFirstSegment(segments, offset, 1)) { segments[0].putBoolean(offset, value); } else { setBooleanMu...
3.68
hadoop_ExitUtil_disableSystemExit
/** * Disable the use of System.exit for testing. */ public static void disableSystemExit() { systemExitDisabled = true; }
3.68
hadoop_AllocationTags_getTags
/** * @return the allocation tags. */ public Set<String> getTags() { return this.tags; }
3.68
flink_RetractableTopNFunction_stateStaledErrorHandle
/** * Handle state staled error by configured lenient option. If option is true, warning log only, * otherwise a {@link RuntimeException} will be thrown. */ private void stateStaledErrorHandle() { // Skip the data if it's state is cleared because of state ttl. if (lenient) { LOG.warn(STATE_CLEARED_WA...
3.68
hadoop_AzureNativeFileSystemStore_createAzureStorageSession
/** * Establish a session with Azure blob storage based on the target URI. The * method determines whether or not the URI target contains an explicit * account or an implicit default cluster-wide account. * * @throws AzureException * @throws IOException */ private void createAzureStorageSession() throws Azur...
3.68
pulsar_StickyKeyConsumerSelector_select
/** * Select a consumer by sticky key. * * @param stickyKey sticky key * @return consumer */ default Consumer select(byte[] stickyKey) { return select(makeStickyKeyHash(stickyKey)); }
3.68
shardingsphere-elasticjob_BlockUtils_waitingShortTime
/** * Waiting short time. */ public static void waitingShortTime() { try { Thread.sleep(SLEEP_INTERVAL_MILLIS); } catch (final InterruptedException ex) { Thread.currentThread().interrupt(); } }
3.68
framework_ValueContext_getComponent
/** * Returns an {@code Optional} for the {@code Component} related to value * conversion. * * @return the optional of component */ public Optional<Component> getComponent() { return Optional.ofNullable(component); }
3.68
hbase_SplitWALManager_releaseSplitWALWorker
/** * After the worker finished the split WAL task, it will release the worker, and wake up all the * suspend procedures in the ProcedureEvent * @param worker worker which is about to release * @param scheduler scheduler which is to wake up the procedure event */ public void releaseSplitWALWorker(ServerName wor...
3.68
hbase_WindowMovingAverage_moveForwardMostRecentPosition
/** * Move forward the most recent index. * @return the most recent index */ protected int moveForwardMostRecentPosition() { int index = ++mostRecent; if (!oneRound && index == getNumberOfStatistics()) { // Back to the head of the lastN, from now on will // start to evict oldest value. oneRound = tru...
3.68
hadoop_HttpReferrerAuditHeader_withFilter
/** * Declare the fields to filter. * @param fields iterable of field names. * @return the builder */ public Builder withFilter(final Collection<String> fields) { this.filter = new HashSet<>(fields); return this; }
3.68
dubbo_Bytes_hex2bytes
/** * from hex string. * * @param str hex string. * @param off offset. * @param len length. * @return byte array. */ public static byte[] hex2bytes(final String str, final int off, int len) { if ((len & 1) == 1) { throw new IllegalArgumentException("hex2bytes: ( len & 1 ) == 1."); } if (off ...
3.68
framework_Payload_setValueType
/** * Sets the value type of this payload. * * @param valueType * type of the payload value */ public void setValueType(ValueType valueType) { this.valueType = valueType; }
3.68
hadoop_Exec_addEnvironment
/** * Add environment variables to a ProcessBuilder. * * @param pb The ProcessBuilder * @param env A map of environment variable names to values. */ public static void addEnvironment(ProcessBuilder pb, Map<String, String> env) { if (env == null) { return; } Map<String, String> processEnv =...
3.68
hbase_ZKSplitLogManagerCoordination_rescan
/** * signal the workers that a task was resubmitted by creating the RESCAN node. */ private void rescan(long retries) { // The RESCAN node will be deleted almost immediately by the // SplitLogManager as soon as it is created because it is being // created in the DONE state. This behavior prevents a buildup /...
3.68
pulsar_Schema_requireFetchingSchemaInfo
/** * Check if this schema requires fetching schema info to configure the schema. * * @return true if the schema requires fetching schema info to configure the schema, * otherwise false. */ default boolean requireFetchingSchemaInfo() { return false; }
3.68
hbase_VersionInfo_getVersionComponents
/** * Returns the version components as String objects Examples: "1.4.3" returns ["1", "4", "3"], * "4.5.6-SNAPSHOT" returns ["4", "5", "6", "-1"] "4.5.6-beta" returns ["4", "5", "6", "-2"], * "4.5.6-alpha" returns ["4", "5", "6", "-3"] "4.5.6-UNKNOW" returns ["4", "5", "6", "-4"] * @return the components of the ve...
3.68
flink_InstantiationUtil_resolveClassByName
/** * Loads a class by name from the given input stream and reflectively instantiates it. * * <p>This method will use {@link DataInputView#readUTF()} to read the class name, and then * attempt to load the class from the given ClassLoader. * * <p>The resolved class is checked to be equal to or a subtype of the giv...
3.68
flink_HiveParserQB_setTabAlias
/** * Maintain table alias -> (originTableName, qualifiedName). * * @param alias table alias * @param originTableName table name that be actually specified, may be "table", "db.table", * "catalog.db.table" * @param qualifiedName table name with full path, always is "catalog.db.table" */ public void setTabAli...
3.68
morf_SqlDialect_usesNVARCHARforStrings
/** * Indicates whether the dialect uses NVARCHAR or VARCHAR to store string values. * * @return true if NVARCHAR is used, false is VARCHAR is used. */ public boolean usesNVARCHARforStrings() { return false; }
3.68
pulsar_ClientConfiguration_setStatsInterval
/** * Set the interval between each stat info <i>(default: 60 seconds)</i> Stats will be activated with positive. * statsIntervalSeconds It should be set to at least 1 second * * @param statsInterval * the interval between each stat info * @param unit * time unit for {@code statsInterval} ...
3.68
hbase_FileMmapIOEngine_write
/** * Transfers data from the given byte buffer to file * @param srcBuffer the given byte buffer from which bytes are to be read * @param offset The offset in the file where the first byte to be written */ @Override public void write(ByteBuffer srcBuffer, long offset) throws IOException { bufferArray.write(off...
3.68
flink_ContextResolvedTable_getCatalog
/** Returns empty if {@link #isPermanent()} is false. */ public Optional<Catalog> getCatalog() { return Optional.ofNullable(catalog); }
3.68
druid_Lexer_integerValue
// QS_TODO negative number is invisible for lexer public final Number integerValue() { long result = 0; boolean negative = false; int i = mark, max = mark + bufPos; long limit; long multmin; int digit; if (charAt(mark) == '-') { negative = true; limit = Long.MIN_VALUE; ...
3.68
hadoop_SharedKeyCredentials_getHeaderValues
/** * Gets all the values for the given header in the one to many map, * performs a trimStart() on each return value. * * @param headers a one to many map of key / values representing the header values for the connection. * @param headerName the name of the header to lookup * @return an ArrayList<String> of al...
3.68
hadoop_FederationProxyProviderUtil_updateConfForFederation
/** * Updating the conf with Federation as long as certain subclusterId. * * @param conf configuration * @param subClusterId subclusterId for the conf */ public static void updateConfForFederation(Configuration conf, String subClusterId) { conf.set(YarnConfiguration.RM_CLUSTER_ID, subClusterId); /* * In...
3.68
graphhopper_GpxConversions_calcAzimuth
/** * Return the azimuth in degree based on the first tracksegment of this instruction. If this * instruction contains less than 2 points then NaN will be returned or the specified * instruction will be used if that is the finish instruction. */ public static double calcAzimuth(Instruction instruction, Instruction ...
3.68
pulsar_ManagedLedgerFactoryImpl_deleteManagedLedger
/** * Delete all managed ledger resources and metadata. */ void deleteManagedLedger(String managedLedgerName, CompletableFuture<ManagedLedgerConfig> mlConfigFuture, DeleteLedgerCallback callback, Object ctx) { // Read the managed ledger metadata from store asyncGetManagedLedgerInfo(ma...
3.68
hadoop_AppCollectorData_isStamped
/** * Returns if the collector data has been stamped by the RM with a RM cluster * timestamp and a version number. * * @return true if RM has already assigned a timestamp for this collector. * Otherwise, it means the RM has not recognized the existence of this * collector. */ public boolean isStamped() { retur...
3.68
flink_CopyOnWriteSkipListStateMap_putValue
/** * Update or insert the value for the given node. * * @param currentNode the node to put value for. * @param value the value to put. * @param returnOldState whether to return the old state. * @return the old state if it exists and {@code returnOldState} is true, or else null. */ private S putValue(long curren...
3.68
framework_ReflectTools_convertPrimitiveType
/** * @since 7.4 */ public static Class<?> convertPrimitiveType(Class<?> type) { // Gets the return type from get method if (type.isPrimitive()) { if (type.equals(Boolean.TYPE)) { type = Boolean.class; } else if (type.equals(Integer.TYPE)) { type = Integer.class; ...
3.68
flink_AllWindowedStream_maxBy
/** * Applies an aggregation that gives the maximum element of the pojo data stream by the given * field expression for every window. A field expression is either the name of a public field or * a getter method with parentheses of the {@link DataStream}S underlying type. A dot can be * used to drill down into objec...
3.68
hadoop_MappingRuleResult_getResult
/** * Returns the type of the result. * @return the type of the result. */ public MappingRuleResultType getResult() { return result; }
3.68
hbase_SnapshotDescriptionUtils_isExpiredSnapshot
/** * Method to check whether TTL has expired for specified snapshot creation time and snapshot ttl. * NOTE: For backward compatibility (after the patch deployment on HMaster), any snapshot with ttl * 0 is to be considered as snapshot to keep FOREVER. Default ttl value specified by * {@link HConstants#DEFAULT_SNAPS...
3.68
hadoop_SystemErasureCodingPolicies_getByName
/** * Get a policy by policy name. * @return ecPolicy, or null if not found */ public static ErasureCodingPolicy getByName(String name) { return SYSTEM_POLICIES_BY_NAME.get(name); }
3.68
hbase_MultiByteBuff_reset
/** * Similar to {@link ByteBuffer}.reset(), ensures that this MBB is reset back to last marked * position. * @return This MBB */ @Override public MultiByteBuff reset() { checkRefCount(); // when the buffer is moved to the next one.. the reset should happen on the previous marked // item and the new one shoul...
3.68
hadoop_AbfsConfiguration_getClientCorrelationId
/** * Gets client correlation ID provided in config. * @return Client Correlation ID config */ public String getClientCorrelationId() { return clientCorrelationId; }
3.68
hbase_UserProvider_setUserProviderForTesting
/** * Set the {@link UserProvider} in the given configuration that should be instantiated * @param conf to update * @param provider class of the provider to set */ public static void setUserProviderForTesting(Configuration conf, Class<? extends UserProvider> provider) { conf.set(USER_PROVIDER_CONF_KEY, prov...
3.68
flink_TableConnectorUtils_generateRuntimeName
/** Returns the table connector name used for logging and web UI. */ public static String generateRuntimeName(Class<?> clazz, String[] fields) { String className = clazz.getSimpleName(); if (null == fields) { return className + "(*)"; } else { return className + "(" + String.join(", ", field...
3.68
hbase_SingleColumnValueExcludeFilter_filterRowCells
// Here we remove from row all key values from testing column @Override public void filterRowCells(List<Cell> kvs) { Iterator<? extends Cell> it = kvs.iterator(); while (it.hasNext()) { // If the current column is actually the tested column, // we will skip it instead. if (CellUtil.matchingColumn(it.nex...
3.68
hudi_SchemaChangeUtils_applyTableChange2Type
/** * Apply all the DDL update operations to type to produce a new internalSchema. * do not call this method directly. expose this method only for UT. * * @param type origin internalSchema. * @param updates a wrapper class for all the DDL update operations. * @return a new internalSchema. */ private static Type ...
3.68
framework_BrowserWindowOpener_extend
/** * Add this extension to the {@code EventTrigger}. * * @param eventTrigger * the trigger to attach this extension to * * @since 8.4 */ public void extend(EventTrigger eventTrigger) { super.extend(eventTrigger.getConnector()); getState().partInformation = eventTrigger.getPartInformation(); }
3.68
flink_CopyOnWriteStateMap_selectActiveTable
/** * Select the sub-table which is responsible for entries with the given hash code. * * @param hashCode the hash code which we use to decide about the table that is responsible. * @return the index of the sub-table that is responsible for the entry with the given hash * code. */ private StateMapEntry<K, N, ...
3.68
hbase_HttpServer_isAlive
/** * Test for the availability of the web server * @return true if the web server is started, false otherwise */ public boolean isAlive() { return webServer != null && webServer.isStarted(); }
3.68
framework_UidlWriter_writePerformanceData
/** * Adds the performance timing data (used by TestBench 3) to the UIDL * response. * * @throws IOException */ private void writePerformanceData(UI ui, Writer writer) throws IOException { if (!ui.getSession().getService().getDeploymentConfiguration() .isProductionMode()) { writer.write(Str...
3.68
framework_DesignContext_getShouldWriteDataDelegate
/** * Gets the delegate that determines whether the container data of a * component should be written out. * * @since 7.5.0 * @see #setShouldWriteDataDelegate(ShouldWriteDataDelegate) * @see #shouldWriteChildren(Component, Component) * @return the shouldWriteDataDelegate the currently use delegate */ public Sho...
3.68
flink_RestfulGateway_stopWithSavepoint
/** * Stops the job with a savepoint, returning a future that completes when the operation is * started. * * @param operationKey key of the operation, for deduplication * @param targetDirectory Target directory for the savepoint. * @param formatType Binary format of the savepoint. * @param savepointMode context ...
3.68
hadoop_ContainerServiceRecordProcessor_createAAAAInfo
/** * Creates a container AAAA (IPv6) record descriptor. * @param record the service record * @throws Exception if the descriptor creation yields an issue. */ protected void createAAAAInfo(ServiceRecord record) throws Exception { AAAAContainerRecordDescriptor recordInfo = new AAAAContainerRecordDescript...
3.68
querydsl_AbstractMySQLQuery_forceIndex
/** * You can use FORCE INDEX, which acts like USE INDEX (index_list) but with the addition that a * table scan is assumed to be very expensive. In other words, a table scan is used only if there * is no way to use one of the given indexes to find rows in the table. * * @param indexes index names * @return the cu...
3.68
hbase_RowCountEndpoint_getRowCount
/** * Returns a count of the rows in the region where this coprocessor is loaded. */ @Override public void getRowCount(RpcController controller, CountRequest request, RpcCallback<CountResponse> done) { Scan scan = new Scan(); scan.setFilter(new FirstKeyOnlyFilter()); CountResponse response = null; InternalS...
3.68
hbase_VersionResource_getVersionResource
/** * Dispatch <tt>/version/rest</tt> to self. */ @Path("rest") public VersionResource getVersionResource() { return this; }
3.68
flink_KubernetesUtils_createConfigMapIfItDoesNotExist
/** * Creates a config map with the given name if it does not exist. * * @param flinkKubeClient to use for creating the config map * @param configMapName name of the config map * @param clusterId clusterId to which the map belongs * @throws FlinkException if the config map could not be created */ public static v...
3.68
framework_VCalendar_updateWeekView
/** * Re-renders the whole week view. * * @param scroll * The amount of pixels to scroll the week view * @param today * Todays date * @param daysInMonth * How many days are there in the month * @param firstDayOfWeek * The first day of the week * @param events * ...
3.68
hbase_HBaseTestingUtility_createMockRegionServerService
/** * Create a stubbed out RegionServerService, mainly for getting FS. This version is used by * TestOpenRegionHandler */ public RegionServerServices createMockRegionServerService(ServerName name) throws IOException { final MockRegionServerServices rss = new MockRegionServerServices(getZooKeeperWatcher(), name); ...
3.68
hbase_StoreFileWriter_withFilePath
/** * Use either this method or {@link #withOutputDir}, but not both. * @param filePath the StoreFile path to write * @return this (for chained invocation) */ public Builder withFilePath(Path filePath) { Preconditions.checkNotNull(filePath); this.filePath = filePath; return this; }
3.68
hadoop_AzureFileSystemInstrumentation_directoryCreated
/** * Indicate that we just created a directory through WASB. */ public void directoryCreated() { numberOfDirectoriesCreated.incr(); }
3.68
flink_HashPartition_getPartitionNumber
/** * Gets the partition number of this partition. * * @return This partition's number. */ public int getPartitionNumber() { return this.partitionNumber; }
3.68
hibernate-validator_TokenIterator_hasMoreInterpolationTerms
/** * Called to advance the next interpolation term of the message descriptor. This message can be called multiple times. * Once it returns {@code false} all interpolation terms have been processed and {@link #getInterpolatedMessage()} * can be called. * * @return Returns {@code true} in case there are more messag...
3.68
pulsar_FieldParser_stringToDouble
/** * Converts String to Double. * * @param val * The String to be converted. * @return The converted Double value. */ public static Double stringToDouble(String val) { String v = trim(val); if (io.netty.util.internal.StringUtil.isNullOrEmpty(v)) { return null; } else { retu...
3.68
hbase_SpaceQuotaSnapshot_toSpaceQuotaSnapshot
// ProtobufUtil is in hbase-client, and this doesn't need to be public. public static SpaceQuotaSnapshot toSpaceQuotaSnapshot(QuotaProtos.SpaceQuotaSnapshot proto) { return new SpaceQuotaSnapshot(SpaceQuotaStatus.toStatus(proto.getQuotaStatus()), proto.getQuotaUsage(), proto.getQuotaLimit()); }
3.68
rocketmq-connect_ConnectUtil_initDefaultLitePullConsumer
/** * init default lite pull consumer * * @param connectConfig * @return * @throws MQClientException */ public static DefaultLitePullConsumer initDefaultLitePullConsumer(WorkerConfig connectConfig, boolean autoCommit) { DefaultLitePullConsumer consumer = null; if (Objects.isNull(consumer)) { if (S...
3.68
streampipes_ExtractorBase_getText
/** * Extracts text from the given {@link TextDocument} object. * * @param doc The {@link TextDocument}. * @return The extracted text. * @throws BoilerpipeProcessingException */ public String getText(TextDocument doc) throws BoilerpipeProcessingException { process(doc); return doc.getContent(); }
3.68
flink_OneInputTransformation_getOperatorFactory
/** Returns the {@code StreamOperatorFactory} of this Transformation. */ public StreamOperatorFactory<OUT> getOperatorFactory() { return operatorFactory; }
3.68
flink_HadoopDataInputStream_getHadoopInputStream
/** * Gets the wrapped Hadoop input stream. * * @return The wrapped Hadoop input stream. */ public org.apache.hadoop.fs.FSDataInputStream getHadoopInputStream() { return fsDataInputStream; }
3.68
framework_EditorConnector_getRowKey
/** * Returns the key of the given data row. * * @param row * the row * @return the row key */ protected static String getRowKey(JsonObject row) { return row.getString(DataCommunicatorConstants.KEY); }
3.68
framework_CheckBoxElement_isChecked
/** * Checks if the checkbox is checked. * * @return <code>true</code> if the checkbox is checked, <code>false</code> * otherwise. */ public boolean isChecked() { return getInputElement().isSelected(); }
3.68
hbase_ShadedAccessControlUtil_toUserTablePermissions
/** * Convert a ListMultimap&lt;String, TablePermission&gt; where key is username to a shaded * protobuf UserPermission * @param perm the list of user and table permissions * @return the protobuf UserTablePermissions */ public static AccessControlProtos.UsersAndPermissions toUserTablePermissions(ListMultimap<Str...
3.68
flink_SSLUtils_createRestServerSSLEngineFactory
/** * Creates a {@link SSLHandlerFactory} to be used by the REST Servers. * * @param config The application configuration. */ public static SSLHandlerFactory createRestServerSSLEngineFactory(final Configuration config) throws Exception { ClientAuth clientAuth = SecurityOptions.isRestSSLAuthe...
3.68
rocketmq-connect_ConnectUtil_flatOffsetTopics
/** Flat topics offsets */ public static Map<MessageQueue, TopicOffset> flatOffsetTopics( WorkerConfig config, List<String> topics) { Map<MessageQueue, TopicOffset> messageQueueTopicOffsets = Maps.newConcurrentMap(); offsetTopics(config, topics).values() .forEach( offsetTopic -> { ...
3.68
flink_RpcEndpoint_getRpcService
/** * Gets the endpoint's RPC service. * * @return The endpoint's RPC service */ public RpcService getRpcService() { return rpcService; }
3.68
framework_ColorUtil_getRGBAPatternColor
/** * Parses {@link Color} from matched RGBA {@link Matcher}. * * @param matcher * {@link Matcher} matching RGBA pattern with named regex groups * {@code red}, {@code green}, {@code blue}, and {@code alpha} * @return {@link Color} parsed from {@link Matcher} */ public static Color getRGBAPa...
3.68
dubbo_NettyChannel_getOrAddChannel
/** * Get dubbo channel by netty channel through channel cache. * Put netty channel into it if dubbo channel don't exist in the cache. * * @param ch netty channel * @param url * @param handler dubbo handler that contain netty's handler * @return */ static NettyChannel getOrAddChannel(Channel ch, URL url, C...
3.68
flink_ColumnReferenceFinder_findReferencedColumn
/** * Find referenced column names that derive the computed column. * * @param columnName the name of the column * @param schema the schema contains the computed column definition * @return the referenced column names */ public static Set<String> findReferencedColumn(String columnName, ResolvedSchema schema) { ...
3.68
streampipes_AbstractProcessingElementBuilder_supportedProtocols
/** * Assigns supported communication/transport protocols to the pipeline elements that can be handled at runtime (e.g., * Kafka or JMS). * * @param protocols A list of supported {@link org.apache.streampipes.model.grounding.TransportProtocol}s. * Use {@link org.apache.streampipes.sdk.helpers.Supp...
3.68
flink_MemorySegment_getDoubleLittleEndian
/** * Reads a double-precision floating point value (64bit, 8 bytes) from the given position, in * little endian byte order. This method's speed depends on the system's native byte order, and * it is possibly slower than {@link #getDouble(int)}. For most cases (such as transient storage * in memory or serialization...
3.68
hbase_StorageClusterStatusModel_setRegions
/** * @param regions the total number of regions served by the cluster */ public void setRegions(int regions) { this.regions = regions; }
3.68
hudi_BaseConsistentHashingBucketClusteringPlanStrategy_buildMergeClusteringGroup
/** * Generate clustering group according to merge rules * * @param identifier bucket identifier * @param fileSlices file slice candidates to be built as merge clustering groups * @param mergeSlot number of bucket allowed to be merged, in order to guarantee the lower bound of the total number of bucket * @return...
3.68
hbase_MemStoreFlusher_flushOneForGlobalPressure
/** * The memstore across all regions has exceeded the low water mark. Pick one region to flush and * flush it synchronously (this is called from the flush thread) * @return true if successful */ private boolean flushOneForGlobalPressure(FlushType flushType) { SortedMap<Long, Collection<HRegion>> regionsBySize = ...
3.68
hadoop_HsController_aboutPage
/** * @return the page about the current server. */ protected Class<? extends View> aboutPage() { return HsAboutPage.class; }
3.68
framework_Slot_setAlignment
/** * Sets how the widget is aligned inside the slot. * * @param alignment * The alignment inside the slot */ public void setAlignment(AlignmentInfo alignment) { this.alignment = alignment; if (alignment != null && alignment.isHorizontalCenter()) { addStyleName(ALIGN_CLASS_PREFIX + "cen...
3.68
hbase_FanOutOneBlockAsyncDFSOutputSaslHelper_wrapAndSetPayload
/** * Create a ByteString from byte array without copying (wrap), and then set it as the payload * for the builder. * @param builder builder for HDFS DataTransferEncryptorMessage. * @param payload byte array of payload. */ static void wrapAndSetPayload(DataTransferEncryptorMessageProto.Builder builder, byte[] pa...
3.68
hudi_StreamerUtil_getLockConfig
/** * Get the lockConfig if required, empty {@link Option} otherwise. */ public static Option<HoodieLockConfig> getLockConfig(Configuration conf) { if (OptionsResolver.isLockRequired(conf) && !conf.containsKey(HoodieLockConfig.LOCK_PROVIDER_CLASS_NAME.key())) { // configure the fs lock provider by default r...
3.68
morf_DatabaseSchemaManager_tableCache
/** * Returns the cached set of tables in the database. */ private Map<String, Table> tableCache(ProducerCache producerCache) { if (!tablesLoaded.get()) { cacheTables(producerCache.get().getSchema().tables()); } return tables.get(); }
3.68
hadoop_OBSBlockOutputStream_clearActiveBlock
/** * Clear the active block. */ private synchronized void clearActiveBlock() { if (activeBlock != null) { LOG.debug("Clearing active block"); } activeBlock = null; }
3.68
dubbo_LoggerFactory_getLogger
/** * Get logger provider * * @param key the returned logger will be named after key * @return logger provider */ public static Logger getLogger(String key) { return ConcurrentHashMapUtils.computeIfAbsent( LOGGERS, key, k -> new FailsafeLogger(loggerAdapter.getLogger(k))); }
3.68
framework_VComboBox_getTotalSuggestionsIncludingNullSelectionItem
/** * Gets the total number of suggestions, including the possible null * selection item, if it should be visible. * * @return total number of suggestions with null selection items */ private int getTotalSuggestionsIncludingNullSelectionItem() { return getTotalSuggestions() + (getNullSelectionItemS...
3.68
morf_AbstractSqlDialectTest_expectedDateLiteral
/** * @return The expected date literal. */ protected String expectedDateLiteral() { return "DATE '2010-01-02'"; }
3.68
framework_VUpload_onSubmitComplete
/** * Called by JSNI (hooked via {@link #onloadstrategy}) */ private void onSubmitComplete() { /* Needs to be run dereferred to avoid various browser issues. */ Scheduler.get().scheduleDeferred(() -> { if (submitted) { if (client != null) { if (t != null) { ...
3.68
flink_MathUtils_divideRoundUp
/** * Divide and rounding up to integer. E.g., divideRoundUp(3, 2) returns 2, divideRoundUp(0, 3) * returns 0. Note that this method does not support negative values. * * @param dividend value to be divided by the divisor * @param divisor value by which the dividend is to be divided * @return the quotient roundin...
3.68
hadoop_TimelineEntity_getRelatedEntities
/** * Get the related entities * * @return the related entities */ public Map<String, Set<String>> getRelatedEntities() { return relatedEntities; }
3.68
hadoop_ByteBufferDecodingState_convertToByteArrayState
/** * Convert to a ByteArrayDecodingState when it's backed by on-heap arrays. */ ByteArrayDecodingState convertToByteArrayState() { int[] inputOffsets = new int[inputs.length]; int[] outputOffsets = new int[outputs.length]; byte[][] newInputs = new byte[inputs.length][]; byte[][] newOutputs = new byte[outputs...
3.68