name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hadoop_FSBuilder_mustDouble
/** * Set mandatory double parameter for the Builder. * * @param key key. * @param value value. * @return generic type B. * @see #opt(String, String) */ default B mustDouble(@Nonnull String key, double value) { return must(key, Double.toString(value)); }
3.68
dubbo_DefaultServiceRestMetadataResolver_supportsPathVariableType
/** * Supports the type of parameter or not, based by {@link Converter}'s conversion feature * * @param parameterType the type of parameter * @return if supports, this method will return <code>true</code>, or <code>false</code> */ private boolean supportsPathVariableType(TypeMirror parameterType) { String clas...
3.68
hadoop_StringValueMax_addNextValue
/** * add a value to the aggregator * * @param val * a string. * */ public void addNextValue(Object val) { String newVal = val.toString(); if (this.maxVal == null || this.maxVal.compareTo(newVal) < 0) { this.maxVal = newVal; } }
3.68
hbase_Client_getHttpClient
/** Returns the wrapped HttpClient */ public HttpClient getHttpClient() { return httpClient; }
3.68
pulsar_KubernetesSecretsProviderConfigurator_doAdmissionChecks
// The secret object should be of type Map<String, String> and it should contain "id" and "key" @Override public void doAdmissionChecks(AppsV1Api appsV1Api, CoreV1Api coreV1Api, String jobNamespace, String jobName, Function.FunctionDetails functionDetails) { if (!StringUtils.isEmpty(fu...
3.68
flink_PythonEnvUtils_createSymbolicLink
/** * Creates symbolLink in working directory for pyflink lib. * * @param libPath the pyflink lib file path. * @param symbolicLinkPath the symbolic link to pyflink lib. */ private static void createSymbolicLink( java.nio.file.Path libPath, java.nio.file.Path symbolicLinkPath) throws IOException { try {...
3.68
hadoop_FederationUtil_getVersion
/** * Fetch the Hadoop version string for this jar. * * @return Hadoop version string, e.g., 3.0.1. */ public static String getVersion() { return VersionInfo.getVersion(); }
3.68
framework_SpacerVisibilityChangedEvent_isVisible
/** * Gets whether the spacer element is displayed. * * @return {@code true} if the spacer element is shown, {@code false} if the * spacer element is hidden */ public boolean isVisible() { return visible; }
3.68
starts_Attribute_put
/** * Writes all the attributes of this attribute list in the given byte * vector. * * @param cw * the class writer to be used to convert the attributes into * byte arrays, with the {@link #write write} method. * @param code * the bytecode of the method corresponding to these co...
3.68
framework_VTooltip_getUniqueId
/** * Returns the unique id of the tooltip element. * * @return String containing the unique id of the tooltip, which always has * a value */ public String getUniqueId() { return uniqueId; }
3.68
hadoop_BondedS3AStatisticsContext_incrementGauge
/** * Increment a specific gauge. * <p> * No-op if not defined. * @param op operation * @param count increment value * @throws ClassCastException if the metric is of the wrong type */ @Override public void incrementGauge(Statistic op, long count) { getInstrumentation().incrementGauge(op, count); }
3.68
framework_ApplicationConnection_getHeartbeat
/** * Returns the hearbeat instance. */ public Heartbeat getHeartbeat() { return heartbeat; }
3.68
flink_SingleInputUdfOperator_withForwardedFields
/** * Adds semantic information about forwarded fields of the user-defined function. The forwarded * fields information declares fields which are never modified by the function and which are * forwarded at the same position to the output or unchanged copied to another position in the * output. * * <p>Fields that ...
3.68
flink_Time_milliseconds
/** Creates a new {@link Time} that represents the given number of milliseconds. */ public static Time milliseconds(long milliseconds) { return of(milliseconds, TimeUnit.MILLISECONDS); }
3.68
dubbo_InjvmExporterListener_unexported
/** * Overrides the unexported method to remove the given exporter from the exporters ConcurrentHashMap, * <p> * and to notify all registered ExporterChangeListeners of the unexport event. * * @param exporter The Exporter instance that has been unexported. * @throws RpcException If there is an error during the un...
3.68
hbase_RegexStringComparator_setCharset
/** * Specifies the {@link Charset} to use to convert the row key to a String. * <p> * The row key needs to be converted to a String in order to be matched against the regular * expression. This method controls which charset is used to do this conversion. * <p> * If the row key is made of arbitrary bytes, the cha...
3.68
rocketmq-connect_PositionStorageWriter_call
/** * Computes a result, or throws an exception if unable to do so. * * @return computed result * @throws Exception if unable to compute a result */ @Override public Void call() { try { // has been canceled if (flushId != currentFlushId) { return null; } positionMana...
3.68
hbase_RequestConverter_buildGetRequest
/** * Create a protocol buffer GetRequest for a client Get * @param regionName the name of the region to get * @param get the client Get * @return a protocol buffer GetRequest */ public static GetRequest buildGetRequest(final byte[] regionName, final Get get) throws IOException { GetRequest.Builder buil...
3.68
graphhopper_OSMNodeData_getNodeTagCapacity
/** * @return the number of nodes for which we store tags */ public long getNodeTagCapacity() { return nodeKVStorage.getCapacity(); }
3.68
hudi_CleanPlanner_getDeletePaths
/** * Returns files to be cleaned for the given partitionPath based on cleaning policy. */ public Pair<Boolean, List<CleanFileInfo>> getDeletePaths(String partitionPath, Option<HoodieInstant> earliestCommitToRetain) { HoodieCleaningPolicy policy = config.getCleanerPolicy(); Pair<Boolean, List<CleanFileInfo>> dele...
3.68
morf_AbstractSqlDialectTest_testCastStringLiteralToInteger
/** * Tests the output of a cast to a date. */ @Test public void testCastStringLiteralToInteger() { String result = testDialect.getSqlFrom(new Cast(new FieldLiteral("1234567890"), DataType.INTEGER, 10)); assertEquals(expectedStringLiteralToIntegerCast(), result); }
3.68
flink_BasicTypeInfo_shouldAutocastTo
/** * Returns whether this type should be automatically casted to the target type in an arithmetic * operation. */ @PublicEvolving public boolean shouldAutocastTo(BasicTypeInfo<?> to) { for (Class<?> possibleTo : possibleCastTargetTypes) { if (possibleTo.equals(to.getTypeClass())) { return tr...
3.68
framework_AbstractInMemoryContainer_addListener
// ItemSetChangeNotifier /** * @deprecated As of 7.0, replaced by * {@link #addItemSetChangeListener(Container.ItemSetChangeListener)} */ @Deprecated @Override public void addListener(Container.ItemSetChangeListener listener) { addItemSetChangeListener(listener); }
3.68
hadoop_RenameFilesStage_getFilesCommitted
/** * Get the list of files committed. * Access is not synchronized. * @return direct access to the list of files. */ public synchronized List<FileEntry> getFilesCommitted() { return filesCommitted; }
3.68
flink_ResolvedSchema_of
/** Shortcut for a resolved schema of only columns. */ public static ResolvedSchema of(Column... columns) { return ResolvedSchema.of(Arrays.asList(columns)); }
3.68
dubbo_StringUtils_isNotBlank
/** * is not blank string. * * @param cs source string. * @return is not blank. */ public static boolean isNotBlank(CharSequence cs) { return !isBlank(cs); }
3.68
hudi_DataSourceUtils_dropDuplicates
/** * Drop records already present in the dataset. * * @param jssc JavaSparkContext * @param incomingHoodieRecords HoodieRecords to deduplicate * @param writeConfig HoodieWriteConfig */ @SuppressWarnings("unchecked") public static JavaRDD<HoodieRecord> dropDuplicates(JavaSparkContext jssc, JavaRDD<HoodieRecord> i...
3.68
hadoop_ProducerConsumer_run
/** * The worker continuously gets an item from input queue, process it and * then put the processed result into output queue. It waits to get an item * from input queue if there's none. */ public void run() { while (true) { WorkRequest<T> work; try { work = inputQueue.take(); } catch (Interrup...
3.68
hbase_ArrayBackedTag_getValueLength
/** Returns Length of actual tag bytes within the backed buffer */ @Override public int getValueLength() { return this.length - INFRASTRUCTURE_SIZE; }
3.68
pulsar_AuthorizationService_allowTopicOperationAsync
/** * Grant authorization-action permission on a topic to the given client. * * @param topicName * @param operation * @param role * @param authData * additional authdata in json for targeted authorization provider * @return IllegalArgumentException when namespace not found * @throws IllegalStateExce...
3.68
flink_StreamExecutionEnvironment_createLocalEnvironment
/** * Creates a {@link LocalStreamEnvironment}. The local execution environment will run the * program in a multi-threaded fashion in the same JVM as the environment was created in. * * @param configuration Pass a custom configuration into the cluster * @return A local execution environment with the specified para...
3.68
hbase_TBoundedThreadPoolServer_shutdownServer
/** * Loop until {@link ExecutorService#awaitTermination} finally does return without an interrupted * exception. If we don't do this, then we'll shut down prematurely. We want to let the executor * service clear its task queue, closing client sockets appropriately. */ private void shutdownServer() { executorServ...
3.68
framework_HierarchicalContainer_addFilteredChild
/** * Adds the given childItemId as a filteredChildren for the parentItemId and * sets it filteredParent. * * @param parentItemId * @param childItemId */ private void addFilteredChild(Object parentItemId, Object childItemId) { LinkedList<Object> parentToChildrenList = filteredChildren .get(parentI...
3.68
framework_Escalator_getHeader
/** * Returns the row container for the header in this Escalator. * * @return the header. Never <code>null</code> */ public RowContainer getHeader() { return header; }
3.68
flink_TableChange_getNewColumnName
/** Returns the new column name after renaming the column name. */ public String getNewColumnName() { return newColumn.getName(); }
3.68
hbase_KeyValueUtil_write
/** * Write out a KeyValue in the manner in which we used to when KeyValue was a Writable. * @return Length written on stream * @see #create(DataInput) for the inverse function */ public static long write(final KeyValue kv, final DataOutput out) throws IOException { // This is how the old Writables write used to ...
3.68
dubbo_AbstractCluster_doInvoke
/** * The only purpose is to build a interceptor chain, so the cluster related logic doesn't matter. * Use ClusterInvoker<T> to replace AbstractClusterInvoker<T> in the future. */ @Override protected Result doInvoke(Invocation invocation, List<Invoker<T>> invokers, LoadBalance loadbalance) throws RpcExceptio...
3.68
hudi_BaseHoodieTableServiceClient_getPendingRollbackInfos
/** * Fetch map of pending commits to be rolled-back to {@link HoodiePendingRollbackInfo}. * * @param metaClient instance of {@link HoodieTableMetaClient} to use. * @return map of pending commits to be rolled-back instants to Rollback Instant and Rollback plan Pair. */ protected Map<String, Option<HoodiePendingRol...
3.68
hadoop_ListResultEntrySchema_contentLength
/** * Get the contentLength value. * * @return the contentLength value */ public Long contentLength() { return contentLength; }
3.68
hadoop_YarnRegistryViewForProviders_deleteComponent
/** * Delete a component. * @param containerId component name * @throws IOException */ public void deleteComponent(ComponentInstanceId instanceId, String containerId) throws IOException { String path = RegistryUtils.componentPath( user, serviceClass, instanceName, containerId); LOG.info(instance...
3.68
flink_StreamExecutionEnvironment_registerTypeWithKryoSerializer
/** * Registers the given Serializer via its class as a serializer for the given type at the * KryoSerializer. * * @param type The class of the types serialized with the given serializer. * @param serializerClass The class of the serializer to use. */ @SuppressWarnings("rawtypes") public void registerTypeWithKryo...
3.68
dubbo_RestRPCInvocationUtil_createParseContext
/** * create parseMethodArgs context * * @param request * @param originRequest * @param originResponse * @param restMethodMetadata * @return */ private static ProviderParseContext createParseContext( RequestFacade request, Object originRequest, Object originResponse, RestMethodMetadata restMethodMetadat...
3.68
hadoop_Chain_joinAllThreads
// wait till all threads finish void joinAllThreads() throws IOException, InterruptedException { for (Thread thread : threads) { thread.join(); } Throwable th = getThrowable(); if (th != null) { if (th instanceof IOException) { throw (IOException) th; } else if (th instanceof InterruptedExcept...
3.68
hadoop_LoadManifestsStage_coalesceDirectories
/** * Coalesce all directories and clear the entry in the manifest. * There's only ever one writer at a time, which it is hoped reduces * contention. before the lock is acquired: if there are no new directories, * the write lock is never needed. * @param manifest manifest to process * @return the number of direct...
3.68
framework_GridLayout_writeEmptyColsAndRows
/** * Fills in the design with rows and empty columns. This needs to be done * for empty {@link GridLayout}, because there's no other way to serialize * info about number of columns and rows if there are absolutely no * components in the {@link GridLayout} * * @param design */ private void writeEmptyColsAndRows(...
3.68
framework_LegacyLocatorStrategy_getElementByPathStartingAt
/** * {@inheritDoc} */ @Override public Element getElementByPathStartingAt(String path, Element baseElement) { /* * Path is of type "targetWidgetPath#componentPart" or * "targetWidgetPath". */ String[] parts = path.split(LegacyLocatorStrategy.SUBPART_SEPARATOR, 2); String widgetPath...
3.68
hbase_MiniZooKeeperCluster_setupTestEnv
// / XXX: From o.a.zk.t.ClientBase private static void setupTestEnv() { // during the tests we run with 100K prealloc in the logs. // on windows systems prealloc of 64M was seen to take ~15seconds // resulting in test failure (client timeout on first session). // set env and directly in order to handle static i...
3.68
hbase_ClusterId_toString
/** * @see java.lang.Object#toString() */ @Override public String toString() { return this.id; }
3.68
morf_ColumnTypeBean_isNullable
/** * @return the nullable */ @Override public boolean isNullable() { return nullable; }
3.68
hbase_UserProvider_getCurrent
/** * Return the current user within the current execution context * @throws IOException if the user cannot be loaded */ public User getCurrent() throws IOException { return User.getCurrent(); }
3.68
framework_VComboBox_setSuggestions
/** * Sets the suggestions rendered in the menu. * * @param suggestions * The suggestions to be rendered in the menu */ public void setSuggestions(Collection<ComboBoxSuggestion> suggestions) { if (enableDebug) { debug("VComboBox.SM: setSuggestions(" + suggestions + ")"); } clearItem...
3.68
hadoop_OBSFileSystem_getFileStatus
/** * Return a file status object that represents the path. * * @param f the path we want information from * @return a FileStatus object * @throws FileNotFoundException when the path does not exist * @throws IOException on other problems */ @Override public FileStatus getFileStatus(final Path f) th...
3.68
hadoop_Lz4Codec_getDefaultExtension
/** * Get the default filename extension for this kind of compression. * * @return <code>.lz4</code>. */ @Override public String getDefaultExtension() { return CodecConstants.LZ4_CODEC_EXTENSION; }
3.68
hbase_ParseFilter_checkForAnd
/** * Checks if the current index of filter string we are on is the beginning of the keyword 'AND' * <p> * @param filterStringAsByteArray filter string given by the user * @param indexOfAnd index at which an 'A' was read * @return true if the keyword 'AND' is at the current index */ public static boo...
3.68
flink_OptimizerNode_computeOutputEstimates
/** * Causes this node to compute its output estimates (such as number of rows, size in bytes) * based on the inputs and the compiler hints. The compiler hints are instantiated with * conservative default values which are used if no other values are provided. Nodes may access * the statistics to determine relevant ...
3.68
framework_ServiceInitEvent_getAddedDependencyFilters
/** * Gets an unmodifiable list of all dependency filters that have been added * for the service. * * @return the current list of added dependency filters. * * @since 8.1 */ public List<DependencyFilter> getAddedDependencyFilters() { return Collections.unmodifiableList(addedDependencyFilters); }
3.68
flink_RocksDBKeyedStateBackend_dispose
/** Should only be called by one thread, and only after all accesses to the DB happened. */ @Override public void dispose() { if (this.disposed) { return; } super.dispose(); // This call will block until all clients that still acquire access to the RocksDB instance // have released it, ...
3.68
framework_AbstractColorPicker_setRGBVisibility
/** * Set the visibility of the RGB Tab. * * @param visible * The visibility */ public void setRGBVisibility(boolean visible) { if (!visible && !hsvVisible && !swatchesVisible) { throw new IllegalArgumentException("Cannot hide all tabs."); } rgbVisible = visible; if (window != ...
3.68
pulsar_TopicName_getPartitionIndex
/** * @return partition index of the completeTopicName. * It returns -1 if the completeTopicName (topic) is not partitioned. */ public static int getPartitionIndex(String topic) { int partitionIndex = -1; if (topic.contains(PARTITIONED_TOPIC_SUFFIX)) { try { String idx = StringUtils.subst...
3.68
hbase_ScanQueryMatcher_compareKeyForNextRow
/** * @param nextIndexed the key of the next entry in the block index (if any) * @param currentCell The Cell we're using to calculate the seek key * @return result of the compare between the indexed key and the key portion of the passed cell */ public int compareKeyForNextRow(Cell nextIndexed, Cell currentCell) { ...
3.68
morf_AliasedField_lessThanOrEqualTo
/** * @param value object to compare to (right hand side) * @return a {@link Criterion} for a less than or equal to expression of this field. */ public Criterion lessThanOrEqualTo(Object value) { return Criterion.lessThanOrEqualTo(this, value); }
3.68
morf_Criterion_isNotNull
/** * Helper method to create a new "IS NOT NULL" expression. * * <blockquote><pre> * Criterion.isNotNull(new Field("agreementflag"));</pre></blockquote> * * @param field the field to check if not null * @return a new Criterion object */ public static Criterion isNotNull(AliasedField field) { return new Cr...
3.68
hadoop_TaskPool_run
/** * Execute the task across the data. * @param task task to execute * @param <E> exception which may be raised in execution. * @return true if the operation executed successfully * @throws E any exception raised. * @throws IOException IOExceptions raised by remote iterator or in execution. */ public <E extends...
3.68
flink_HiveASTParseDriver_create
/** * Creates an HiveParserASTNode for the given token. The HiveParserASTNode is a * wrapper around antlr's CommonTree class that implements the Node interface. * * @param payload The token. * @return Object (which is actually an HiveParserASTNode) for the token. */ @Override public Object create(Token payload) {...
3.68
hbase_FIFOCompactionPolicy_isEmptyStoreFile
/** * The FIFOCompactionPolicy only choose the TTL expired store files as the compaction candidates. * If all the store files are TTL expired, then the compaction will generate a new empty file. * While its max timestamp will be Long.MAX_VALUE. If not considered separately, the store file * will never be archived b...
3.68
hbase_CellFlatMap_put
// -------------------------------- Updates -------------------------------- // All updating methods below are unsupported. // Assuming an array of Cells will be allocated externally, // fill up with Cells and provided in construction time. // Later the structure is immutable. @Override public Cell put(Cell k, Cell v) ...
3.68
hbase_IndividualBytesFieldCell_getValueArray
// 7) Value @Override public byte[] getValueArray() { // Value could be null return (value == null) ? HConstants.EMPTY_BYTE_ARRAY : value; }
3.68
hadoop_MappableBlockLoaderFactory_createCacheLoader
/** * Create a specific cache loader according to the configuration. * If persistent memory volume is not configured, return a cache loader * for DRAM cache. Otherwise, return a cache loader for pmem cache. */ public static MappableBlockLoader createCacheLoader(DNConf conf) { if (conf.getPmemVolumes() == null || ...
3.68
hbase_LocalHBaseCluster_getRegionServers
/** Returns Read-only list of region server threads. */ public List<JVMClusterUtil.RegionServerThread> getRegionServers() { return Collections.unmodifiableList(this.regionThreads); }
3.68
hadoop_AssumedRoleCredentialProvider_sanitize
/** * Build a session name from the string, sanitizing it for the permitted * characters. * @param session source session * @return a string for use in role requests. */ @VisibleForTesting static String sanitize(String session) { StringBuilder r = new StringBuilder(session.length()); for (char c: session.toCha...
3.68
querydsl_JPAExpressions_select
/** * Create a new detached JPQLQuery instance with the given projection * * @param exprs projection * @return select(exprs) */ public static JPQLQuery<Tuple> select(Expression<?>... exprs) { return new JPASubQuery<Void>().select(exprs); }
3.68
flink_CatalogManager_close
/** * Closes the catalog manager and releases its resources. * * <p>This method closes all initialized catalogs and the catalog store. * * @throws CatalogException if an error occurs while closing the catalogs or the catalog store */ public void close() throws CatalogException { // close the initialized catal...
3.68
framework_VMenuBar_clearItems
/** * Remove all the items in this menu. */ public void clearItems() { for (CustomMenuItem child : items) { remove(child); } items.clear(); }
3.68
framework_DesignContext_getCustomAttributes
/** * Gets the attributes that the component did not handle. * * @since 7.7 * @param component * the component to get the attributes for * @return map of the attributes which were not recognized by the component */ public Map<String, String> getCustomAttributes(Component component) { return custom...
3.68
AreaShop_RegionEvent_getRegion
/** * Get the region of this event. * @return The region the event is about */ public T getRegion() { return region; }
3.68
flink_RegisteredBroadcastStateBackendMetaInfo_deepCopy
/** Creates a deep copy of the itself. */ @Nonnull public RegisteredBroadcastStateBackendMetaInfo<K, V> deepCopy() { return new RegisteredBroadcastStateBackendMetaInfo<>(this); }
3.68
hadoop_ReplicaUnderConstruction_getExpectedStorageLocation
/** * Expected block replica location as assigned when the block was allocated. * This defines the pipeline order. * It is not guaranteed, but expected, that the data-node actually has * the replica. */ DatanodeStorageInfo getExpectedStorageLocation() { return expectedLocation; }
3.68
framework_Form_removeItemProperty
/** * Removes the property and corresponding field from the form. * * @see Item#removeItemProperty(Object) */ @Override public boolean removeItemProperty(Object id) { ownProperties.remove(id); final Field<?> field = fields.get(id); if (field != null) { propertyIds.remove(id); fields.re...
3.68
flink_TimestampedValue_getValue
/** @return The value wrapped in this {@link TimestampedValue}. */ public T getValue() { return value; }
3.68
framework_VDebugWindow_activateSection
/** * Activates the given {@link Section} * * @param section */ void activateSection(Section section) { if (section != null && section != activeSection) { Highlight.hideAll(); // remove old stuff if (activeSection != null) { activeSection.hide(); content.remove(ac...
3.68
framework_BasicDateClickHandler_dateClick
/* * (non-Javadoc) * * @see * com.vaadin.addon.calendar.ui.CalendarComponentEvents.DateClickHandler * #dateClick * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.DateClickEvent) */ @Override public void dateClick(DateClickEvent event) { Date clickedDate = event.getDate(); Calendar javaCalendar = ...
3.68
zxing_OneDReader_decode
// Note that we don't try rotation without the try harder flag, even if rotation was supported. @Override public Result decode(BinaryBitmap image, Map<DecodeHintType,?> hints) throws NotFoundException, FormatException { try { return doDecode(image, hints); } catch (NotFoundException nfe) { ...
3.68
flink_PlannerContext_getBuiltinSqlOperatorTable
/** Returns builtin the operator table and external the operator for this environment. */ private SqlOperatorTable getBuiltinSqlOperatorTable() { return SqlOperatorTables.chain( new FunctionCatalogOperatorTable( context.getFunctionCatalog(), context.getCatalogMana...
3.68
hadoop_AzureNativeFileSystemStore_getDataLength
/** * Return the actual data length of the blob with the specified properties. * If it is a page blob, you can't rely on the length from the properties * argument and you must get it from the file. Otherwise, you can. */ private long getDataLength(CloudBlobWrapper blob, BlobProperties properties) throws AzureExce...
3.68
graphhopper_VectorTile_getDoubleValue
/** * <code>optional double double_value = 3;</code> */ public double getDoubleValue() { return doubleValue_; }
3.68
hudi_DirectMarkerBasedDetectionStrategy_checkMarkerConflict
/** * We need to do list operation here. * In order to reduce the list pressure as much as possible, first we build path prefix in advance: * '$base_path/.temp/instant_time/partition_path', and only list these specific partition_paths * we need instead of list all the '$base_path/.temp/' * * @param basePath ...
3.68
hadoop_LocalJobOutputFiles_getOutputIndexFile
/** * Return the path to a local map output index file created earlier */ public Path getOutputIndexFile() throws IOException { String path = String.format(OUTPUT_FILE_INDEX_FORMAT_STRING, TASKTRACKER_OUTPUT); return lDirAlloc.getLocalPathToRead(path, conf); }
3.68
graphhopper_VectorTile_addAllKeys
/** * <pre> * Dictionary encoding for keys * </pre> * * <code>repeated string keys = 3;</code> */ public Builder addAllKeys( java.lang.Iterable<java.lang.String> values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; }
3.68
hbase_CompactionRequestImpl_getSize
/** Gets the total size of all StoreFiles in compaction */ @Override public long getSize() { return totalSize; }
3.68
hudi_InternalSchemaMerger_mergeSchema
/** * Create final read schema to read avro/parquet file. * * @return read schema to read avro/parquet file. */ public InternalSchema mergeSchema() { Types.RecordType record = (Types.RecordType) mergeType(querySchema.getRecord(), 0); return new InternalSchema(record); }
3.68
framework_CalendarConnector_getActionStartDate
/** * Get the start date for an action item. * * @param actionKey * The unique action key * @return * @throws ParseException */ public Date getActionStartDate(String actionKey) throws ParseException { String dateStr = actionMap.get(actionKey + "_s"); DateTimeFormat formatter = DateTimeFormat ...
3.68
hudi_BaseHoodieTableServiceClient_completeLogCompaction
/** * Commit Log Compaction and track metrics. */ protected void completeLogCompaction(HoodieCommitMetadata metadata, HoodieTable table, String logCompactionCommitTime) { this.context.setJobStatus(this.getClass().getSimpleName(), "Collect log compaction write status and commit compaction"); List<HoodieWriteStat> ...
3.68
flink_DeduplicateFunctionHelper_processFirstRowOnProcTime
/** * Processes element to deduplicate on keys with process time semantic, sends current element if * it is first row. * * @param currentRow latest row received by deduplicate function * @param state state of function * @param out underlying collector */ static void processFirstRowOnProcTime( RowData cur...
3.68
morf_GraphBasedUpgradeSchemaChangeVisitor_startStep
/** * Set the current {@link GraphBasedUpgradeNode} which is being processed. * * @param upgradeClass upgrade which is currently being processed */ @Override public void startStep(Class<? extends UpgradeStep> upgradeClass) { currentNode = upgradeNodes.get(upgradeClass.getName()); if (currentNode == null) { ...
3.68
hadoop_MutableRatesWithAggregation_aggregateLocalStatesToGlobalMetrics
/** * Aggregates the thread's local samples into the global metrics. The caller * should ensure its thread safety. */ private void aggregateLocalStatesToGlobalMetrics( final ConcurrentMap<String, ThreadSafeSampleStat> localStats) { for (Map.Entry<String, ThreadSafeSampleStat> entry : localStats .entrySet...
3.68
flink_LatencyTrackingStateFactory_createStateAndWrapWithLatencyTrackingIfEnabled
/** Create latency tracking state if enabled. */ public static <K, N, V, S extends State> InternalKvState<K, N, ?> createStateAndWrapWithLatencyTrackingIfEnabled( InternalKvState<K, N, ?> kvState, StateDescriptor<S, V> stateDescriptor, LatencyTrackingStateConfig l...
3.68
morf_TableDataHomology_compareTable
/** * Compare all the records for this table. * * @param table the active {@link Table} * @param records1 the first set of records * @param records2 the second set of records */ public void compareTable(final Table table, Iterable<Record> records1, Iterable<Record> records2) { Iterator<Record> iterator1; Ite...
3.68
hudi_SchemaChangeUtils_applyTableChanges2Schema
/** * Apply all the DDL update operations to internalSchema to produce a new internalSchema. * * @param internalSchema origin internalSchema. * @param updates a wrapper class for all the DDL update operations. * @return a new internalSchema. */ public static InternalSchema applyTableChanges2Schema(InternalSchema ...
3.68
hbase_StorageClusterStatusModel_setStorefileSizeMB
/** * @param storefileSizeMB total size of store files, in MB */ public void setStorefileSizeMB(int storefileSizeMB) { this.storefileSizeMB = storefileSizeMB; }
3.68
hbase_TestingHBaseClusterOption_convert
/** * Convert to the internal option. Not for public use so package private. */ StartTestingClusterOption convert() { return StartTestingClusterOption.builder().numMasters(numMasters) .numAlwaysStandByMasters(numAlwaysStandByMasters).numRegionServers(numRegionServers) .rsPorts(rsPorts).numDataNodes(numDataN...
3.68