name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
dubbo_ServiceBean_publishExportEvent
/** * @since 2.6.5 */ private void publishExportEvent() { ServiceBeanExportedEvent exportEvent = new ServiceBeanExportedEvent(this); applicationEventPublisher.publishEvent(exportEvent); }
3.68
hadoop_Anonymizer_run
/** * Runs the actual anonymization tool. */ public int run() throws Exception { try { anonymizeTrace(); } catch (IOException ioe) { System.err.println("Error running the trace anonymizer!"); ioe.printStackTrace(); System.out.println("\n\nAnonymization unsuccessful!"); return -1; } try ...
3.68
morf_SqlDialect_getSqlForCriterionValue
/** * Convert the an Object criterion value (i.e. right hand side) to valid SQL * based on its type. * * @param value the object to convert to a string * @return a string representation of the object */ protected String getSqlForCriterionValue(Object value) { if (value instanceof String) { return getSqlFrom...
3.68
hibernate-validator_ResourceLoaderHelper_run
/** * Runs the given privileged action, using a privileged block if required. * <p> * <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary * privileged actions within HV's protection domain. */ @IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in...
3.68
streampipes_AbstractConfigurablePipelineElementBuilder_requiredSlideToggle
/** * Assigns a new required slide toggle for a true/false selection * * @param label The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in an user-friendly manner. * @param defaultValue The toggle's default value * @return this */ public...
3.68
framework_AbstractDateField_setDateFormat
/** * Sets formatting used by some component implementations. See * {@link SimpleDateFormat} for format details. * * By default it is encouraged to used default formatting defined by Locale, * but due some JVM bugs it is sometimes necessary to use this method to * override formatting. See Vaadin issue #2200. * ...
3.68
flink_InPlaceMutableHashTable_overwriteRecordAt
/** * Overwrites a record at the specified position. The record is read from a DataInputView * (this will be the staging area). WARNING: The record must not be larger than the original * record. * * @param pointer Points to the position to overwrite. * @param input The DataInputView to read the record from * @pa...
3.68
morf_ArchiveDataSetWriter_close
/** * @see java.util.zip.ZipOutputStream#close() */ @Override public void close() throws IOException { // Suppress the close }
3.68
flink_CompressedSerializedValue_deserializeValue
/** * Decompress and deserialize the data to get the original object. * * @param loader the classloader to deserialize * @return the deserialized object * @throws IOException exception during decompression and deserialization * @throws ClassNotFoundException if class is not found in the classloader */ @Override ...
3.68
hudi_JavaExecutionStrategy_readRecordsForGroupWithLogs
/** * Read records from baseFiles and apply updates. */ private List<HoodieRecord<T>> readRecordsForGroupWithLogs(List<ClusteringOperation> clusteringOps, String instantTime) { HoodieWriteConfig config = getWriteConfig(); HoodieTable table = getHoodieTable...
3.68
flink_ExecutorNotifier_notifyReadyAsync
/** * Call the given callable once. Notify the {@link #executorToNotify} to execute the handler. * * <p>Note that when this method is invoked multiple times, it is possible that multiple * callables are executed concurrently, so do the handlers. For example, assuming both the * workerExecutor and executorToNotify ...
3.68
hbase_MasterObserver_preDisableTable
/** * Called prior to disabling a table. Called as part of disable table RPC call. * @param ctx the environment to interact with the framework and master * @param tableName the name of the table */ default void preDisableTable(final ObserverContext<MasterCoprocessorEnvironment> ctx, final TableName tableNam...
3.68
pulsar_ManagedCursorImpl_recover
/** * Performs the initial recovery, reading the mark-deleted position from the ledger and then calling initialize to * have a new opened ledger. */ void recover(final VoidCallback callback) { // Read the meta-data ledgerId from the store log.info("[{}] Recovering from bookkeeper ledger cursor: {}", ledger.g...
3.68
hadoop_ResourceRequest_setAllocationRequestId
/** * Set the optional <em>ID</em> corresponding to this allocation request. This * ID is an identifier for different {@code ResourceRequest}s from the <b>same * application</b>. The allocated {@code Container}(s) received as part of the * {@code AllocateResponse} response will have the ID corresponding to the * o...
3.68
hbase_RegionLocations_removeElementsWithNullLocation
/** * Set the element to null if its getServerName method returns null. Returns null if all the * elements are removed. */ public RegionLocations removeElementsWithNullLocation() { HRegionLocation[] newLocations = new HRegionLocation[locations.length]; boolean hasNonNullElement = false; for (int i = 0; i < loc...
3.68
framework_LegacyLocatorStrategy_getElementsByPathStartingAt
/** * {@inheritDoc} */ @Override public List<Element> getElementsByPathStartingAt(String path, Element root) { // This type of search is not supported in LegacyLocator List<Element> array = new ArrayList<>(); Element e = getElementByPathStartingAt(path, root); if (e != null) { array.ad...
3.68
hadoop_WorkerId_readFields
/** {@inheritDoc} */ @Override public final void readFields(final DataInput dataInput) throws IOException { workerId.readFields(dataInput); hostname.readFields(dataInput); ipAdd.readFields(dataInput); }
3.68
hudi_GcsObjectMetadataFetcher_getGcsObjectMetadata
/** * @param cloudObjectMetadataDF a Dataset that contains metadata of GCS objects. Assumed to be a persisted form * of a Cloud Storage Pubsub Notification event. * @param checkIfExists Check if each file exists, before returning its full path * @return A {@link List} of {@link ...
3.68
hudi_JavaExecutionStrategy_readRecordsForGroup
/** * Get a list of all records for the group. This includes all records from file slice * (Apply updates from log files, if any). */ private List<HoodieRecord<T>> readRecordsForGroup(HoodieClusteringGroup clusteringGroup, String instantTime) { List<ClusteringOperation> clusteringOps = clusteringGroup.getSlices()....
3.68
graphhopper_VectorTile_removeLayers
/** * <code>repeated .vector_tile.Tile.Layer layers = 3;</code> */ public Builder removeLayers(int index) { if (layersBuilder_ == null) { ensureLayersIsMutable(); layers_.remove(index); onChanged(); } else { layersBuilder_.remove(index); } return this; }
3.68
flink_PermanentBlobCache_releaseJob
/** * Unregisters use of job-related BLOBs and allow them to be released. * * @param jobId ID of the job this blob belongs to * @see #registerJob(JobID) */ @Override public void releaseJob(JobID jobId) { checkNotNull(jobId); synchronized (jobRefCounters) { RefCount ref = jobRefCounters.get(jobId);...
3.68
framework_CollapseEvent_getCollapsedItem
/** * Get the collapsed item that triggered this event. * * @return the collapsed item */ public T getCollapsedItem() { return collapsedItem; }
3.68
framework_VTabsheet_setStyleNames
/** * Sets the style names for this tab according to the given parameters. * * @param selected * {@code true} if the tab is selected, {@code false} * otherwise * @param first * {@code true} if the tab is the first one from the left, * {@code false} otherwise * @param...
3.68
framework_MenuTooltip_getTicketNumber
/* * (non-Javadoc) * * @see com.vaadin.tests.components.AbstractTestUI#getTicketNumber() */ @Override protected Integer getTicketNumber() { return 13914; }
3.68
flink_OptimizerNode_mergeLists
/** * The node IDs are assigned in graph-traversal order (pre-order), hence, each list is sorted by * ID in ascending order and all consecutive lists start with IDs in ascending order. * * @param markJoinedBranchesAsPipelineBreaking True, if the */ protected final boolean mergeLists( List<UnclosedBranchDes...
3.68
AreaShop_GeneralRegion_getDoubleSetting
/** * Get a double setting for this region, defined as follows * - If the region has the setting in its own file (/regions/regionName.yml), use that * - If the region has groups, use the setting defined by the most important group, if any * - Otherwise fallback to the default.yml file setting * @param path The pat...
3.68
querydsl_MongodbExpressions_near
/** * Finds the closest points relative to the given location and orders the results with decreasing proximity * * @param expr location * @param latVal latitude * @param longVal longitude * @return predicate */ public static BooleanExpression near(Expression<Double[]> expr, double latVal, double longVal) { r...
3.68
framework_ComboBoxElement_openNextPage
/** * Opens next popup page. * * @return True if next page opened. false if doesn't have next page */ public boolean openNextPage() { try { clickElement(getSuggestionPopup().findElement(byNextPage)); return true; } catch (WebDriverException e) { // PhantomJS driver can throw WDE inst...
3.68
dubbo_TriDecoder_processHeader
/** * Processes the GRPC compression header which is composed of the compression flag and the outer * frame length. */ private void processHeader() { int type = accumulate.readUnsignedByte(); if ((type & RESERVED_MASK) != 0) { throw new RpcException("gRPC frame header malformed: reserved bits not zer...
3.68
hadoop_ClientCache_getClient
/** * Construct &amp; cache an IPC client with the user-provided SocketFactory * if no cached client exists. Default response type is ObjectWritable. * * @param conf Configuration * @param factory SocketFactory for client socket * @return an IPC client */ public synchronized Client getClient(Configuration conf,...
3.68
rocketmq-connect_AbstractLocalSchemaRegistryClient_checkSubjectExists
/** * check subject exists * * @param subject * @return */ public Boolean checkSubjectExists(String namespace, String subject) { try { schemaRegistryClient.getSchemaBySubject(cluster, namespace, subject); return Boolean.TRUE; } catch (RestClientException | IOException e) { if (e ins...
3.68
flink_CoGroupOperator_withPartitioner
/** * Sets a custom partitioner for the CoGroup operation. The partitioner will be * called on the join keys to determine the partition a key should be assigned to. * The partitioner is evaluated on both inputs in the same way. * * <p>NOTE: A custom partitioner can only be used with single-field CoGroup keys, * n...
3.68
flink_JobGraph_getUserArtifacts
/** * Gets the list of assigned user jar paths. * * @return The list of assigned user jar paths */ public Map<String, DistributedCache.DistributedCacheEntry> getUserArtifacts() { return userArtifacts; }
3.68
flink_EnvironmentSettings_getConfiguration
/** Get the underlying {@link Configuration}. */ public Configuration getConfiguration() { return configuration; }
3.68
flink_OpenApiSpecGenerator_overrideIdSchemas
/** * Various ID classes are effectively internal classes that aren't sufficiently annotated to * work with automatic schema extraction. This method overrides the schema of these to a string * regex pattern. * * <p>Resulting spec diff: * * <pre> * JobID: * - type: object * - properties: * - upperPart: * - ...
3.68
flink_RocksDBNativeMetricMonitor_registerColumnFamily
/** * Register gauges to pull native metrics for the column family. * * @param columnFamilyName group name for the new gauges * @param handle native handle to the column family */ void registerColumnFamily(String columnFamilyName, ColumnFamilyHandle handle) { boolean columnFamilyAsVariable = options.isColumnF...
3.68
querydsl_PolygonExpression_interiorRingN
/** * Returns the N th interior ring for this Polygon as a LineString. * * @param idx one based index * @return interior ring at index */ public LineStringExpression<LineString> interiorRingN(int idx) { return GeometryExpressions.lineStringOperation(SpatialOps.INTERIOR_RINGN, mixin, ConstantImpl.create(idx)); ...
3.68
pulsar_SchemaUtils_jsonifySchemaInfo
/** * Jsonify the schema info. * * @param schemaInfo the schema info * @return the jsonified schema info */ public static String jsonifySchemaInfo(SchemaInfo schemaInfo) { GsonBuilder gsonBuilder = new GsonBuilder() .setPrettyPrinting() .registerTypeHierarchyAdapter(byte[].class, new ByteArrayT...
3.68
framework_RowVisibilityChangeEvent_getFirstVisibleRow
/** * Gets the index of the first row that is at least partially visible. * * @return the index of the first visible row */ public int getFirstVisibleRow() { return visibleRows.getStart(); }
3.68
flink_MapValue_containsKey
/* * (non-Javadoc) * @see java.util.Map#containsKey(java.lang.Object) */ @Override public boolean containsKey(final Object key) { return this.map.containsKey(key); }
3.68
morf_SqlDialect_getSqlForCountDistinct
/** * Converts the count function into SQL. * * @param function the function details * @return a string representation of the SQL */ protected String getSqlForCountDistinct(Function function) { return "COUNT(DISTINCT " + getSqlFrom(function.getArguments().get(0)) + ")"; }
3.68
flink_DistributedRandomSampler_sample
/** * Combine the first phase and second phase in sequence, implemented for test purpose only. * * @param input Source data. * @return Sample result in sequence. */ @Override public Iterator<T> sample(Iterator<T> input) { return sampleInCoordinator(sampleInPartition(input)); }
3.68
morf_AbstractSqlDialectTest_testAlterIntegerColumn
/** * Test altering an integer column. */ @Test public void testAlterIntegerColumn() { testAlterTableColumn(TEST_TABLE, AlterationType.ALTER, getColumn(TEST_TABLE, INT_FIELD), column(INT_FIELD, DataType.INTEGER), expectedAlterTableAlterIntegerColumnStatement()); }
3.68
hadoop_BalanceJob_getId
/** * Get the uid of the job. */ public String getId() { return this.id; }
3.68
flink_FutureUtils_checkStateAndGet
/** * Perform check state that future has completed normally and return the result. * * @return the result of completable future. * @throws IllegalStateException Thrown, if future has not completed or it has completed * exceptionally. */ public static <T> T checkStateAndGet(CompletableFuture<T> future) { ...
3.68
dubbo_NettyHttpHandler_executeFilters
/** * execute rest filters * * @param restFilterContext * @param restFilters * @throws Exception */ public void executeFilters(RestFilterContext restFilterContext, List<RestFilter> restFilters) throws Exception { for (RestFilter restFilter : restFilters) { restFilter.filter(restFilterContext); ...
3.68
framework_MouseEventDetails_getName
/** * Returns a human readable text representing the button. * * @return */ public String getName() { return name; }
3.68
hudi_ClusteringPlanStrategy_getPlanVersion
/** * Version to support future changes for plan. */ protected int getPlanVersion() { return CLUSTERING_PLAN_VERSION_1; }
3.68
streampipes_StatementHandler_generatePreparedStatement
/** * Initializes the variables {@link StatementHandler#eventParameterMap} and {@link StatementHandler#preparedStatement} * according to the parameter event. * * @param event The event which is getting analyzed * @throws SpRuntimeException When the tablename is not allowed * @throws SQLException When the pr...
3.68
framework_VTree_selectAllChildrenUntil
/** * Selects all children until a stop child is reached * * @param root * The root not to start from * @param stopNode * The node to finish with * @param includeRootNode * Should the root node be selected * @param includeStopNode * Should the stop node be selected ...
3.68
AreaShop_Utils_isNumeric
/** * Check if an input is numeric. * @param input The input to check * @return true if the input is numeric, otherwise false */ @SuppressWarnings("ResultOfMethodCallIgnored") public static boolean isNumeric(String input) { try { Integer.parseInt(input); return true; } catch(NumberFormatException ignored) { ...
3.68
pulsar_ResourceUnitRanking_getEstimatedLoadPercentageString
/** * Get the load percentage in String, with detail resource usages. */ public String getEstimatedLoadPercentageString() { return String.format( "msgrate: %.0f, load: %.1f%% - cpu: %.1f%%, mem: %.1f%%, directMemory: %.1f%%, " + "bandwidthIn: %.1f%%, bandwidthOut: %.1f%%", this.estimat...
3.68
framework_Escalator_getFooter
/** * Returns the row container for the footer in this Escalator. * * @return the footer. Never <code>null</code> */ public RowContainer getFooter() { return footer; }
3.68
querydsl_PathBuilder_getDate
/** * Create a new Date path * * @param <A> * @param property property name * @param type property type * @return property path */ @SuppressWarnings("unchecked") public <A extends Comparable<?>> DatePath<A> getDate(String property, Class<A> type) { Class<? extends A> vtype = validate(property, type); ret...
3.68
flink_AsyncDataStream_unorderedWait
/** * Adds an AsyncWaitOperator. The order of output stream records may be reordered. * * @param in Input {@link DataStream} * @param func {@link AsyncFunction} * @param timeout for the asynchronous operation to complete * @param timeUnit of the given timeout * @param <IN> Type of input record * @param <OUT> Ty...
3.68
flink_TieredStorageConfiguration_getTotalExclusiveBufferNum
/** * Get the total exclusive buffer number. * * @return the total exclusive buffer number. */ public int getTotalExclusiveBufferNum() { return accumulatorExclusiveBuffers + memoryTierExclusiveBuffers + diskTierExclusiveBuffers + (remoteStorageBasePath == null ? 0 : remoteTie...
3.68
zxing_MatrixToImageWriter_writeToStream
/** * As {@link #writeToStream(BitMatrix, String, OutputStream)}, but allows customization of the output. * * @param matrix {@link BitMatrix} to write * @param format image format * @param stream {@link OutputStream} to write image to * @param config output configuration * @throws IOException if writes to the st...
3.68
hbase_HRegionServer_cleanup
/** * Cleanup after Throwable caught invoking method. Converts <code>t</code> to IOE if it isn't * already. * @param t Throwable * @param msg Message to log in error. Can be null. * @return Throwable converted to an IOE; methods can only let out IOEs. */ private Throwable cleanup(final Throwable t, final String...
3.68
hbase_HMaster_createActiveMasterManager
/** * Protected to have custom implementations in tests override the default ActiveMaster * implementation. */ protected ActiveMasterManager createActiveMasterManager(ZKWatcher zk, ServerName sn, org.apache.hadoop.hbase.Server server) throws InterruptedIOException { return new ActiveMasterManager(zk, sn, server)...
3.68
dubbo_DynamicConfiguration_getConfig
/** * Get the configuration mapped to the given key and the given group with {@link #getDefaultTimeout() the default * timeout} * * @param key the key to represent a configuration * @param group the group where the key belongs to * @return target configuration mapped to the given key and the given group */ def...
3.68
flink_YarnClusterDescriptor_getYarnJobClusterEntrypoint
/** * The class to start the application master with. This class runs the main method in case of * the job cluster. */ protected String getYarnJobClusterEntrypoint() { return YarnJobClusterEntrypoint.class.getName(); }
3.68
framework_AbstractInMemoryContainer_fireItemsRemoved
/** * Notify item set change listeners that items has been removed from the * container. * * @param firstPosition * position of the first visible removed item in the view prior * to removal * @param firstItemId * id of the first visible removed item, of type {@link Object} * ...
3.68
flink_Either_isLeft
/** @return true if this is a Left value, false if this is a Right value */ public final boolean isLeft() { return getClass() == Left.class; }
3.68
morf_UpdateStatement_set
/** * Specifies the fields to set. * * @param destinationFields the fields to update in the database table * @return a statement with the changes applied. */ public UpdateStatement set(AliasedField... destinationFields) { if (AliasedField.immutableDslEnabled()) { return shallowCopy().set(destinationFields).b...
3.68
hbase_SnapshotDescriptionUtils_getCompletedSnapshotDir
/** * Get the directory for a completed snapshot. This directory is a sub-directory of snapshot root * directory and all the data files for a snapshot are kept under this directory. * @param snapshotName name of the snapshot being taken * @param rootDir hbase root directory * @return the final directory for t...
3.68
hbase_Tag_matchingValue
/** * Matches the value part of given tags * @param t1 Tag to match the value * @param t2 Tag to match the value * @return True if values of both tags are same. */ public static boolean matchingValue(Tag t1, Tag t2) { if (t1.hasArray() && t2.hasArray()) { return Bytes.equals(t1.getValueArray(), t1.getValueOf...
3.68
hbase_Pair_getFirst
/** * Return the first element stored in the pair. */ public T1 getFirst() { return first; }
3.68
framework_FilesystemContainer_setRecursive
/** * Sets the container recursive property. Set this to false to limit the * files directly under the root file. * <p> * Note : This is meaningful only if the root really is a directory. * </p> * * @param recursive * the New value for recursive property. */ public void setRecursive(boolean recursiv...
3.68
framework_AbstractInMemoryContainer_internalAddItemAfter
/** * Add an item after a given (visible) item, and perform filtering. An event * is fired if the filtered view changes. * * The new item is added at the beginning if previousItemId is null. * * @param previousItemId * item id of a visible item after which to add the new item, or * null to...
3.68
hudi_FlatteningTransformer_apply
/** * Configs supported. */ @Override public Dataset<Row> apply(JavaSparkContext jsc, SparkSession sparkSession, Dataset<Row> rowDataset, TypedProperties properties) { try { // tmp table name doesn't like dashes String tmpTable = TMP_TABLE.concat(UUID.randomUUID().toString().replace("-", "_")); LOG....
3.68
flink_PythonDriver_constructPythonCommands
/** * Constructs the Python commands which will be executed in python process. * * @param pythonDriverOptions parsed Python command options */ static List<String> constructPythonCommands(final PythonDriverOptions pythonDriverOptions) { final List<String> commands = new ArrayList<>(); // disable output buffe...
3.68
hudi_StreamSync_getClusteringInstantOpt
/** * Schedule clustering. * Called from {@link HoodieStreamer} when async clustering is enabled. * * @return Requested clustering instant. */ public Option<String> getClusteringInstantOpt() { if (writeClient != null) { return writeClient.scheduleClustering(Option.empty()); } else { return Option.empty...
3.68
dubbo_MetadataServiceDelegation_serviceName
/** * Gets the current Dubbo Service name * * @return non-null */ @Override public String serviceName() { return ApplicationModel.ofNullable(applicationModel).getApplicationName(); }
3.68
flink_Time_toMilliseconds
/** * Converts the time interval to milliseconds. * * @return The time interval in milliseconds. */ public long toMilliseconds() { return unit.toMillis(size); }
3.68
streampipes_RuntimeResolvableRequestHandler_handleRuntimeResponse
// for backwards compatibility public RuntimeOptionsResponse handleRuntimeResponse(ResolvesContainerProvidedOptions resolvesOptions, RuntimeOptionsRequest req) throws SpConfigurationException { List<Option> availableOptions = resolvesOptions.resolveOptions(req...
3.68
hbase_RegionScannerImpl_isFilterDone
/** Returns True if a filter rules the scanner is over, done. */ @Override public synchronized boolean isFilterDone() throws IOException { return isFilterDoneInternal(); }
3.68
flink_FlinkAggregateExpandDistinctAggregatesRule_createSelectDistinct
/** * Given an {@link org.apache.calcite.rel.core.Aggregate} and the ordinals of the arguments to a * particular call to an aggregate function, creates a 'select distinct' relational expression * which projects the group columns and those arguments but nothing else. * * <p>For example, given * * <blockquote> * ...
3.68
AreaShop_SignsFeature_update
/** * Update all signs connected to this region. * @return true if all signs are updated correctly, false if one or more updates failed */ public boolean update() { boolean result = true; for(RegionSign sign : signs.values()) { result &= sign.update(); } return result; }
3.68
framework_DesignContext_getContext
/** * Returns the new component context. * * @return the context * * @since 8.5 */ public DesignContext getContext() { return context; }
3.68
hbase_Constraints_enabled
/** * Check to see if the given constraint is enabled. * @param desc {@link TableDescriptor} to check. * @param clazz {@link Constraint} to check for * @return <tt>true</tt> if the {@link Constraint} is present and enabled. <tt>false</tt> * otherwise. * @throws IOException If the constraint has improperl...
3.68
flink_InternalOperatorIOMetricGroup_reuseInputMetricsForTask
/** Causes the containing task to use this operators input record counter. */ public void reuseInputMetricsForTask() { TaskIOMetricGroup taskIO = parentMetricGroup.getTaskIOMetricGroup(); taskIO.reuseRecordsInputCounter(this.numRecordsIn); }
3.68
pulsar_BrokerInterceptor_producerClosed
/** * Called by the broker when a producer is closed. * * @param cnx client Connection * @param producer Producer object * @param metadata A map of metadata */ default void producerClosed(ServerCnx cnx, Producer producer, Map<String, String> metadata) {...
3.68
hbase_Segment_last
// *** Methods for SegmentsScanner public Cell last() { return getCellSet().last(); }
3.68
flink_IOUtils_closeStream
/** * Closes the stream ignoring {@link IOException}. Must only be called in cleaning up from * exception handlers. * * @param stream the stream to close */ public static void closeStream(final java.io.Closeable stream) { cleanup(null, stream); }
3.68
dubbo_DubboCertManager_signWithRsa
/** * Generate key pair with RSA * * @return key pair */ protected static KeyPair signWithRsa() { KeyPair keyPair = null; try { KeyPairGenerator kpGenerator = KeyPairGenerator.getInstance("RSA"); kpGenerator.initialize(4096); java.security.KeyPair keypair = kpGenerator.generateKeyPai...
3.68
hbase_SimpleRegionNormalizer_getAverageRegionSizeMb
/** * Also make sure tableRegions contains regions of the same table * @param tableRegions regions of table to normalize * @param tableDescriptor the TableDescriptor * @return average region size depending on * @see TableDescriptor#getNormalizerTargetRegionCount() */ private double getAverageRegionSizeMb(final...
3.68
hbase_Call_toShortString
/** * Builds a simplified {@link #toString()} that includes just the id and method name. */ public String toShortString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) .append("methodName", md.getName()).toString(); }
3.68
querydsl_AbstractHibernateQuery_setLockMode
/** * Set the lock mode for the given path. * @return the current object */ @SuppressWarnings("unchecked") public Q setLockMode(Path<?> path, LockMode lockMode) { lockModes.put(path, lockMode); return (Q) this; }
3.68
hbase_ServerManager_createDestinationServersList
/** * Calls {@link #createDestinationServersList} without server to exclude. */ public List<ServerName> createDestinationServersList() { return createDestinationServersList(null); }
3.68
framework_ComboBox_isScrollToSelectedItem
/** * Returns true if the select should find the page with the selected item * when opening the popup (single select combo box only). * * @see #setScrollToSelectedItem(boolean) * * @return true if the page with the selected item will be shown when * opening the popup */ public boolean isScrollToSelected...
3.68
framework_AbstractListing_setItemCaptionGenerator
/** * Sets the item caption generator that is used to produce the strings shown * in the combo box for each item. By default, * {@link String#valueOf(Object)} is used. * * @param itemCaptionGenerator * the item caption provider to use, not null */ protected void setItemCaptionGenerator( ItemCa...
3.68
dubbo_Utf8Utils_isNotTrailingByte
/** * Returns whether the byte is not a valid continuation of the form '10XXXXXX'. */ private static boolean isNotTrailingByte(byte b) { return b > (byte) 0xBF; }
3.68
hbase_StorageClusterVersionModel_setVersion
/** * @param version the storage cluster version */ public void setVersion(String version) { this.version = version; }
3.68
hadoop_YarnServerSecurityUtils_parseCredentials
/** * Parses the container launch context and returns a Credential instance that * contains all the tokens from the launch context. * * @param launchContext ContainerLaunchContext. * @return the credential instance * @throws IOException if there are I/O errors. */ public static Credentials parseCredentials( ...
3.68
hadoop_AllocateResponse_setUpdateErrors
/** * Set the list of container update errors to inform the * Application Master about the container updates that could not be * satisfied due to error. * @param updateErrors list of <code>UpdateContainerError</code> for * containers updates requests that were in error */ @Public @Unstable p...
3.68
hbase_MetricsConnection_getNumActionsPerServerHist
/** numActionsPerServerHist metric */ public Histogram getNumActionsPerServerHist() { return numActionsPerServerHist; }
3.68
hbase_NamespacesInstanceResource_post
/** * Build a response for POST create namespace with properties specified. * @param model properties used for create. * @param uriInfo (JAX-RS context variable) request URL * @return response code. */ @POST @Consumes({ MIMETYPE_XML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF }) public Response pos...
3.68
hbase_HMaster_getClientIdAuditPrefix
/** Returns Client info for use as prefix on an audit log string; who did an action */ @Override public String getClientIdAuditPrefix() { return "Client=" + RpcServer.getRequestUserName().orElse(null) + "/" + RpcServer.getRemoteAddress().orElse(null); }
3.68
flink_MemoryLogger_getMemoryPoolStatsAsString
/** * Gets the memory pool statistics from the JVM. * * @param poolBeans The collection of memory pool beans. * @return A string denoting the names and sizes of the memory pools. */ public static String getMemoryPoolStatsAsString(List<MemoryPoolMXBean> poolBeans) { StringBuilder bld = new StringBuilder("Off-he...
3.68
pulsar_PrometheusMetricStreams_flushAllToStream
/** * Flush all the stored metrics to the supplied stream. * @param stream the stream to write to. */ void flushAllToStream(SimpleTextOutputStream stream) { metricStreamMap.values().forEach(s -> stream.write(s.getBuffer())); }
3.68