name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hadoop_TimelineWriteResponse_getEntityType
/** * Get the entity type. * * @return the entity type */ @XmlElement(name = "entitytype") public String getEntityType() { return entityType; }
3.68
hbase_HRegion_applyToMemStore
/** * @param delta If we are doing delta changes -- e.g. increment/append -- then this flag will be * set; when set we will run operations that make sense in the increment/append * scenario but that do not make sense otherwise. */ private void applyToMemStore(HStore store, List<Cell> cells...
3.68
hudi_AvroSchemaCompatibility_toString
/** * {@inheritDoc} */ @Override public String toString() { return String.format("SchemaPairCompatibility{result:%s, readerSchema:%s, writerSchema:%s, description:%s}", mResult, mReader, mWriter, mDescription); }
3.68
framework_VAccordion_updateTabStyleName
/** * Updates the stack item's style name from the TabState. * * @param newStyleName * the new style name */ private void updateTabStyleName(String newStyleName) { if (newStyleName != null && !newStyleName.isEmpty()) { if (!newStyleName.equals(styleName)) { // If we have a new st...
3.68
hadoop_JobID_getJobIDsPattern
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("2007071...
3.68
rocketmq-connect_MemoryStateManagementServiceImpl_getAll
/** * Get the states of all tasks for the given connector. * * @param connector the connector name * @return a map from task ids to their respective status */ @Override public synchronized Collection<TaskStatus> getAll(String connector) { return new HashSet<>(tasks.row(connector).values()); }
3.68
flink_EnvironmentInformation_getOpenFileHandlesLimit
/** * Tries to retrieve the maximum number of open file handles. This method will only work on * UNIX-based operating systems with Sun/Oracle Java versions. * * <p>If the number of max open file handles cannot be determined, this method returns {@code * -1}. * * @return The limit of open file handles, or {@code ...
3.68
hadoop_OBSCommonUtils_rejectRootDirectoryDelete
/** * Implements the specific logic to reject root directory deletion. The caller * must return the result of this call, rather than attempt to continue with * the delete operation: deleting root directories is never allowed. This * method simply implements the policy of when to return an exit code versus * raise ...
3.68
hadoop_GroupMappingServiceProvider_getGroupsSet
/** * Get all various group memberships of a given user. * Returns EMPTY set in case of non-existing user * @param user User's name * @return set of group memberships of user * @throws IOException raised on errors performing I/O. */ default Set<String> getGroupsSet(String user) throws IOException { //Override t...
3.68
querydsl_Expressions_constantAs
/** * Create a {@code source as alias} expression * * @param source source * @param alias alias * @return source as alias */ @SuppressWarnings({ "unchecked", "rawtypes" }) public static <D> SimpleExpression<D> constantAs(D source, Path<D> alias) { if (source == null) { return as((Expression) nullExpre...
3.68
hadoop_AllocateResponse_updatedNodes
/** * Set the <code>updatedNodes</code> of the response. * @see AllocateResponse#setUpdatedNodes(List) * @param updatedNodes <code>updatedNodes</code> of the response * @return {@link AllocateResponseBuilder} */ @Private @Unstable public AllocateResponseBuilder updatedNodes( List<NodeReport> updatedNodes) { ...
3.68
hudi_LSMTimelineWriter_getCandidateFiles
/** * Returns at most {@code filesBatch} number of source files * restricted by the gross file size by 1GB. */ private List<String> getCandidateFiles(List<HoodieLSMTimelineManifest.LSMFileEntry> files, int filesBatch) throws IOException { List<String> candidates = new ArrayList<>(); long totalFileLen = 0L; for...
3.68
hbase_ProcedureExecutor_startWorkers
/** * Start the workers. */ public void startWorkers() throws IOException { if (!running.compareAndSet(false, true)) { LOG.warn("Already running"); return; } // Start the executors. Here we must have the lastProcId set. LOG.trace("Start workers {}", workerThreads.size()); timeoutExecutor.start(); ...
3.68
querydsl_JTSGeometryExpression_dimension
/** * The inherent dimension of this geometric object, which must be less than or equal * to the coordinate dimension. In non-homogeneous collections, this will return the largest topological * dimension of the contained objects. * * @return dimension */ public NumberExpression<Integer> dimension() { if (dime...
3.68
flink_PythonTableFunctionOperator_isFinishResult
/** The received udtf execution result is a finish message when it is a byte with value 0x00. */ private boolean isFinishResult(byte[] rawUdtfResult, int length) { return length == 1 && rawUdtfResult[0] == 0x00; }
3.68
hudi_WaitStrategyFactory_build
/** * Build WaitStrategy for disruptor */ public static WaitStrategy build(String name) { DisruptorWaitStrategyType strategyType = DisruptorWaitStrategyType.valueOf(name); switch (strategyType) { case BLOCKING_WAIT: return new BlockingWaitStrategy(); case SLEEPING_WAIT: return new SleepingWai...
3.68
framework_Escalator_getCalculatedWidth
/** * Returns the actual width in the DOM. * * @return the width in pixels in the DOM. Returns -1 if the column * needs measuring, but has not been yet measured */ public double getCalculatedWidth() { /* * This might return an untrue value (e.g. during init/onload), * since we haven't had a p...
3.68
hadoop_LocalJobOutputFiles_getInputFile
/** * Return a local reduce input file created earlier * * @param mapId a map task id */ public Path getInputFile(int mapId) throws IOException { return lDirAlloc.getLocalPathToRead( String.format(REDUCE_INPUT_FILE_FORMAT_STRING, TASKTRACKER_OUTPUT, Integer.valueOf(mapId)), conf); }
3.68
hbase_Timer_updateNanos
/** * Update the timer with the given duration in nanoseconds * @param durationNanos the duration of the event in ns */ default void updateNanos(long durationNanos) { update(durationNanos, TimeUnit.NANOSECONDS); }
3.68
flink_OptimizableHashSet_arraySize
/** * Returns the least power of two smaller than or equal to 2<sup>30</sup> and larger than or * equal to <code>Math.ceil( expected / f )</code>. * * @param expected the expected number of elements in a hash table. * @param f the load factor. * @return the minimum possible size for a backing array. * @throws Il...
3.68
hmily_HmilyAggregationType_isAggregationType
/** * Is aggregation type. * @param aggregationType aggregation type * @return is aggregation type or not */ public static boolean isAggregationType(final String aggregationType) { return Arrays.stream(values()).anyMatch(each -> aggregationType.equalsIgnoreCase(each.name())); }
3.68
hbase_LruAdaptiveBlockCache_cacheBlock
/** * Cache the block with the specified name and buffer. * <p> * TODO after HBASE-22005, we may cache an block which allocated from off-heap, but our LRU cache * sizing is based on heap size, so we should handle this in HBASE-22127. It will introduce an * switch whether make the LRU on-heap or not, if so we may n...
3.68
hbase_KeyValueScanner_getScannerOrder
/** * Get the order of this KeyValueScanner. This is only relevant for StoreFileScanners. This is * required for comparing multiple files to find out which one has the latest data. * StoreFileScanners are ordered from 0 (oldest) to newest in increasing order. */ default long getScannerOrder() { return 0; }
3.68
hadoop_RmSingleLineParser_aggregateSkyline
/** * Aggregates different jobs' {@link ResourceSkyline}s within the same * pipeline together. * * @param resourceSkyline newly extracted {@link ResourceSkyline}. * @param recurrenceId the {@link RecurrenceId} which the resourceSkyline * belongs to. * @param skylineRecords a {@link Map...
3.68
hbase_MasterObserver_postSetRegionServerQuota
/** * Called after the quota for the region server is stored. * @param ctx the environment to interact with the framework and master * @param regionServer the name of the region server * @param quotas the resulting quota for the region server */ default void postSetRegionServerQuota(final ObserverCo...
3.68
framework_BasicEventProvider_eventChange
/* * (non-Javadoc) * * @see * com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventChangeListener * #eventChange * (com.vaadin.addon.calendar.ui.CalendarComponentEvents.EventSetChange) */ @Override public void eventChange(EventChangeEvent changeEvent) { // naive implementation fireEventSetChange(); ...
3.68
flink_SkipListUtils_getLevel
/** * Returns the level of the node. * * @param memorySegment memory segment for key space. * @param offset offset of key space in the memory segment. */ public static int getLevel(MemorySegment memorySegment, int offset) { return memorySegment.getInt(offset + KEY_META_OFFSET) & BYTE_MASK; }
3.68
hudi_HoodieAvroUtils_rewriteRecords
/** * Converts list of {@link GenericRecord} provided into the {@link GenericRecord} adhering to the * provided {@code newSchema}. * <p> * To better understand conversion rules please check {@link #rewriteRecord(GenericRecord, Schema)} */ public static List<GenericRecord> rewriteRecords(List<GenericRecord> records...
3.68
graphhopper_NodeBasedWitnessPathSearcher_findUpperBound
/** * Runs or continues a Dijkstra search starting at the startNode and ignoring the ignoreNode given in init(). * If the shortest path is found we return its weight. However, this method also returns early if any path was * found for which the weight is below or equal to the given acceptedWeight, or the given maxim...
3.68
querydsl_BeanPath_createNumber
/** * Create a new Number path * * @param <A> * @param property property name * @param type property type * @return property path */ @SuppressWarnings("unchecked") protected <A extends Number & Comparable<?>> NumberPath<A> createNumber(String property, Class<? super A> type) { return add(new NumberPath<A>((C...
3.68
hadoop_ApplicationRowKey_decode
/* * (non-Javadoc) * * Decodes an application row key of the form * clusterId!userName!flowName!flowRunId!appId represented in byte format * and converts it into an ApplicationRowKey object.flowRunId is inverted * while decoding as it was inverted while encoding. * * @see * org.apache.hadoop.yarn.server.timeli...
3.68
graphhopper_BaseGraph_copyProperties
/** * This method copies the properties of one {@link EdgeIteratorState} to another. * * @return the updated iterator the properties where copied to. */ EdgeIteratorState copyProperties(EdgeIteratorState from, EdgeIteratorStateImpl to) { long edgePointer = store.toEdgePointer(to.getEdge()); store.writeFlags...
3.68
morf_SqlDialect_getSqlForSome
/** * Converts the some function into SQL. * * @param function the function details * @return a string representation of the SQL */ protected String getSqlForSome(Function function) { return getSqlForMax(function); }
3.68
hudi_HoodieConsistentHashingMetadata_getTimestampFromFile
/** * Get instant time from the hashing metadata filename * Pattern of the filename: <instant>.HASHING_METADATA_FILE_SUFFIX */ public static String getTimestampFromFile(String filename) { return filename.split("\\.")[0]; }
3.68
hbase_ZKWatcher_interruptedException
/** * Handles InterruptedExceptions in client calls. * @param ie the InterruptedException instance thrown * @throws KeeperException the exception to throw, transformed from the InterruptedException */ public void interruptedException(InterruptedException ie) throws KeeperException { interruptedExceptionNoThrow(ie...
3.68
framework_InfoSection_meta
/* * (non-Javadoc) * * @see com.vaadin.client.debug.internal.Section#meta(com.vaadin.client. * ApplicationConnection, com.vaadin.client.ValueMap) */ @Override public void meta(ApplicationConnection ac, ValueMap meta) { }
3.68
framework_GridMultiSelect_setSelectAllCheckBoxVisibility
/** * Sets the select all checkbox visibility mode. * <p> * The default value is {@link SelectAllCheckBoxVisibility#DEFAULT}, which * means that the checkbox is only visible if the grid's data provider is * in- memory. * * @param visibility * the visiblity mode to use * @see SelectAllCheckBoxVisibil...
3.68
pulsar_CmdConsume_run
/** * Run the consume command. * * @return 0 for success, < 0 otherwise */ public int run() throws PulsarClientException, IOException { if (mainOptions.size() != 1) { throw (new ParameterException("Please provide one and only one topic name.")); } if (this.subscriptionName == null || this.subscr...
3.68
framework_VaadinFinderLocatorStrategy_getElementByPathStartingAt
/** * {@inheritDoc} */ @Override public Element getElementByPathStartingAt(String path, Element root) { List<Element> elements = getElementsByPathStartingAt(path, root); if (elements.isEmpty()) { return null; } return elements.get(0); }
3.68
querydsl_ComparableExpression_loeAny
/** * Create a {@code this <= any right} expression * * @param right rhs of the comparison * @return this &lt;= any right */ public BooleanExpression loeAny(SubQueryExpression<? extends T> right) { return loe(ExpressionUtils.any(right)); }
3.68
flink_CliFrontend_triggerSavepoint
/** Sends a SavepointTriggerMessage to the job manager. */ private void triggerSavepoint( ClusterClient<?> clusterClient, JobID jobId, String savepointDirectory, SavepointFormatType formatType, Duration clientTimeout) throws FlinkException { logAndSysout("Triggering s...
3.68
hbase_MasterObserver_preLockHeartbeat
/** * Called before heartbeat to a lock. * @param ctx the environment to interact with the framework and master */ default void preLockHeartbeat(ObserverContext<MasterCoprocessorEnvironment> ctx, TableName tn, String description) throws IOException { }
3.68
hadoop_StageConfig_withConfiguration
/** * Set configuration. * @param value new value * @return the builder */ public StageConfig withConfiguration(Configuration value) { conf = value; return this; }
3.68
hbase_MiniHBaseCluster_getLiveRegionServerThreads
/** Returns List of live region server threads (skips the aborted and the killed) */ public List<JVMClusterUtil.RegionServerThread> getLiveRegionServerThreads() { return this.hbaseCluster.getLiveRegionServers(); }
3.68
flink_FsJobArchivist_archiveJob
/** * Writes the given {@link AccessExecutionGraph} to the {@link FileSystem} pointed to by {@link * JobManagerOptions#ARCHIVE_DIR}. * * @param rootPath directory to which the archive should be written to * @param jobId job id * @param jsonToArchive collection of json-path pairs to that should be archived * @ret...
3.68
framework_SQLContainer_isModified
/** * Returns modify state of the container. * * @return true if contents of this container have been modified */ public boolean isModified() { return !removedItems.isEmpty() || !addedItems.isEmpty() || !modifiedItems.isEmpty(); }
3.68
Activiti_ProcessEngines_getProcessEngineInfo
/** * Get initialization results. Only info will we available for process engines which were added in the {@link ProcessEngines#init()}. No {@link ProcessEngineInfo} is available for engines which were * registered programatically. */ public static ProcessEngineInfo getProcessEngineInfo(String processEngineName) { ...
3.68
flink_SinkFunction_writeWatermark
/** * Writes the given watermark to the sink. This function is called for every watermark. * * <p>This method is intended for advanced sinks that propagate watermarks. * * @param watermark The watermark. * @throws Exception This method may throw exceptions. Throwing an exception will cause the * operation to...
3.68
hbase_BlockCache_isMetaBlock
/** * Check if block type is meta or index block * @param blockType block type of a given HFile block * @return true if block type is non-data block */ default boolean isMetaBlock(BlockType blockType) { return blockType != null && blockType.getCategory() != BlockType.BlockCategory.DATA; }
3.68
morf_ConcatenatedField_drive
/** * @see org.alfasoftware.morf.util.ObjectTreeTraverser.Driver#drive(ObjectTreeTraverser) */ @Override public void drive(ObjectTreeTraverser traverser) { traverser.dispatch(getConcatenationFields()); }
3.68
open-banking-gateway_DatasafeMetadataStorage_getIdValue
/** * Converts String id value into Entity id * @param id Entity id */ protected Long getIdValue(String id) { return Long.valueOf(id); }
3.68
flink_Configuration_removeKey
/** * Removes given key from the configuration. * * @param key key of a config option to remove * @return true is config has been removed, false otherwise */ public boolean removeKey(String key) { synchronized (this.confData) { boolean removed = this.confData.remove(key) != null; removed |= rem...
3.68
dubbo_AbstractServiceNameMapping_setApplicationModel
// just for test public void setApplicationModel(ApplicationModel applicationModel) { this.applicationModel = applicationModel; }
3.68
pulsar_ResourceUnitRanking_estimateLoadPercentage
/** * Estimate the load percentage which is the max percentage of all resource usages. */ private void estimateLoadPercentage() { double cpuUsed = this.systemResourceUsage.cpu.usage; double cpuAllocated = cpuUsageByMsgRate * (this.allocatedQuota.getMsgRateIn() + this.allocatedQuota.getMsgRateOut()...
3.68
framework_RichTextAreaElement_setValue
/** * Set value of the field element. * * @param chars * new value of the field * @since 8.4 */ public void setValue(CharSequence chars) throws ReadOnlyException { if (isReadOnly()) { throw new ReadOnlyException(); } JavascriptExecutor executor = (JavascriptExecutor) getDriver(); ...
3.68
framework_VDebugWindow_getTimingTooltip
/** * Gets a nicely formatted string with timing information suitable for * display in tooltips. * * @param sinceStart * @param sinceReset * @return */ static String getTimingTooltip(int sinceStart, int sinceReset) { String title = formatDuration(sinceStart) + " since start"; title += ", &#10; " + format...
3.68
flink_NFACompiler_getTrueFunction
/** @return An true function extended with stop(until) condition if necessary. */ @SuppressWarnings("unchecked") private IterativeCondition<T> getTrueFunction() { IterativeCondition<T> trueCondition = BooleanConditions.trueFunction(); if (currentGroupPattern != null && currentGroupPattern.getUntilCondition() !=...
3.68
hadoop_AbfsOutputStream_hflush
/** Flush out the data in client's user buffer. After the return of * this call, new readers will see the data. * @throws IOException if any error occurs */ @Override public void hflush() throws IOException { if (supportFlush) { flushInternal(false); } }
3.68
morf_SelectStatementBuilder_useIndex
/** * If supported by the dialect, hints to the database that a particular index should be used * in the query, but places no obligation on the database to do so. * * <p>In general, as with all query plan modification, <strong>do not use this unless you know * exactly what you are doing</strong>.</p> * * <p>As f...
3.68
framework_NativeButtonIconAndText_getTicketNumber
/* * (non-Javadoc) * * @see com.vaadin.tests.components.AbstractTestUI#getTicketNumber() */ @Override protected Integer getTicketNumber() { return 12780; }
3.68
framework_ColorPickerTestUI_updateDisplay
// This is called whenever a colorpicker popup is closed /** * Update display. * * @param fg * the fg * @param bg * the bg */ public void updateDisplay(Color fg, Color bg) { java.awt.Color awtFg = new java.awt.Color(fg.getRed(), fg.getGreen(), fg.getBlue()); java.awt.Col...
3.68
flink_TaskManagerLocation_getFQDNHostname
/** * Returns the fully-qualified domain name of the TaskManager provided by {@link * #hostNameSupplier}. * * @return The fully-qualified domain name of the TaskManager. */ public String getFQDNHostname() { return hostNameSupplier.getFqdnHostName(); }
3.68
hbase_MiniHBaseCluster_countServedRegions
/** * Counts the total numbers of regions being served by the currently online region servers by * asking each how many regions they have. Does not look at hbase:meta at all. Count includes * catalog tables. * @return number of regions being served by all region servers */ public long countServedRegions() { long...
3.68
flink_CustomSinkOperatorUidHashes_setWriterUidHash
/** * Sets the uid hash of the writer operator used to recover state. * * @param writerUidHash uid hash denoting writer operator * @return {@link SinkOperatorUidHashesBuilder} */ public SinkOperatorUidHashesBuilder setWriterUidHash(String writerUidHash) { this.writerUidHash = writerUidHash; return this; }
3.68
framework_Navigator_parseStateParameterMap
/** * Parses the state parameter to a map using the given separator string. * * @param separator * the string (typically one character) used to separate values * from each other * @return The navigation state as Map<String, String>. * @since 8.1 */ protected Map<String, String> parseStateP...
3.68
hbase_ChecksumUtil_verifyChunkedSums
/** * Like the hadoop's {@link DataChecksum#verifyChunkedSums(ByteBuffer, ByteBuffer, String, long)}, * this method will also verify checksum of each chunk in data. the difference is: this method can * accept {@link ByteBuff} as arguments, we can not add it in hadoop-common so defined here. * @param dataChecksum to...
3.68
framework_BrowserWindowOpener_setResource
/** * Sets the provided {@code resource} for this instance. The * {@code resource} will be opened in a new browser window/tab when the * extended component is clicked. * * @since 7.4 * * @param resource * resource to open */ public void setResource(Resource resource) { setResource(BrowserWindowO...
3.68
hbase_MiniBatchOperationInProgress_getOperation
/** Returns The operation(Mutation) at the specified position. */ public T getOperation(int index) { return operations[getAbsoluteIndex(index)]; }
3.68
hadoop_MultipleInputs_getInputFormatMap
/** * Retrieves a map of {@link Path}s to the {@link InputFormat} class * that should be used for them. * * @param conf The confuration of the job * @see #addInputPath(JobConf, Path, Class) * @return A map of paths to inputformats for the job */ static Map<Path, InputFormat> getInputFormatMap(JobConf conf) { ...
3.68
hadoop_RoleModel_resource
/** * Given a path, return the S3 resource to it. * If {@code isDirectory} is true, a "/" is added to the path. * This is critical when adding wildcard permissions under * a directory, and also needed when locking down dir-as-file * and dir-as-directory-marker access. * @param path a path * @param isDirectory is...
3.68
framework_XhrConnection_setPayload
/** * Sets the payload which was sent to the server. * * @param payload * the payload which was sent to the server */ public void setPayload(JsonObject payload) { this.payload = payload; }
3.68
flink_TypeInferenceUtil_adaptArguments
/** * Adapts the call's argument if necessary. * * <p>This includes casts that need to be inserted, reordering of arguments (*), or insertion of * default values (*) where (*) is future work. */ public static CallContext adaptArguments( TypeInference typeInference, CallContext callContext, @Nullable DataTy...
3.68
flink_SortOperationFactory_createSort
/** * Creates a valid {@link SortQueryOperation}. * * <p><b>NOTE:</b> If the collation is not explicitly specified for an expression, the * expression is wrapped in a default ascending order. If no expression is specified, the result * is not sorted but only limited. * * @param orders expressions describing orde...
3.68
flink_HybridShuffleConfiguration_getNumRetainedInMemoryRegionsMax
/** Max number of hybrid retained regions in memory. */ public long getNumRetainedInMemoryRegionsMax() { return numRetainedInMemoryRegionsMax; }
3.68
morf_H2Dialect_getColumnRepresentation
/** * @see org.alfasoftware.morf.jdbc.SqlDialect#getColumnRepresentation(org.alfasoftware.morf.metadata.DataType, * int, int) */ @Override protected String getColumnRepresentation(DataType dataType, int width, int scale) { switch (dataType) { case STRING: return width == 0 ? "VARCHAR" : String.forma...
3.68
hbase_Client_executeURI
/** * Execute a transaction method given a complete URI. * @param method the transaction method * @param headers HTTP header values to send * @param uri a properly urlencoded URI * @return the HTTP response code */ public HttpResponse executeURI(HttpUriRequest method, Header[] headers, String uri) throws I...
3.68
hbase_ProcedureExecutor_executeRollback
/** * Execute the rollback of the procedure step. It updates the store with the new state (stack * index) or will remove completly the procedure in case it is a child. */ private LockState executeRollback(Procedure<TEnvironment> proc) { try { proc.doRollback(getEnvironment()); } catch (IOException e) { L...
3.68
hbase_MasterFileSystem_checkRootDir
/** * Get the rootdir. Make sure its wholesome and exists before returning. * @return hbase.rootdir (after checks for existence and bootstrapping if needed populating the * directory with necessary bootup files). */ private void checkRootDir(final Path rd, final Configuration c, final FileSystem fs) throw...
3.68
pulsar_ManagedCursorImpl_trySetStateToClosing
/** * Try set {@link #state} to {@link State#Closing}. * @return false if the {@link #state} already is {@link State#Closing} or {@link State#Closed}. */ private boolean trySetStateToClosing() { final AtomicBoolean notClosing = new AtomicBoolean(false); STATE_UPDATER.updateAndGet(this, state -> { swi...
3.68
dubbo_AbstractConfig_computeAttributedMethods
/** * compute attributed getter methods, subclass can override this method to add/remove attributed methods * * @return */ protected List<Method> computeAttributedMethods() { Class<? extends AbstractConfig> cls = this.getClass(); BeanInfo beanInfo = getBeanInfo(cls); List<Method> methods = new ArrayList...
3.68
hbase_MetricsConnection_incrMetaCacheHit
/** Increment the number of meta cache hits. */ public void incrMetaCacheHit() { metaCacheHits.inc(); }
3.68
flink_IOUtils_copyBytes
/** * Copies from one stream to another. * * @param in InputStream to read from * @param out OutputStream to write to * @param close whether or not close the InputStream and OutputStream at the end. The streams * are closed in the finally clause. * @throws IOException thrown if an I/O error occurs while copy...
3.68
flink_MetricGroup_histogram
/** * Registers a new {@link Histogram} with Flink. * * @param name name of the histogram * @param histogram histogram to register * @param <H> histogram type * @return the registered histogram */ default <H extends Histogram> H histogram(int name, H histogram) { return histogram(String.valueOf(name), histog...
3.68
hadoop_FederationStateStoreFacade_getPolicyConfiguration
/** * Returns the {@link SubClusterPolicyConfiguration} for the specified queue. * * @param queue the queue whose policy is required * @return the corresponding configured policy, or {@code null} if there is no * mapping for the queue * @throws YarnException if the call to the state store is unsuccessful ...
3.68
morf_OracleDialect_getSqlForOrderByFieldNullValueHandling
/** * @see org.alfasoftware.morf.jdbc.SqlDialect#getSqlForOrderByFieldNullValueHandling(org.alfasoftware.morf.sql.element.FieldReference) */ @Override protected String getSqlForOrderByFieldNullValueHandling(FieldReference orderByField) { if (orderByField.getNullValueHandling().isPresent()) { switch (orderByFiel...
3.68
framework_AbstractRemoteDataSource_onDropFromCache
/** * A hook that can be overridden to do something whenever a row has been * dropped from the cache. DataSource no longer has anything in the given * index. * * @since 7.6 * @param rowIndex * the index of the dropped row * @param removed * the removed row object */ protected void onDrop...
3.68
zxing_BitMatrix_toString
/** * @param setString representation of a set bit * @param unsetString representation of an unset bit * @param lineSeparator newline character in string representation * @return string representation of entire matrix utilizing given strings and line separator * @deprecated call {@link #toString(String,String)} on...
3.68
hmily_HmilyTransactionHolder_remove
/** * clean threadLocal help gc. */ public void remove() { CURRENT.remove(); }
3.68
hbase_Query_getAuthorizations
/** Returns The authorizations this Query is associated with. n */ public Authorizations getAuthorizations() throws DeserializationException { byte[] authorizationsBytes = this.getAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY); if (authorizationsBytes == null) return null; return ProtobufUtil.toAuthori...
3.68
morf_Cast_getDataType
/** * @return the dataType */ public DataType getDataType() { return dataType; }
3.68
hudi_HoodieFlinkWriteClient_initMetadataTable
/** * Initialized the metadata table on start up, should only be called once on driver. */ public void initMetadataTable() { ((HoodieFlinkTableServiceClient<T>) tableServiceClient).initMetadataTable(); }
3.68
framework_Table_removeColumnResizeListener
/** * Removes a column resize listener from the Table. * * @param listener * The listener to remove */ public void removeColumnResizeListener(ColumnResizeListener listener) { removeListener(TableConstants.COLUMN_RESIZE_EVENT_ID, ColumnResizeEvent.class, listener); }
3.68
rocketmq-connect_AbstractConfigManagementService_resumeConnector
/** * resume connector * * @param connectorName */ @Override public void resumeConnector(String connectorName) { if (!connectorKeyValueStore.containsKey(connectorName)) { throw new ConnectException("Connector [" + connectorName + "] does not exist"); } Struct connectTargetState = new Struct(TARG...
3.68
flink_MetricListener_getMetricGroup
/** * Get the root metric group of this listener. Note that only metrics and groups registered * under this group will be listened. * * @return Root metric group */ public MetricGroup getMetricGroup() { return this.rootMetricGroup; }
3.68
flink_MultipleParameterTool_getMultiParameter
/** * Returns the Collection of String values for the given key. If the key does not exist it will * return null. */ public Collection<String> getMultiParameter(String key) { addToDefaults(key, null); unrequestedParameters.remove(key); return data.getOrDefault(key, null); }
3.68
hadoop_ResourceRequest_numContainers
/** * Set the <code>numContainers</code> of the request. * @see ResourceRequest#setNumContainers(int) * @param numContainers <code>numContainers</code> of the request * @return {@link ResourceRequestBuilder} */ @Public @Stable public ResourceRequestBuilder numContainers(int numContainers) { resourceRequest.setNu...
3.68
morf_RemoveIndex_isApplied
/** * {@inheritDoc} * * @see org.alfasoftware.morf.upgrade.SchemaChange#isApplied(Schema, ConnectionResources) */ @Override public boolean isApplied(Schema schema, ConnectionResources database) { if (!schema.tableExists(tableName)) return false; Table table = schema.getTable(tableName); SchemaHomology ho...
3.68
hmily_PropertyName_getLastElement
/** * Gets last element. * * @return the last element */ public String getLastElement() { int elementSize = getElementSize(); return elementSize != 0 ? getElement(elementSize - 1) : ""; }
3.68
hudi_SparkRecordMergingUtils_getCachedFieldIdToFieldMapping
/** * @param avroSchema Avro schema. * @return The field ID to {@link StructField} instance mapping. */ public static Map<Integer, StructField> getCachedFieldIdToFieldMapping(Schema avroSchema) { return FIELD_ID_TO_FIELD_MAPPING_CACHE.computeIfAbsent(avroSchema, schema -> { StructType structType = HoodieIntern...
3.68
hbase_EventHandler_handleException
/** * Event exception handler, may be overridden * @param t Throwable object */ protected void handleException(Throwable t) { String msg = "Caught throwable while processing event " + eventType; LOG.error(msg, t); if (server != null && (t instanceof Error || t instanceof RuntimeException)) { server.abort(m...
3.68