name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
dubbo_SlidingWindow_calculatePaneIdx
/** * Calculate the pane index corresponding to the specified timestamp. * * @param timeMillis the specified timestamp. * @return the pane index corresponding to the specified timestamp. */ private int calculatePaneIdx(long timeMillis) { return (int) ((timeMillis / paneIntervalInMs) % paneCount); }
3.68
graphhopper_LandmarkStorage_getSubnetworksWithLandmarks
/** * @return the number of subnetworks that have landmarks */ public int getSubnetworksWithLandmarks() { return landmarkIDs.size(); }
3.68
hadoop_UnmanagedApplicationManager_monitorCurrentAppAttempt
/** * Monitor the submitted application and attempt until it reaches certain * states. * * @param appId Application Id of application to be monitored * @param appStates acceptable application state * @param attemptState acceptable application attempt state * @return the application report * @throws YarnExceptio...
3.68
flink_MiniCluster_startTaskManager
/** * Starts additional TaskManager process. * * <p>When the MiniCluster starts up, it always starts {@link * MiniClusterConfiguration#getNumTaskManagers} TaskManagers. All TaskManagers are indexed from * 0 to the number of TaskManagers, started so far, minus one. This method starts a TaskManager * with the next ...
3.68
morf_TableReference_getDblink
/** * Get the dblink for the table * * @return the dblink */ public String getDblink() { return dblink; }
3.68
flink_SpillingBuffer_close
/** * @return A list with all memory segments that have been taken from the memory segment source. */ public List<MemorySegment> close() throws IOException { final ArrayList<MemorySegment> segments = new ArrayList<MemorySegment>( this.fullSegments.size() + this.numMemorySegmentsInW...
3.68
hudi_AvroSchemaConverter_convertToDataType
/** * Converts an Avro schema {@code schema} into a nested row structure with deterministic field order and * data types that are compatible with Flink's Table & SQL API. * * @param schema Avro schema definition * @return data type matching the schema */ public static DataType convertToDataType(Schema schema) { ...
3.68
flink_DataSourceTask_getLogString
/** * Utility function that composes a string for logging purposes. The string includes the given * message and the index of the task in its task group together with the number of tasks in the * task group. * * @param message The main message for the log. * @param taskName The name of the task. * @return The str...
3.68
flink_FileSourceSplit_updateWithCheckpointedPosition
/** * Creates a copy of this split where the checkpointed position is replaced by the given new * position. * * <p><b>IMPORTANT:</b> Subclasses that add additional information to the split must override * this method to return that subclass type. This contract is enforced by checks in the file * source implementa...
3.68
hadoop_LoggingAuditor_activate
/** * Activate: log at TRACE. * @return this span. */ @Override public AuditSpanS3A activate() { LOG.trace("[{}] {} Activate {}", currentThreadID(), getSpanId(), getDescription()); return this; }
3.68
morf_AbstractSqlDialectTest_expectedSqlForMathOperations16
/** * @return expected SQL for math operation 16 */ protected String expectedSqlForMathOperations16() { return "a + b + c / 2 + z"; }
3.68
framework_Navigator_getStateManager
/** * Returns the {@link NavigationStateManager} that is used to get, listen to * and manipulate the navigation state used by this Navigator. * * @return NavigationStateManager in use */ protected NavigationStateManager getStateManager() { return stateManager; }
3.68
hbase_HRegionServer_checkCodecs
/** * Run test on configured codecs to make sure supporting libs are in place. */ private static void checkCodecs(final Configuration c) throws IOException { // check to see if the codec list is available: String[] codecs = c.getStrings(REGIONSERVER_CODEC, (String[]) null); if (codecs == null) { return; }...
3.68
morf_FieldLiteral_getValue
/** * @return the value */ public String getValue() { return value; }
3.68
dubbo_TriHttp2RemoteFlowController_enqueueFrame
/** * Add a frame to be sent via flow control. * @param state The state associated with the stream which the {@code frame} is associated with. * @param frame the frame to enqueue. * @throws Http2Exception If a writability error occurs. */ void enqueueFrame(FlowState state, FlowControlled frame) throws Http2Excepti...
3.68
flink_AbstractRowTimeUnboundedPrecedingOver_insertToSortedList
/** * Inserts timestamps in order into a linked list. If timestamps arrive in order (as in case of * using the RocksDB state backend) this is just an append with O(1). */ private void insertToSortedList(Long recordTimestamp) { ListIterator<Long> listIterator = sortedTimestamps.listIterator(sortedTimestamps.size(...
3.68
graphhopper_VectorTile_clearKeys
/** * <pre> * Dictionary encoding for keys * </pre> * * <code>repeated string keys = 3;</code> */ public Builder clearKeys() { keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; }
3.68
dubbo_StringUtils_removeEnd
/** * <p>Removes a substring only if it is at the end of a source string, * otherwise returns the source string.</p> * * <p>A {@code null} source string will return {@code null}. * An empty ("") source string will return the empty string. * A {@code null} search string will return the source string.</p> * * <pr...
3.68
hadoop_SingleFilePerBlockCache_blocks
/** * Gets the blocks in this cache. */ @Override public Iterable<Integer> blocks() { return Collections.unmodifiableList(new ArrayList<>(blocks.keySet())); }
3.68
framework_VScrollTable_handleTouchEvent
/** * Special handler for touch devices that support native scrolling * * @return Whether the event was handled by this method. */ private boolean handleTouchEvent(final Event event) { boolean touchEventHandled = false; if (enabled && HAS_NATIVE_TOUCH_SCROLLLING) { touchContextProvider.handleTouch...
3.68
AreaShop_Utils_initialize
/** * Initialize the utilities class with constants. * @param pluginConfig The config of the plugin */ public static void initialize(YamlConfiguration pluginConfig) { config = pluginConfig; // Setup individual identifiers seconds = getSetAndDefaults("seconds"); minutes = getSetAndDefaults("minutes"); hours = g...
3.68
framework_VCalendar_distributeSize
/** * Calculates correct size for all cells (size / amount of cells ) and * distributes any overflow over all the cells. * * @param totalSize * the total amount of size reserved for all cells * @param numberOfCells * the number of cells * @param sizeModifier * a modifier which ...
3.68
pulsar_ClientConfiguration_getConcurrentLookupRequest
/** * Get configured total allowed concurrent lookup-request. * * @return */ public int getConcurrentLookupRequest() { return confData.getConcurrentLookupRequest(); }
3.68
hbase_Client_post
/** * Send a POST request * @param cluster the cluster definition * @param path the path or URI * @param headers the HTTP headers to include, <tt>Content-Type</tt> must be supplied * @param content the content bytes * @return a Response object with response detail */ public Response post(Cluster cluster, Stri...
3.68
hadoop_MawoConfiguration_getTeardownWorkerValidityInterval
/** * Get Teardown worker validity interval. * @return value of master.teardown-worker.validity-interval.ms */ public long getTeardownWorkerValidityInterval() { return Long.parseLong(configsMap.get( MASTER_TEARDOWN_WORKER_VALIDITY_INTERVAL_MS)); }
3.68
framework_ReflectTools_setJavaFieldValue
/** * Sets the value of a java field. * <p> * Uses setter if present, otherwise tries to access even private fields * directly. * * @param object * The object containing the field * @param field * The field we want to set the value for * @param value * The value to set * @th...
3.68
framework_LegacyApplication_setLogoutURL
/** * Sets the URL user is redirected to on application close. If the URL is * <code>null</code>, the application is closed normally as defined by the * application running environment: Desktop application just closes the * application window and web-application redirects the browser to * application main URL. * ...
3.68
hbase_BlockingRpcConnection_waitForWork
/* * wait till someone signals us to start reading RPC response or it is idle too long, it is marked * as to be closed, or the client is marked as not running. * @return true if it is time to read a response; false otherwise. */ private synchronized boolean waitForWork() { // beware of the concurrent access to th...
3.68
flink_TimestampsAndWatermarksTransformation_getWatermarkStrategy
/** Returns the {@code WatermarkStrategy} to use. */ public WatermarkStrategy<IN> getWatermarkStrategy() { return watermarkStrategy; }
3.68
framework_VaadinService_requestEnd
/** * Called after the framework has handled a request and the response has * been written. * * @param request * The request object * @param response * The response object * @param session * The session which was used during the request or null if the * request did ...
3.68
hbase_FuzzyRowFilter_preprocessMask
/** * We need to preprocess mask array, as since we treat 2's as unfixed positions and -1 (0xff) as * fixed positions * @return mask array */ private byte[] preprocessMask(byte[] mask) { if (!UNSAFE_UNALIGNED) { // do nothing return mask; } if (isPreprocessedMask(mask)) return mask; for (int i = 0; ...
3.68
hadoop_HttpReferrerAuditHeader_buildHttpReferrer
/** * Build the referrer string. * This includes dynamically evaluating all of the evaluated * attributes. * If there is an error creating the string it will be logged once * per entry, and "" returned. * @return a referrer string or "" */ public String buildHttpReferrer() { String header; try { String ...
3.68
open-banking-gateway_Xs2aConsentInfo_isMultipleScaAvailable
/** * Is the current consent authorization using multiple SCA methods (SMS,email,etc.) */ public boolean isMultipleScaAvailable(Xs2aContext ctx) { return null != ctx.getAvailableSca() && !ctx.getAvailableSca().isEmpty(); }
3.68
querydsl_ColumnMetadata_getDigits
/** * the number of fractional digits * * @return digits */ public int getDigits() { return decimalDigits; }
3.68
hadoop_AbstractS3ACommitter_getRole
/** * Used in logging and reporting to help disentangle messages. * @return the committer's role. */ protected String getRole() { return role; }
3.68
framework_WebBrowser_isFirefox
/** * Tests whether the user is using Firefox. * * @return true if the user is using Firefox, false if the user is not using * Firefox or if no information on the browser is present */ public boolean isFirefox() { if (browserDetails == null) { return false; } return browserDetails.isFi...
3.68
morf_TableLoader_load
/** * Load the specified records into the table. * * @param records the records to load. */ public void load(final Iterable<Record> records) { if (truncateBeforeLoad) { truncate(table); } insertOrMergeRecords(records); }
3.68
flink_ArrayColumnReader_collectDataFromParquetPage
/** * Collects data from a parquet page and returns the final row index where it stopped. The * returned index can be equal to or less than total. * * @param total maximum number of rows to collect * @param lcv column vector to do initial setup in data collection time * @param valueList collection of values that ...
3.68
hbase_MemStoreCompactor_stop
/** * ---------------------------------------------------------------------- The request to cancel * the compaction asynchronous task The compaction may still happen if the request was sent too * late Non-blocking request */ public void stop() { isInterrupted.compareAndSet(false, true); }
3.68
flink_CompletedOperationCache_finishOperation
/** * Creates a new instance of the tracker with the result of the asynchronous operation set. */ public ResultAccessTracker<R> finishOperation(final OperationResult<R> operationResult) { checkState(!this.operationResult.isFinished()); return new ResultAccessTracker<>(checkNotNull(operationResult), this.acce...
3.68
framework_GridDragSource_getGrid
/** * Gets the grid this extension has been attached to. * * @return the grid for this extension * @since 8.2 */ public Grid<T> getGrid() { return getParent(); }
3.68
morf_SqlServerDialect_preInsertWithPresetAutonumStatements
/** * @see org.alfasoftware.morf.jdbc.SqlDialect#preInsertWithPresetAutonumStatements(org.alfasoftware.morf.metadata.Table, boolean) */ @Override public Collection<String> preInsertWithPresetAutonumStatements(Table table, boolean insertingUnderAutonumLimit) { if (getAutoIncrementColumnForTable(table) != null) { ...
3.68
dubbo_InternalThreadLocal_onRemoval
/** * Invoked when this thread local variable is removed by {@link #remove()}. */ protected void onRemoval(@SuppressWarnings("unused") V value) throws Exception { }
3.68
hadoop_TaskManifest_getDestDirectories
/** * All the destination directories. * @return directory list. */ public List<DirEntry> getDestDirectories() { return destDirectories; }
3.68
hbase_MonitoredRPCHandlerImpl_getRPCPacketLength
/** * Produces a string representation of the method currently being serviced by this Handler. * @return A human-readable string representation of the method call. */ @Override public long getRPCPacketLength() { if (getState() != State.RUNNING || packet == null) { // no RPC is currently running, or we don't ha...
3.68
hbase_Bytes_toBoolean
/** * Reverses {@link #toBytes(boolean)} * @param b array * @return True or false. */ public static boolean toBoolean(final byte[] b) { if (b.length != 1) { throw new IllegalArgumentException("Array has wrong size: " + b.length); } return b[0] != (byte) 0; }
3.68
hbase_TimeRange_getMin
/** Returns the smallest timestamp that should be considered */ public long getMin() { return minStamp; }
3.68
hadoop_StateStoreUtils_getRecordName
/** * Get the base class name for a record. If we get an implementation of a * record we will return the real parent record class. * * @param <T> Type of the class of the data record. * @param clazz Class of the data record to check. * @return Name of the base class for the record. */ public static <T extends Ba...
3.68
querydsl_BeanPath_createCollection
/** * Create a new Collection typed path * * @param <A> * @param property property name * @param type property type * @return property path */ @SuppressWarnings("unchecked") protected <A, Q extends SimpleExpression<? super A>> CollectionPath<A, Q> createCollection(String property, Class<? super A> type, Class<? ...
3.68
pulsar_EventLoopUtil_shutdownGracefully
/** * Shutdowns the EventLoopGroup gracefully. Returns a {@link CompletableFuture} * @param eventLoopGroup the event loop to shutdown * @return CompletableFuture that completes when the shutdown has completed */ public static CompletableFuture<Void> shutdownGracefully(EventLoopGroup eventLoopGroup) { return Net...
3.68
querydsl_BeanMap_entryIterator
/** * Convenience method for getting an iterator over the entries. * * @return an iterator over the entries */ public Iterator<Entry<String, Object>> entryIterator() { final Iterator<String> iter = keyIterator(); return new Iterator<Entry<String, Object>>() { @Override public boolean hasNext...
3.68
framework_VDebugWindow_init
/** * Called when the window is initialized. */ public void init() { show(); /* * Finalize initialization when all entry points have had the chance to * e.g. register new sections. */ Scheduler.get().scheduleFinally(() -> { readStoredState(); Window.addResizeHandler( ...
3.68
pulsar_NettyFutureUtil_toCompletableFutureVoid
/** * Converts a Netty {@link Future} to {@link CompletableFuture} with Void type. * * @param future Netty future * @return converted future instance */ public static CompletableFuture<Void> toCompletableFutureVoid(Future<?> future) { Objects.requireNonNull(future, "future cannot be null"); CompletableFut...
3.68
framework_AbstractOrderedLayout_setExpandRatio
/** * <p> * This method is used to control how excess space in layout is distributed * among components. Excess space may exist if layout is sized and contained * non relatively sized components don't consume all available space. * * <p> * Example how to distribute 1:3 (33%) for component1 and 2:3 (67%) for * c...
3.68
hbase_HFileInfo_initMetaAndIndex
/** * should be called after initTrailerAndContext */ public void initMetaAndIndex(HFile.Reader reader) throws IOException { ReaderContext context = reader.getContext(); try { HFileBlock.FSReader blockReader = reader.getUncachedBlockReader(); // Initialize an block iterator, and parse load-on-open blocks ...
3.68
hbase_Filter_filterCell
/** * A way to filter based on the column family, column qualifier and/or the column value. Return * code is described below. This allows filters to filter only certain number of columns, then * terminate without matching ever column. If filterRowKey returns true, filterCell needs to be * consistent with it. filter...
3.68
morf_UpgradePath_getSql
/** * @return the sql */ public List<String> getSql() { List<String> results = Lists.newLinkedList(); if (!sql.isEmpty() || !upgradeScriptAdditions.isEmpty()) results.addAll(initialisationSql); results.addAll(sql); for (UpgradeScriptAddition addition : upgradeScriptAdditions) { Iterables.addAll(resu...
3.68
flink_HiveTableUtil_extractHiveTableInfo
/** * Get the hive table's information. * * @return non-part fields, part fields, notNullColumns, primaryKey. */ private static Tuple4< List<FieldSchema>, List<FieldSchema>, Set<String>, Optional<UniqueConstraint>> extractHiveTableInfo( HiveConf hiveConf, Tabl...
3.68
framework_VAbstractOrderedLayout_getLayoutManager
/** * Get the layout manager used by this layout. * * @return the layout manager */ public LayoutManager getLayoutManager() { return layoutManager; }
3.68
hbase_Result_containsColumn
/** * Checks for existence of a value for the specified column (empty or not). * @param family family name * @param foffset family offset * @param flength family length * @param qualifier column qualifier * @param qoffset qualifier offset * @param qlength qualifier length * @return true if at least o...
3.68
flink_JMXService_stopInstance
/** Stop the JMX server. */ public static synchronized void stopInstance() throws IOException { if (jmxServer != null) { jmxServer.stop(); jmxServer = null; } }
3.68
hbase_SpaceQuotaSnapshotNotifierFactory_create
/** * Instantiates the {@link SpaceQuotaSnapshotNotifier} implementation as defined in the * configuration provided. * @param conf Configuration object * @return The SpaceQuotaSnapshotNotifier implementation * @throws IllegalArgumentException if the class could not be instantiated */ public SpaceQuotaSnapshotNoti...
3.68
hbase_RestoreTool_incrementalRestoreTable
/** * During incremental backup operation. Call WalPlayer to replay WAL in backup image Currently * tableNames and newTablesNames only contain single table, will be expanded to multiple tables in * the future * @param conn HBase connection * @param tableBackupPath backup path * @param logDirs :...
3.68
framework_AbstractClientConnector_getState
/** * Returns the shared state for this connector. * * @param markAsDirty * true if the connector should automatically be marked dirty, * false otherwise * * @return The shared state for this connector. Never null. * @see #getState() */ protected SharedState getState(boolean markAsDirty) ...
3.68
hadoop_AbstractS3ACommitter_buildJobUUID
/** * Build the job UUID. * * <p> * In MapReduce jobs, the application ID is issued by YARN, and * unique across all jobs. * </p> * <p> * Spark will use a fake app ID based on the current time. * This can lead to collisions on busy clusters unless * the specific spark release has SPARK-33402 applied. * Thi...
3.68
flink_OrcSplitReader_ensureBatch
/** * Checks if there is at least one row left in the batch to return. If no more row are * available, it reads another batch of rows. * * @return Returns true if there is one more row to return, false otherwise. * @throws IOException throw if an exception happens while reading a batch. */ private boolean ensureB...
3.68
hadoop_Server_getConfig
/** * Returns the server configuration. * * @return the server configuration. */ public Configuration getConfig() { return config; }
3.68
pulsar_ResourceGroup_getRgUsageReportedCount
// Visibility for unit testing protected static double getRgUsageReportedCount (String rgName, String monClassName) { return rgLocalUsageReportCount.labels(rgName, monClassName).get(); }
3.68
hbase_BackupManager_initialize
/** * Start the backup manager service. * @throws IOException exception */ public void initialize() throws IOException { String ongoingBackupId = this.getOngoingBackupId(); if (ongoingBackupId != null) { LOG.info("There is a ongoing backup {}" + ". Can not launch new backup until no ongoing backup rema...
3.68
framework_Tree_getTransferable
/* * (non-Javadoc) * * @see com.vaadin.event.dd.DragSource#getTransferable(java.util.Map) */ @Override public Transferable getTransferable(Map<String, Object> payload) { TreeTransferable transferable = new TreeTransferable(this, payload); // updating drag source variables Object object = payload.get("it...
3.68
hbase_FilterBase_createFilterFromArguments
/** * Given the filter's arguments it constructs the filter * <p> * @param filterArguments the filter's arguments * @return constructed filter object */ public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments) { throw new IllegalArgumentException("This method has not been implemented"); ...
3.68
hbase_CheckAndMutate_getFamily
/** Returns the family to check */ public byte[] getFamily() { return family; }
3.68
pulsar_SimpleLoadManagerImpl_doLoadRanking
/** * Rank brokers by available capacity, or load percentage, based on placement strategy: * * - Available capacity for weighted random selection (weightedRandomSelection): ranks ResourceUnits units based on * estimation of their capacity which is basically how many bundles each ResourceUnit is able can handle with...
3.68
hbase_MasterRpcServices_checkCoprocessorWithService
/** * Determines if there is a coprocessor implementation in the provided argument which extends or * implements the provided {@code service}. */ boolean checkCoprocessorWithService(List<MasterCoprocessor> coprocessorsToCheck, Class<?> service) { if (coprocessorsToCheck == null || coprocessorsToCheck.isEmpty()) ...
3.68
dubbo_FrameworkExecutorRepository_getConnectivityScheduledExecutor
/** * Scheduled executor handle connectivity check task * * @return ScheduledExecutorService */ public ScheduledExecutorService getConnectivityScheduledExecutor() { return connectivityScheduledExecutor; }
3.68
hudi_HoodieRecord_setCurrentLocation
/** * Sets the current currentLocation of the record. This should happen exactly-once */ public HoodieRecord setCurrentLocation(HoodieRecordLocation location) { checkState(); assert currentLocation == null; this.currentLocation = location; return this; }
3.68
hbase_UnsafeAccess_putByte
/** * Put a byte value out to the specified BB position in big-endian format. * @param buf the byte buffer * @param offset position in the buffer * @param b byte to write out * @return incremented offset */ public static int putByte(ByteBuffer buf, int offset, byte b) { if (buf.isDirect()) { HBasePl...
3.68
flink_NetUtils_unresolvedHostToNormalizedString
/** * Returns an address in a normalized format for Pekko. When an IPv6 address is specified, it * normalizes the IPv6 address to avoid complications with the exact URL match policy of Pekko. * * @param host The hostname, IPv4 or IPv6 address * @return host which will be normalized if it is an IPv6 address */ pub...
3.68
rocketmq-connect_JdbcDriverInfo_jdbcMajorVersion
/** * Get the major version of the JDBC specification supported by the driver. * * @return the major version number */ public int jdbcMajorVersion() { return jdbcMajorVersion; }
3.68
zxing_PDF417HighLevelEncoder_encodeBinary
/** * Encode parts of the message using Byte Compaction as described in ISO/IEC 15438:2001(E), * chapter 4.4.3. The Unicode characters will be converted to binary using the cp437 * codepage. * * @param bytes the message converted to a byte array * @param startpos the start position within the message * @par...
3.68
flink_RouteResult_uri
/** Returns the original request URI. */ public String uri() { return uri; }
3.68
hbase_BlockCacheUtil_shouldReplaceExistingCacheBlock
/** * Because of the region splitting, it's possible that the split key locate in the middle of a * block. So it's possible that both the daughter regions load the same block from their parent * HFile. When pread, we don't force the read to read all of the next block header. So when two * threads try to cache the s...
3.68
hudi_AvroInternalSchemaConverter_visitInternalPrimitiveToBuildAvroPrimitiveType
/** * Converts hudi PrimitiveType to Avro PrimitiveType. * this is auxiliary function used by visitInternalSchemaToBuildAvroSchema */ private static Schema visitInternalPrimitiveToBuildAvroPrimitiveType(Type.PrimitiveType primitive, String recordName) { switch (primitive.typeId()) { case BOOLEAN: return ...
3.68
flink_EmbeddedRocksDBStateBackend_setDbStoragePath
/** * Sets the path where the RocksDB local database files should be stored on the local file * system. Setting this path overrides the default behavior, where the files are stored across * the configured temp directories. * * <p>Passing {@code null} to this function restores the default behavior, where the config...
3.68
flink_ConfigOptions_key
/** * Starts building a new {@link ConfigOption}. * * @param key The key for the config option. * @return The builder for the config option with the given key. */ public static OptionBuilder key(String key) { checkNotNull(key); return new OptionBuilder(key); }
3.68
flink_StreamExecutionEnvironment_addDefaultKryoSerializer
/** * Adds a new Kryo default serializer to the Runtime. * * @param type The class of the types serialized with the given serializer. * @param serializerClass The class of the serializer to use. */ public void addDefaultKryoSerializer( Class<?> type, Class<? extends Serializer<?>> serializerClass) { co...
3.68
morf_XmlDataSetProducer_hasNext
/** * @see java.util.Iterator#hasNext() */ @Override public boolean hasNext() { return XmlDataSetNode.RECORD_NODE.equals(currentTagName); }
3.68
framework_ReflectTools_findCommonBaseType
/** * Finds the most specific class that both provided classes extend from. * * @param a * one class to get the base type for, not <code>null</code> * @param b * another class to get the base type for, not <code>null</code> * @return the most specific base class, not <code>null</code> * *...
3.68
flink_RpcEndpoint_getEndpointId
/** * Returns the rpc endpoint's identifier. * * @return Rpc endpoint's identifier. */ public String getEndpointId() { return endpointId; }
3.68
framework_LayoutDependencyTree_setNeedsVerticalMeasure
/** * @param connectorId * the connector id of the component whose vertical size might * have changed * @param needsMeasure * {@code true} if measuring should be enabled, {@code false} if * measuring should be disabled (disabling is only effective if * there...
3.68
framework_DetailsManagerConnector_triggerDelayedRepositioning
/** * Triggers repositioning of the the contents from the first affected row * downwards if any of the rows fall within the visual range. If any other * delayed repositioning has been triggered within this round trip the * affected range is expanded as needed. The processing is delayed to make * sure all updates h...
3.68
flink_NFACompiler_extendWithUntilCondition
/** * This method extends the given condition with stop(until) condition if necessary. The * until condition needs to be applied only if both of the given conditions are not null. * * @param condition the condition to extend * @param untilCondition the until condition to join with the given condition * @param isT...
3.68
flink_KeyedStream_intervalJoin
/** * Join elements of this {@link KeyedStream} with elements of another {@link KeyedStream} over a * time interval that can be specified with {@link IntervalJoin#between(Time, Time)}. * * @param otherStream The other keyed stream to join this keyed stream with * @param <T1> Type parameter of elements in the other...
3.68
rocketmq-connect_JsonSchemaSerializer_serialize
/** * serialize * * @param topic * @param isKey * @param value * @param schema * @return */ public byte[] serialize(String topic, boolean isKey, JsonSchema schema, Object value) { if (value == null) { return null; } String subjectName = TopicNameStrategy.subjectName(topic, isKey); try { ...
3.68
hbase_MetaTableAccessor_getCatalogFamilyRow
/** Returns Return the {@link HConstants#CATALOG_FAMILY} row from hbase:meta. */ public static Result getCatalogFamilyRow(Connection connection, RegionInfo ri) throws IOException { Get get = new Get(CatalogFamilyFormat.getMetaKeyForRegion(ri)); get.addFamily(HConstants.CATALOG_FAMILY); try (Table t = getMetaHTa...
3.68
querydsl_AbstractEvaluatorFactory_createSource
/** * @param source * @param projectionType * @param names * @param types * @param id * @param constants * @return * @throws IOException */ protected String createSource(String source, ClassType projectionType, String[] names, Type[] types, String id, Map<String, Object> constants) throws IOException {...
3.68
hbase_Encryption_encrypt
/** * Encrypt a stream of plaintext given a context and IV * @param out ciphertext * @param in plaintet */ public static void encrypt(OutputStream out, InputStream in, Context context, byte[] iv) throws IOException { Encryptor e = context.getCipher().getEncryptor(); e.setKey(context.getKey()); e.setIv(iv);...
3.68
hudi_BaseHoodieWriteClient_scheduleAndGetRestorePlan
/** * Check if there is a failed restore with the same savepointToRestoreTimestamp. Reusing the commit instead of * creating a new one will prevent causing some issues with the metadata table. * */ private Pair<String, Option<HoodieRestorePlan>> scheduleAndGetRestorePlan(final String savepointToRestoreTimestamp, Hoo...
3.68
morf_InsertStatementDefaulter_getFieldDefault
/** * Gets the default value for the {@code column}. If the column has a default * value associated with it, this is returned. Otherwise a standard default is * given. * * @param column The column to get the default for. * @return the default value to use. */ private AliasedField getFieldDefault(Column column) {...
3.68
querydsl_ExpressionUtils_orderBy
/** * Create an expression out of the given order specifiers * * @param args order * @return expression for order */ public static Expression<?> orderBy(List<OrderSpecifier<?>> args) { return operation(Object.class, Ops.ORDER, ConstantImpl.create(args)); }
3.68