name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hbase_ClientSnapshotDescriptionUtils_toString
/** * Returns a single line (no \n) representation of snapshot metadata. Use this instead of the * {@code toString} method of * {@link org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription}. * We don't replace * {@link org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos....
3.68
hadoop_DynoInfraUtils_triggerDataNodeBlockReport
/** * Trigger a block report on a given DataNode. * * @param conf Configuration * @param dataNodeTarget The target; should be like {@code <host>:<port>} */ private static void triggerDataNodeBlockReport(Configuration conf, String dataNodeTarget) throws IOException { InetSocketAddress datanodeAddr = NetUtils....
3.68
flink_AbstractStreamOperatorV2_getOperatorName
/** * Return the operator name. If the runtime context has been set, then the task name with * subtask index is returned. Otherwise, the simple class name is returned. * * @return If runtime context is set, then return task name with subtask index. Otherwise return * simple class name. */ protected String get...
3.68
hadoop_FileIoProvider_transferToSocketFully
/** * Transfer data from a FileChannel to a SocketOutputStream. * * @param volume target volume. null if unavailable. * @param sockOut SocketOutputStream to write the data. * @param fileCh FileChannel from which to read data. * @param position position within the channel where the transfer begins. * @param c...
3.68
hbase_HttpServer_setPort
/** * @see #addEndpoint(URI) * @deprecated Since 0.99.0. Use {@link #addEndpoint(URI)} instead. */ @Deprecated public Builder setPort(int port) { this.port = port; return this; }
3.68
framework_SerializerHelper_writeClassArray
/** * Serializes the class references so * {@link #readClassArray(ObjectInputStream)} can deserialize it. Supports * null class arrays. * * @param out * The {@link ObjectOutputStream} to serialize to. * @param classes * An array containing class references or null. * @throws IOException ...
3.68
dubbo_ApplicationModel_reset
// only for unit test @Deprecated public static void reset() { if (FrameworkModel.defaultModel().getDefaultAppModel() != null) { FrameworkModel.defaultModel().getDefaultAppModel().destroy(); } }
3.68
hbase_MasterWalManager_archiveMetaLog
/** * The hbase:meta region may OPEN and CLOSE without issue on a server and then move elsewhere. On * CLOSE, the WAL for the hbase:meta table may not be archived yet (The WAL is only needed if * hbase:meta did not close cleanaly). Since meta region is no long on this server, the * ServerCrashProcedure won't split ...
3.68
hadoop_AllocateResponse_responseId
/** * Set the <code>responseId</code> of the response. * @see AllocateResponse#setResponseId(int) * @param responseId <code>responseId</code> of the response * @return {@link AllocateResponseBuilder} */ @Private @Unstable public AllocateResponseBuilder responseId(int responseId) { allocateResponse.setResponseId(...
3.68
morf_AbstractSqlDialectTest_expectedSelectFirstOrderByNullsLastDesc
/** * @return Expected SQL for {@link #testSelectOrderByTwoFields()} */ protected String expectedSelectFirstOrderByNullsLastDesc() { return "SELECT stringField FROM " + tableName(ALTERNATE_TABLE) + " ORDER BY stringField DESC NULLS LAST LIMIT 0,1"; }
3.68
framework_Range_partitionWith
/** * Overlay this range with another one, and partition the ranges according * to how they position relative to each other. * <p> * The three partitions are returned as a three-element Range array: * <ul> * <li>Elements in this range that occur before elements in * <code>other</code>. * <li>Elements that are s...
3.68
morf_Criterion_getOperator
/** * Get the operator associated with the criterion * * @return the operator */ public Operator getOperator() { return operator; }
3.68
hudi_HoodieWriteHandle_write
/** * Perform the actual writing of the given record into the backing file. */ public void write(HoodieRecord record, Schema schema, TypedProperties props) { doWrite(record, schema, props); }
3.68
flink_RocksDBStateBackend_setDbStoragePaths
/** * Sets the directories in which the local RocksDB database puts its files (like SST and * metadata files). These directories do not need to be persistent, they can be ephemeral, * meaning that they are lost on a machine failure, because state in RocksDB is persisted in * checkpoints. * * <p>If nothing is conf...
3.68
hadoop_NamenodeStatusReport_getWebAddress
/** * Get the web address. * * @return The web address. */ public String getWebAddress() { return this.webAddress; }
3.68
flink_KvStateRegistry_unregisterListener
/** * Unregisters the listener with the registry. * * @param jobId for which to unregister the {@link KvStateRegistryListener} */ public void unregisterListener(JobID jobId) { listeners.remove(jobId); }
3.68
hadoop_TaskInfo_getInputRecords
/** * @return Number of records input to this task. */ public int getInputRecords() { return recsIn; }
3.68
framework_HierarchicalContainer_removeItemRecursively
/** * Removes the Item identified by given itemId and all its children from the * given Container. * * @param container * the container where the item is to be removed * @param itemId * the identifier of the Item to be removed * @return true if the operation succeeded */ public static boo...
3.68
hbase_ScanQueryMatcher_clearCurrentRow
/** * Make {@link #currentRow()} return null. */ public void clearCurrentRow() { currentRow = null; }
3.68
hadoop_TypedBytesOutput_writeBool
/** * Writes a boolean as a typed bytes sequence. * * @param b the boolean to be written * @throws IOException */ public void writeBool(boolean b) throws IOException { out.write(Type.BOOL.code); out.writeBoolean(b); }
3.68
flink_EventTimeSessionWindows_mergeWindows
/** Merge overlapping {@link TimeWindow}s. */ @Override public void mergeWindows( Collection<TimeWindow> windows, MergingWindowAssigner.MergeCallback<TimeWindow> c) { TimeWindow.mergeWindows(windows, c); }
3.68
framework_VCalendarPanel_focusDay
/** * Sets the focus to given date in the current view. Used when moving in the * calendar with the keyboard. * * @param date * A Date representing the day of month to be focused. Must be * one of the days currently visible. */ private void focusDay(Date date) { // Only used when calend...
3.68
hadoop_RouterMetricsService_getNamenodeMetrics
/** * Get the Namenode metrics. * * @return Namenode metrics. */ public NamenodeBeanMetrics getNamenodeMetrics() { return this.nnMetrics; }
3.68
hudi_Pipelines_boundedBootstrap
/** * Constructs bootstrap pipeline for batch execution mode. * The indexing data set is loaded before the actual data write * in order to support batch UPSERT. */ private static DataStream<HoodieRecord> boundedBootstrap( Configuration conf, RowType rowType, DataStream<RowData> dataStream) { final Row...
3.68
flink_ProducerMergedPartitionFileReader_getReadStartAndEndOffset
/** * Return a tuple of the start and end file offset, or return null if the buffer is not found in * the data index. */ @Nullable private Tuple2<Long, Long> getReadStartAndEndOffset( TieredStorageSubpartitionId subpartitionId, int bufferIndex, @Nullable ReadProgress currentReadProgress, ...
3.68
framework_TableQuery_getFullTableName
/** * Returns the complete table name obtained by concatenation of the catalog * and schema names (if any) and the table name. * * This method can be overridden if customization is needed. * * @return table name in the form it should be used in query and update * statements * @since 7.1 */ protected St...
3.68
hbase_CoprocessorHost_loadSystemCoprocessors
/** * Load system coprocessors once only. Read the class names from configuration. Called by * constructor. */ protected void loadSystemCoprocessors(Configuration conf, String confKey) { boolean coprocessorsEnabled = conf.getBoolean(COPROCESSORS_ENABLED_CONF_KEY, DEFAULT_COPROCESSORS_ENABLED); if (!coprocess...
3.68
dubbo_RpcServiceContext_getMethodName
/** * get method name. * * @return method name. */ @Override public String getMethodName() { return methodName; }
3.68
pulsar_ConfigValidationUtils_listFv
/** * Returns a new NestableFieldValidator for a List where each item is validated by validator. * * @param validator used to validate each item in the list * @param notNull whether or not a value of null is valid * @return a NestableFieldValidator for a list with each item validated by a different validator. *...
3.68
hadoop_TFile_getLastKey
/** * Get the last key in the TFile. * * @return The last key in the TFile. * @throws IOException raised on errors performing I/O. */ public RawComparable getLastKey() throws IOException { checkTFileDataIndex(); return tfileIndex.getLastKey(); }
3.68
hadoop_BondedS3AStatisticsContext_addValueToQuantiles
/** * Add a value to a quantiles statistic. No-op if the quantile * isn't found. * @param op operation to look up. * @param value value to add. * @throws ClassCastException if the metric is not a Quantiles. */ @Override public void addValueToQuantiles(Statistic op, long value) { getInstrumentation().addValueToQ...
3.68
framework_PureGWTTestApplication_getTestedWidget
/** * Gets the tested widget. * * @return tested widget */ public T getTestedWidget() { return testedWidget; }
3.68
rocketmq-connect_RecordOffsetManagement_ack
/** * Acknowledge this record; signals that its offset may be safely committed. */ public void ack() { if (this.acked.compareAndSet(false, true)) { messageAcked(); } }
3.68
pulsar_MetaStoreImpl_compressManagedInfo
/** * Compress Managed Info data such as LedgerInfo, CursorInfo. * * compression data structure * [MAGIC_NUMBER](2) + [METADATA_SIZE](4) + [METADATA_PAYLOAD] + [MANAGED_LEDGER_INFO_PAYLOAD] */ private byte[] compressManagedInfo(byte[] info, byte[] metadata, int metadataSerializedSize, ...
3.68
flink_WatermarkStrategy_forGenerator
/** Creates a watermark strategy based on an existing {@link WatermarkGeneratorSupplier}. */ static <T> WatermarkStrategy<T> forGenerator(WatermarkGeneratorSupplier<T> generatorSupplier) { return generatorSupplier::createWatermarkGenerator; }
3.68
flink_FutureUtils_forward
/** * Forwards the value from the source future to the target future. * * @param source future to forward the value from * @param target future to forward the value to * @param <T> type of the value */ public static <T> void forward(CompletableFuture<T> source, CompletableFuture<T> target) { source.whenComple...
3.68
framework_ConverterUtil_canConverterHandle
/** * Checks if the given converter can handle conversion between the given * presentation and model type. Does strict type checking and only returns * true if the converter claims it can handle exactly the given types. * * @see #canConverterPossiblyHandle(Converter, Class, Class) * * @param converter * ...
3.68
framework_PointerEventSupportImpl_init
/** * Initializes event support. */ protected void init() { }
3.68
querydsl_SimpleExpression_ne
/** * Create a {@code this <> right} expression * * @param right rhs of the comparison * @return this != right */ public BooleanExpression ne(Expression<? super T> right) { return Expressions.booleanOperation(Ops.NE, mixin, right); }
3.68
flink_StreamExecutionEnvironment_isForceCheckpointing
/** * Returns whether checkpointing is force-enabled. * * @deprecated Forcing checkpoints will be removed in future version. */ @Deprecated @SuppressWarnings("deprecation") @PublicEvolving public boolean isForceCheckpointing() { return checkpointCfg.isForceCheckpointing(); }
3.68
hadoop_OBSListing_createLocatedFileStatusIterator
/** * Create a located status iterator over a file status iterator. * * @param statusIterator an iterator over the remote status entries * @return a new remote iterator */ LocatedFileStatusIterator createLocatedFileStatusIterator( final RemoteIterator<FileStatus> statusIterator) { return new LocatedFileStatu...
3.68
hadoop_NamenodeStatusReport_getHighestPriorityLowRedundancyECBlocks
/** * Gets the total number of erasure coded low redundancy blocks on the cluster * with the highest risk of loss. * * @return the total number of low redundancy blocks on the cluster * with the highest risk of loss. */ public long getHighestPriorityLowRedundancyECBlocks() { return this.highestPriorityLowRedund...
3.68
hbase_RegionServerSpaceQuotaManager_getActivePoliciesAsMap
/** * Converts a map of table to {@link SpaceViolationPolicyEnforcement}s into * {@link SpaceViolationPolicy}s. */ public Map<TableName, SpaceQuotaSnapshot> getActivePoliciesAsMap() { final Map<TableName, SpaceViolationPolicyEnforcement> enforcements = copyActiveEnforcements(); final Map<TableName, SpaceQuotaSna...
3.68
hadoop_RegistryDNSServer_main
/** * Lanches the server instance. * @param args the command line args. * @throws IOException if command line options can't be parsed */ public static void main(String[] args) throws IOException { StringUtils.startupShutdownMessage(RegistryDNSServer.class, args, LOG); Configuration conf = new RegistryConfigurat...
3.68
hadoop_NamenodeStatusReport_getNumInMaintenanceLiveDataNodes
/** * Get the number of live in maintenance nodes. * * @return The number of live in maintenance nodes. */ public int getNumInMaintenanceLiveDataNodes() { return this.inMaintenanceLiveDataNodes; }
3.68
hibernate-validator_StringHelper_toShortString
/** * Creates a compact string representation of the given type, useful for debugging or toString() methods. Package * names are shortened, e.g. "org.hibernate.validator.internal.engine" becomes "o.h.v.i.e". Not to be used for * user-visible log messages. */ public static String toShortString(Type type) { if ( typ...
3.68
framework_Criterion_setKey
/** * Sets the key of the payload to be compared. * * @param key * key of the payload to be compared */ public void setKey(String key) { this.key = key; }
3.68
zxing_DetectionResult_adjustRowNumber
/** * @return true, if row number was adjusted, false otherwise */ private static boolean adjustRowNumber(Codeword codeword, Codeword otherCodeword) { if (otherCodeword == null) { return false; } if (otherCodeword.hasValidRowNumber() && otherCodeword.getBucket() == codeword.getBucket()) { codeword.setRo...
3.68
pulsar_PushPulsarSource_consume
/** * Attach a consumer function to this Source. This is invoked by the implementation * to pass messages whenever there is data to be pushed to Pulsar. * * @param record next message from source which should be sent to a Pulsar topic */ public void consume(Record<T> record) { try { queue.put(record); ...
3.68
hadoop_IOStatisticsStore_incrementCounter
/** * Increment a counter by one. * * No-op if the counter is unknown. * @param key statistics key * @return old value or, if the counter is unknown: 0 */ default long incrementCounter(String key) { return incrementCounter(key, 1); }
3.68
hbase_ExampleMasterObserverWithMetrics_getTotalMemory
/** Returns the total memory of the process. We will use this to define a gauge metric */ private long getTotalMemory() { return Runtime.getRuntime().totalMemory(); }
3.68
hadoop_ZStandardCompressor_reinit
/** * Prepare the compressor to be used in a new stream with settings defined in * the given Configuration. It will reset the compressor's compression level * and compression strategy. * * @param conf Configuration storing new settings */ @Override public void reinit(Configuration conf) { if (conf == null) { ...
3.68
hbase_WALSplitter_split
/** * Split a folder of WAL files. Delete the directory when done. Used by tools and unit tests. It * should be package private. It is public only because TestWALObserver is in a different package, * which uses this method to do log splitting. * @return List of output files created by the split. */ public static L...
3.68
framework_WebBrowser_isTouchDevice
/** * @return true if the browser is detected to support touch events */ public boolean isTouchDevice() { return touchDevice; }
3.68
hadoop_ReencryptionStatus_addZoneIfNecessary
/** * @param zoneId * @return true if this is a zone is added. */ private boolean addZoneIfNecessary(final Long zoneId, final String name, final ReencryptionInfoProto reProto) { if (!zoneStatuses.containsKey(zoneId)) { LOG.debug("Adding zone {} for re-encryption status", zoneId); Preconditions.checkNot...
3.68
hbase_HBaseCluster_restoreClusterMetrics
/** * Restores the cluster to given state if this is a real cluster, otherwise does nothing. This is * a best effort restore. If the servers are not reachable, or insufficient permissions, etc. * restoration might be partial. * @return whether restoration is complete */ public boolean restoreClusterMetrics(Cluster...
3.68
hbase_HBaseTestingUtility_truncateTable
/** * Truncate a table using the admin command. Effectively disables, deletes, and recreates the * table. For previous behavior of issuing row deletes, see deleteTableData. Expressly does not * preserve regions of existing table. * @param tableName table which must exist. * @return HTable for the new table */ pub...
3.68
dubbo_LoadingStrategy_includedPackages
/** * To restrict some class that should not be loaded from `org.apache.dubbo` package type SPI class. * For example, we can restrict the implementation class which package is `org.xxx.xxx` * can be loaded as SPI implementation. * * @return packages can be loaded in `org.apache.dubbo`'s SPI */ default String[] in...
3.68
morf_SqlDialect_getLeastFunctionName
/** * @return The name of the LEAST function */ protected String getLeastFunctionName() { return "LEAST"; }
3.68
hbase_HFileBlock_getPrevBlockOffset
/** Returns the offset of the previous block of the same type in the file, or -1 if unknown */ long getPrevBlockOffset() { return prevBlockOffset; }
3.68
hadoop_AbfsCountersImpl_createCounter
/** * Create a counter in the registry. * * @param stats AbfsStatistic whose counter needs to be made. * @return counter or null. */ private MutableCounterLong createCounter(AbfsStatistic stats) { return registry.newCounter(stats.getStatName(), stats.getStatDescription(), 0L); }
3.68
framework_VCalendar_updateWeekGrid
/** * Re-render the week grid. * * @param daysCount * The amount of days to include in the week * @param days * The days * @param today * Todays date * @param realDayNames * The names of the dates */ @SuppressWarnings("deprecation") public void updateWeekGrid(int d...
3.68
hmily_LogUtil_getInstance
/** * Gets instance. * * @return the instance */ public static LogUtil getInstance() { return LOG_UTIL; }
3.68
flink_DoubleHashSet_add
/** See {@link Double#equals(Object)}. */ public boolean add(final double k) { long longKey = Double.doubleToLongBits(k); if (longKey == 0L) { if (this.containsZero) { return false; } this.containsZero = true; } else { double[] key = this.key; int pos; ...
3.68
hudi_HoodieBaseParquetWriter_handleParquetBloomFilters
/** * Once we get parquet version >= 1.12 among all engines we can cleanup the reflexion hack. * * @param parquetWriterbuilder * @param hadoopConf */ protected void handleParquetBloomFilters(ParquetWriter.Builder parquetWriterbuilder, Configuration hadoopConf) { // inspired from https://github.com/apache/parquet...
3.68
pulsar_RangeEntryCacheImpl_readFromStorage
/** * Reads the entries from Storage. * @param lh the handle * @param firstEntry the first entry * @param lastEntry the last entry * @param shouldCacheEntry if we should put the entry into the cache * @return a handle to the operation */ CompletableFuture<List<EntryImpl>> readFromStorage(ReadHandle lh, ...
3.68
flink_BatchTask_openUserCode
/** * Opens the given stub using its {@link * org.apache.flink.api.common.functions.RichFunction#open(OpenContext)} method. If the open * call produces an exception, a new exception with a standard error message is created, using * the encountered exception as its cause. * * @param stub The user code instance to ...
3.68
framework_AbstractClientConnector_getListeners
/** * Returns all listeners that are registered for the given event type or one * of its subclasses. * * @param eventType * The type of event to return listeners for. * @return A collection with all registered listeners. Empty if no listeners * are found. */ public Collection<?> getListeners(...
3.68
open-banking-gateway_HbciConsentInfo_noAccountsConsentPresent
/** * Any kind of consent exists? */ public boolean noAccountsConsentPresent(AccountListHbciContext ctx) { if (ctx.isConsentIncompatible()) { return true; } Optional<HbciResultCache> cached = cachedResultAccessor.resultFromCache(ctx); return cached.map(hbciResultCache -> null == hbciResultCac...
3.68
flink_DagConnection_getSource
/** * Gets the source of the connection. * * @return The source Node. */ public OptimizerNode getSource() { return this.source; }
3.68
open-banking-gateway_Xs2aTransactionParameters_toParameters
// TODO - MapStruct? @Override public RequestParams toParameters() { var requestParamsMap = RequestParams.builder() .withBalance(super.getWithBalance()) .bookingStatus(bookingStatus) .dateFrom(dateFrom) .dateTo(dateTo) .build() .toMap(); O...
3.68
flink_ResourceSpec_setExtendedResources
/** * Add the given extended resources. This will discard all the previous added extended * resources. */ public Builder setExtendedResources(Collection<ExternalResource> extendedResources) { this.extendedResources = extendedResources.stream() .collect( ...
3.68
shardingsphere-elasticjob_ClassPathJobScanner_doScan
/** * Calls the parent search that will search and register all the candidates by {@code ElasticJobConfiguration}. * * @param basePackages the packages to check for annotated classes */ @Override protected Set<BeanDefinitionHolder> doScan(final String... basePackages) { addIncludeFilter(new AnnotationTypeFilter...
3.68
flink_SkipListUtils_helpGetValueVersion
/** * Returns the version of the value. * * @param valuePointer the pointer to the value. * @param spaceAllocator the space allocator. */ static int helpGetValueVersion(long valuePointer, Allocator spaceAllocator) { Chunk chunk = spaceAllocator.getChunkById(SpaceUtils.getChunkIdByAddress(valuePointer)); in...
3.68
framework_DragAndDropWrapper_getHorizontalDropLocation
/** * @return a detail about the drags horizontal position over the * wrapper. */ public HorizontalDropLocation getHorizontalDropLocation() { return HorizontalDropLocation .valueOf((String) getData("horizontalLocation")); }
3.68
hbase_UserProvider_load
// Since UGI's don't hash based on the user id // The cache needs to be keyed on the same thing that Hadoop's Groups class // uses. So this cache uses shortname. @Override public String[] load(String ugi) throws Exception { return getGroupStrings(ugi); }
3.68
flink_ProcessingTimeSessionWindows_withDynamicGap
/** * Creates a new {@code SessionWindows} {@link WindowAssigner} that assigns elements to sessions * based on the element timestamp. * * @param sessionWindowTimeGapExtractor The extractor to use to extract the time gap from the * input elements * @return The policy. */ @PublicEvolving public static <T> Dyna...
3.68
AreaShop_RentRegion_getMaxExtends
/** * Get the max number of extends of this region. * @return -1 if infinite otherwise the maximum number */ public int getMaxExtends() { return getIntegerSetting("rent.maxExtends"); }
3.68
streampipes_DataStreamApi_all
/** * Get all available data streams * * @return {@link org.apache.streampipes.model.SpDataStream} A list of all data streams owned by the user. */ @Override public List<SpDataStream> all() { return getAll(getBaseResourcePath()); }
3.68
flink_BackgroundTask_initialBackgroundTask
/** * Creates an initial background task. This means that this background task has no predecessor. * * @param task task to run * @param executor executor to run the task * @param <V> type of the result * @return initial {@link BackgroundTask} representing the task to execute */ static <V> BackgroundTask<V> initi...
3.68
flink_Schema_newBuilder
/** Builder for configuring and creating instances of {@link Schema}. */ public static Schema.Builder newBuilder() { return new Builder(); }
3.68
hbase_HFilePrettyPrinter_outputTo
/** * Write to the given {@link PrintStream}. * @param output a {@link PrintStream} instance. * @return {@code this} */ public Builder outputTo(PrintStream output) { this.output = output; return this; }
3.68
hbase_CellUtil_toString
/** Returns a string representation of the cell */ public static String toString(Cell cell, boolean verbose) { if (cell == null) { return ""; } StringBuilder builder = new StringBuilder(); String keyStr = getCellKeyAsString(cell); String tag = null; String value = null; if (verbose) { // TODO: pr...
3.68
querydsl_NumberExpression_lt
/** * Create a {@code this < right} expression * * @param <A> * @param right rhs of the comparison * @return {@code this < right} * @see java.lang.Comparable#compareTo(Object) */ public final <A extends Number & Comparable<?>> BooleanExpression lt(Expression<A> right) { return Expressions.booleanOperation(Op...
3.68
framework_AbstractErrorMessage_toString
/* Documented in superclass */ @Override public String toString() { return getMessage(); }
3.68
framework_FileUploadHandler_matchForBoundary
/** * Reads the input to expect a boundary string. Expects that the first * character has already been matched. * * @return -1 if the boundary was matched, else returns the first byte * from boundary * @throws IOException */ private int matchForBoundary() throws IOException { matchedCount = 0; /*...
3.68
MagicPlugin_MapController_getURLItem
/** * Get a new ItemStack for the specified url with a specific cropping. * */ @Override public ItemStack getURLItem(String world, String url, String name, int x, int y, int width, int height, Integer priority) { MapView mapView = getURL(world, url, name, x, y, null, null, width, height, priority); return ge...
3.68
flink_HadoopUtils_paramsFromGenericOptionsParser
/** * Returns {@link ParameterTool} for the arguments parsed by {@link GenericOptionsParser}. * * @param args Input array arguments. It should be parsable by {@link GenericOptionsParser} * @return A {@link ParameterTool} * @throws IOException If arguments cannot be parsed by {@link GenericOptionsParser} * @see Ge...
3.68
framework_DesignContext_readPackageMappings
/** * Reads and stores the mappings from prefixes to package names from meta * tags located under <head> in the html document. * * @param doc * the document */ protected void readPackageMappings(Document doc) { Element head = doc.head(); if (head == null) { return; } for (Node c...
3.68
hbase_HRegionServer_submitRegionProcedure
/** * Will ignore the open/close region procedures which already submitted or executed. When master * had unfinished open/close region procedure and restarted, new active master may send duplicate * open/close region request to regionserver. The open/close request is submitted to a thread pool * and execute. So fir...
3.68
hudi_RocksDBDAO_loadManagedColumnFamilies
/** * Helper to load managed column family descriptors. */ private List<ColumnFamilyDescriptor> loadManagedColumnFamilies(DBOptions dbOptions) throws RocksDBException { final List<ColumnFamilyDescriptor> managedColumnFamilies = new ArrayList<>(); final Options options = new Options(dbOptions, new ColumnFamilyOpti...
3.68
framework_MultiSelect_select
/** * Adds the given items to the set of currently selected items. * <p> * By default this does not clear any previous selection. To do that, use * {@link #deselectAll()}. * <p> * If the all the items were already selected, this is a NO-OP. * <p> * This is a short-hand for {@link #updateSelection(Set, Set)} wit...
3.68
hadoop_QueueCapacityUpdateContext_addUpdateWarning
/** * Adds an update warning to the context. * @param warning warning during update phase */ public void addUpdateWarning(QueueUpdateWarning warning) { warnings.add(warning); }
3.68
open-banking-gateway_FintechSecureStorage_psuAspspKeyFromPrivate
/** * Reads PSU/Fintechs' user private key from FinTechs' private storage. * @param session Service session with which consent is associated. * @param fintech Owner of the private storage. * @param password FinTechs' Datasafe/KeyStore password. * @return PSU/Fintechs' user consent protection key. */ @SneakyThrows...
3.68
hadoop_DynoInfraUtils_getNameNodeTrackingUri
/** * Get the URI that can be used to access the tracking interface for the * NameNode, i.e. the web UI of the NodeManager hosting the NameNode * container. * * @param nameNodeProperties The set of properties representing the * information about the launched NameNode. * @return The trac...
3.68
hudi_CloudObjectsSelector_deleteProcessedMessages
/** * Delete Queue Messages after hudi commit. This method will be invoked by source.onCommit. */ public void deleteProcessedMessages(SqsClient sqs, String queueUrl, List<Message> processedMessages) { if (!processedMessages.isEmpty()) { // create batch for deletion, SES DeleteMessageBatchRequest only accept max...
3.68
morf_TableLoader_builder
/** * @return A new {@link TableLoaderBuilder}. */ public static TableLoaderBuilder builder() { return new TableLoaderBuilderImpl(); }
3.68
hudi_HoodieHiveUtils_getIncrementalTableNames
/** * Returns a list of tableNames for which hoodie.<tableName>.consume.mode is set to incremental else returns empty List * * @param job * @return */ public static List<String> getIncrementalTableNames(JobContext job) { Map<String, String> tablesModeMap = job.getConfiguration() .getValByRegex(HOODIE_CONSU...
3.68
hadoop_PathLocation_hasMultipleDestinations
/** * Check if this location supports multiple clusters/paths. * * @return If it has multiple destinations. */ public boolean hasMultipleDestinations() { return this.destinations.size() > 1; }
3.68
flink_ThriftObjectConversions_toTTableSchema
/** Similar logic in the {@code org.apache.hive.service.cli.ColumnDescriptor}. */ public static TTableSchema toTTableSchema(ResolvedSchema schema) { TTableSchema tSchema = new TTableSchema(); for (int i = 0; i < schema.getColumnCount(); i++) { Column column = schema.getColumns().get(i); TColumn...
3.68