name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
pulsar_ConsumerConfiguration_setReadCompacted
/** * If enabled, the consumer will read messages from the compacted topic rather than reading the full message backlog * of the topic. This means that, if the topic has been compacted, the consumer will only see the latest value for * each key in the topic, up until the point in the topic message backlog that has b...
3.68
zxing_ReedSolomonDecoder_decodeWithECCount
/** * <p>Decodes given set of received codewords, which include both data and error-correction * codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, * in the input.</p> * * @param received data and error-correction codewords * @param twoS number of error-correction codewords...
3.68
framework_DateCellDayEvent_isTimeRangeTooSmall
/** * Check if the given time range is too small for events * * @param start * @param end * @return */ private boolean isTimeRangeTooSmall(long start, long end) { return (end - start) >= getMinTimeRange(); }
3.68
hbase_RestoreSnapshotHelper_restoreHdfsMobRegions
/** * Restore specified mob regions by restoring content to the snapshot state. */ private void restoreHdfsMobRegions(final ThreadPoolExecutor exec, final Map<String, SnapshotRegionManifest> regionManifests, final List<RegionInfo> regions) throws IOException { if (regions == null || regions.isEmpty()) return; ...
3.68
flink_FileSourceSplit_length
/** Returns the number of bytes in the file region described by this source split. */ public long length() { return length; }
3.68
morf_SqlDialect_getSqlForAverage
/** * Converts the average function into SQL. * * @param function the function details * @return a string representation of the SQL */ protected String getSqlForAverage(Function function) { return "AVG(" + getSqlFrom(function.getArguments().get(0)) + ")"; }
3.68
framework_FilesystemContainer_getSize
/** * Gets the size of this file. * * @return size */ public long getSize() { if (file.isDirectory()) { return 0; } return file.length(); }
3.68
incubator-hugegraph-toolchain_PropertyIndexService_list
/** * The sort result like that, content is 'name' * --------------+------------------------+--------------------------------- * base_value | index label name | fields * --------------+------------------------+--------------------------------- * xxxname | xxxByName | name * -----------...
3.68
hadoop_TypedBytesInput_read
/** * Reads a typed bytes sequence and converts it to a Java object. The first * byte is interpreted as a type code, and then the right number of * subsequent bytes are read depending on the obtained type. * @return the obtained object or null when the end of the file is reached * @throws IOException */ public ...
3.68
framework_HierarchyMapper_expand
/** * Expands the given item. * * @param item * the item to expand * @param position * the index of the item * @return range of rows added by expanding the item */ public Range expand(T item, Integer position) { if (doExpand(item) && position != null) { return Range.withLength(...
3.68
hadoop_ManifestStoreOperations_getEtag
/** * Extract an etag from a status if the conditions are met. * If the conditions are not met, return null or ""; they will * both be treated as "no etags available" * <pre> * 1. The status is of a type which the implementation recognizes * as containing an etag. * 2. After casting the etag field can be r...
3.68
hbase_AbstractFSWALProvider_isMetaFile
/** Returns True if String ends in {@link #META_WAL_PROVIDER_ID} */ public static boolean isMetaFile(String p) { return p != null && p.endsWith(META_WAL_PROVIDER_ID); }
3.68
hbase_KeyValue_getDelimiterInReverse
/** * Find index of passed delimiter walking from end of buffer backwards. * @param b the kv serialized byte[] to process * @param offset the offset in the byte[] * @param length the length in the byte[] * @param delimiter input delimeter to fetch index from end * @return Index of delimiter */ publ...
3.68
shardingsphere-elasticjob_JobRegistry_registerJob
/** * Register job. * * @param jobName job name * @param jobScheduleController job schedule controller */ public void registerJob(final String jobName, final JobScheduleController jobScheduleController) { schedulerMap.put(jobName, jobScheduleController); }
3.68
morf_AbstractSelectStatement_innerJoin
/** * @param subSelect the sub select statement to join on to * @return a new select statement with the change applied. * * @deprecated Use {@link #crossJoin(SelectStatement)} to do a cross join; * or add join conditions for {@link #innerJoin(SelectStatement, Criterion)} * to make this an ...
3.68
flink_AbstractReader_handleEvent
/** * Handles the event and returns whether the reader reached an end-of-stream event (either the * end of the whole stream or the end of an superstep). */ protected boolean handleEvent(AbstractEvent event) throws IOException { final Class<?> eventType = event.getClass(); try { // ------------------...
3.68
hadoop_HSAuditLogger_logFailure
/** * Create a readable and parseable audit log string for a failed event. * * @param user * User who made the service request. * @param operation * Operation requested by the user. * @param perm * Target permissions. * @param target * The target on which the operation is ...
3.68
hudi_HoodieWriteStat_setPath
/** * Set path and tempPath relative to the given basePath. */ public void setPath(Path basePath, Path path) { this.path = path.toString().replace(basePath + "/", ""); }
3.68
framework_FileDownloader_handleConnectorRequest
/** * {@inheritDoc} * * @throws IOException * if something goes wrong with the download or the user * cancelled the file download process. */ @Override public boolean handleConnectorRequest(VaadinRequest request, VaadinResponse response, String path) throws IOException { if (!p...
3.68
hbase_RegionMover_includeExcludeRegionServers
/** * Designates or excludes the servername whose hostname and port portion matches the list given in * the file. Example:<br> * If you want to designated RSs, suppose designatedFile has RS1, regionServers has RS1, RS2 and * RS3. When we call includeExcludeRegionServers(designatedFile, regionServers, true), RS2 and...
3.68
hadoop_MountTableStoreImpl_checkMountTablePermission
/** * Check parent path permission recursively. It needs WRITE permission * of the nearest parent entry and other EXECUTE permission. * @param src mount entry being checked * @throws AccessControlException if mount table cannot be accessed */ private void checkMountTablePermission(final String src) throws IOExcept...
3.68
framework_LayoutDependencyTree_hasHorizontalConnectorToLayout
/** * Returns whether there are any managed layouts waiting for horizontal * layouting. * * @return {@code true} if horizontal layouting queue is not empty, * {@code false} otherwise */ public boolean hasHorizontalConnectorToLayout() { return !getLayoutQueue(HORIZONTAL).isEmpty(); }
3.68
rocketmq-connect_Base64Util_base64Encode
/** * encode * * @param in * @return */ public static String base64Encode(byte[] in) { if (in == null) { return null; } return Base64.getEncoder().encodeToString(in); }
3.68
hbase_ThriftUtilities_rowMutationsFromThrift
/** * Creates a {@link RowMutations} (HBase) from a {@link TRowMutations} (Thrift) * @param in the <code>TRowMutations</code> to convert * @return converted <code>RowMutations</code> */ public static RowMutations rowMutationsFromThrift(TRowMutations in) throws IOException { List<TMutation> mutations = in.getMutat...
3.68
hadoop_DynamicIOStatisticsBuilder_withAtomicIntegerMinimum
/** * Add a minimum statistic to dynamically return the * latest value of the source. * @param key key of this statistic * @param source atomic int minimum * @return the builder. */ public DynamicIOStatisticsBuilder withAtomicIntegerMinimum(String key, AtomicInteger source) { withLongFunctionMinimum(key, s ...
3.68
hbase_ColumnCountGetFilter_parseFrom
/** * Parse a serialized representation of {@link ColumnCountGetFilter} * @param pbBytes A pb serialized {@link ColumnCountGetFilter} instance * @return An instance of {@link ColumnCountGetFilter} made from <code>bytes</code> * @throws DeserializationException if an error occurred * @see #toByteArray */ public st...
3.68
hbase_WALEntryStream_getPosition
/** Returns the position of the last Entry returned by next() */ public long getPosition() { return currentPositionOfEntry; }
3.68
framework_OptionGroupElement_getValue
/** * Return value of the selected option in the option group. * * @return value of the selected option in the option group */ public String getValue() { List<WebElement> options = findElements(bySelectOption); for (WebElement option : options) { WebElement checkedItem; checkedItem = option....
3.68
hudi_HoodieMetaSyncOperations_createDatabase
/** * Create a database in the metastore. */ default void createDatabase(String databaseName) { }
3.68
hadoop_ClasspathConstructor_localJVMClasspath
/** * Get the local JVM classpath split up * @return the list of entries on the JVM classpath env var */ public Collection<String> localJVMClasspath() { return splitClasspath(System.getProperty("java.class.path")); }
3.68
dubbo_NettyHttpRestServer_getNettyServer
/** * for triple override * * @return */ protected NettyServer getNettyServer() { return new NettyServer(); }
3.68
hadoop_IOStatisticsLogging_logIOStatisticsAtDebug
/** * Extract any statistics from the source and log to * this class's log at debug, if * the log is set to log at debug. * No-op if logging is not at debug or the source is null/of * the wrong type/doesn't provide statistics. * @param message message for log -this must contain "{}" for the * statistics report t...
3.68
hbase_BulkLoadHFilesTool_prepareHFileQueue
/** * Prepare a collection of {@code LoadQueueItem} from list of source hfiles contained in the * passed directory and validates whether the prepared queue has all the valid table column * families in it. * @param hfilesDir directory containing list of hfiles to be loaded into the table * @param queue ...
3.68
flink_ProcTimeMiniBatchAssignerOperator_processWatermark
/** * Override the base implementation to completely ignore watermarks propagated from upstream (we * rely only on the {@link AssignerWithPeriodicWatermarks} to emit watermarks from here). */ @Override public void processWatermark(Watermark mark) throws Exception { // if we receive a Long.MAX_VALUE watermark we ...
3.68
flink_AnswerFormatter_format
/** * TPC-DS answer set has three kind of formats, recognize them and convert to unified format. * * @param originFile origin answer set file from TPC-DS. * @param destFile file to save formatted answer set. * @throws Exception */ private static void format(File originFile, File destFile) throws Exception { B...
3.68
flink_SingleOutputStreamOperator_cache
/** * Cache the intermediate result of the transformation. Only support bounded streams and * currently only block mode is supported. The cache is generated lazily at the first time the * intermediate result is computed. The cache will be clear when {@link * CachedDataStream#invalidate()} called or the {@link Strea...
3.68
hadoop_RouterResolver_getMembershipStore
/** * Get the Membership store. * * @return Membership store. */ protected MembershipStore getMembershipStore() { StateStoreService stateStore = router.getStateStore(); if (stateStore == null) { return null; } return stateStore.getRegisteredRecordStore(MembershipStore.class); }
3.68
hudi_TypedProperties_putAll
/** * This method is introduced to get rid of the scala compile error: * <pre> * <code> * ambiguous reference to overloaded definition, * both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit * and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Obje...
3.68
flink_AbstractFsCheckpointStorageAccess_initializeLocationForSavepoint
/** * Creates a file system based storage location for a savepoint. * * <p>This methods implements the logic that decides which location to use (given optional * parameters for a configured location and a location passed for this specific savepoint) and * how to name and initialize the savepoint directory. * * @...
3.68
flink_FlinkContainersSettings_baseImage
/** * Sets the {@code baseImage} and returns a reference to this Builder enabling method * chaining. * * @param baseImage The {@code baseImage} to set. * @return A reference to this Builder. */ public Builder baseImage(String baseImage) { this.baseImage = baseImage; this.buildFromFlinkDist = false; re...
3.68
flink_PartitionedFile_getIndexEntryOffset
/** * Returns the index entry offset of the target region and subpartition in the index file. Both * region index and subpartition index start from 0. */ private long getIndexEntryOffset(int region, int subpartition) { checkArgument(region >= 0 && region < getNumRegions(), "Illegal target region."); checkArg...
3.68
hbase_Writables_getWritable
/** * Set bytes into the passed Writable by calling its * {@link Writable#readFields(java.io.DataInput)}. * @param bytes serialized bytes * @param offset offset into array * @param length length of data * @param w An empty Writable (usually made by calling the null-arg constructor). * @return The passed Wr...
3.68
flink_GroupReduceNode_getOperator
/** * Gets the operator represented by this optimizer node. * * @return The operator represented by this optimizer node. */ @Override public GroupReduceOperatorBase<?, ?, ?> getOperator() { return (GroupReduceOperatorBase<?, ?, ?>) super.getOperator(); }
3.68
streampipes_ResetManagement_reset
/** * Remove all configurations for this user. This includes: * [pipeline assembly cache, pipelines, adapters, files] * * @param username */ public static void reset(String username) { logger.info("Start resetting the system"); // Set hide tutorial to false for user UserResourceManager.setHideTutorial(usern...
3.68
framework_LayoutDependencyTree_hasConnectorsToMeasure
/** * Returns whether there are any components waiting for either horizontal or * vertical measuring. * * @return {@code true} if either measure queue contains anything, * {@code false} otherwise */ public boolean hasConnectorsToMeasure() { return !measureQueueInDirection[HORIZONTAL].isEmpty() ...
3.68
graphhopper_MiniPerfTest_getSum
/** * @return time for all calls accumulated, in ms */ public double getSum() { return fullTime / NS_PER_MS; }
3.68
framework_ValueProvider_identity
/** * Returns a value provider that always returns its input argument. * * @param <T> * the type of the input and output objects to the function * @return a function that always returns its input argument */ public static <T> ValueProvider<T, T> identity() { return t -> t; }
3.68
hbase_SplitTableRegionProcedure_postRollBackSplitRegion
/** * Action after rollback a split table region action. * @param env MasterProcedureEnv */ private void postRollBackSplitRegion(final MasterProcedureEnv env) throws IOException { final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost(); if (cpHost != null) { cpHost.postRollBackSplitRegionAction(g...
3.68
flink_RpcEndpoint_getSelfGateway
/** * Returns a self gateway of the specified type which can be used to issue asynchronous calls * against the RpcEndpoint. * * <p>IMPORTANT: The self gateway type must be implemented by the RpcEndpoint. Otherwise the * method will fail. * * @param selfGatewayType class of the self gateway type * @param <C> typ...
3.68
hbase_TokenProvider_isAllowedDelegationTokenOp
/** * @param ugi A user group information. * @return true if delegation token operation is allowed */ private boolean isAllowedDelegationTokenOp(UserGroupInformation ugi) throws IOException { AuthenticationMethod authMethod = ugi.getAuthenticationMethod(); if (authMethod == AuthenticationMethod.PROXY) { auth...
3.68
flink_WebLogAnalysis_coGroup
/** * If the visit iterator is empty, all pairs of the rank iterator are emitted. Otherwise, no * pair is emitted. * * <p>Output Format: 0: RANK 1: URL 2: AVG_DURATION */ @Override public void coGroup( Iterable<Tuple3<Integer, String, Integer>> ranks, Iterable<Tuple1<String>> visits, Collec...
3.68
flink_SlidingProcessingTimeWindows_of
/** * Creates a new {@code SlidingProcessingTimeWindows} {@link WindowAssigner} that assigns * elements to time windows based on the element timestamp and offset. * * <p>For example, if you want window a stream by hour,but window begins at the 15th minutes of * each hour, you can use {@code of(Time.hours(1),Time.m...
3.68
flink_DoubleValue_getValue
/** * Returns the value of the encapsulated primitive double. * * @return the value of the encapsulated primitive double. */ public double getValue() { return this.value; }
3.68
hbase_ThriftUtilities_getFromThrift
/** * Creates a {@link Get} (HBase) from a {@link TGet} (Thrift). This ignores any timestamps set on * {@link TColumn} objects. * @param in the <code>TGet</code> to convert * @return <code>Get</code> object * @throws IOException if an invalid time range or max version parameter is given */ public static Get getFr...
3.68
hadoop_WorkRequest_getRetry
/** * @return Number of previous attempts to process this work request. */ public int getRetry() { return retry; }
3.68
framework_VAbstractSplitPanel_setEnabled
/** * Sets this split panel enabled. * * @param enabled * {@code true} if enabled, {@code false} if disabled */ public void setEnabled(boolean enabled) { this.enabled = enabled; }
3.68
flink_FunctionIdentifier_normalizeName
/** Normalize a function name. */ public static String normalizeName(String name) { return name.toLowerCase(); }
3.68
pulsar_ManagedLedgerConfig_setLedgerOffloader
/** * Set ledger offloader to use for offloading ledgers to longterm storage. * * @param offloader the ledger offloader to use */ public ManagedLedgerConfig setLedgerOffloader(LedgerOffloader offloader) { this.ledgerOffloader = offloader; return this; }
3.68
hadoop_DynamicIOStatisticsBuilder_withLongFunctionMinimum
/** * Add a new evaluator to the minimum statistics. * @param key key of this statistic * @param eval evaluator for the statistic * @return the builder. */ public DynamicIOStatisticsBuilder withLongFunctionMinimum(String key, ToLongFunction<String> eval) { activeInstance().addMinimumFunction(key, eval::apply...
3.68
shardingsphere-elasticjob_JobConfigurationPOJO_fromJobConfiguration
/** * Convert from job configuration. * * @param jobConfig job configuration * @return job configuration POJO */ @SuppressWarnings("unchecked") public static JobConfigurationPOJO fromJobConfiguration(final JobConfiguration jobConfig) { JobConfigurationPOJO result = new JobConfigurationPOJO(); result.setJob...
3.68
framework_WebBrowser_updateClientSideDetails
/** * For internal use by VaadinServlet/VaadinPortlet only. Updates all * properties in the class according to the given information. * * @param sw * Screen width * @param sh * Screen height * @param tzo * TimeZone offset in minutes from GMT * @param rtzo * raw Tim...
3.68
flink_RequestedLocalProperties_parameterizeChannel
/** * Parametrizes the local strategy fields of a channel such that the channel produces the * desired local properties. * * @param channel The channel to parametrize. */ public void parameterizeChannel(Channel channel) { LocalProperties current = channel.getLocalProperties(); if (isMetBy(current)) { ...
3.68
framework_HasValue_getEmptyValue
/** * Returns the value that represents an empty value. * <p> * By default {@link HasValue} is expected to support {@code null} as empty * values. Specific implementations might not support this. * * @return empty value * @see Binder#bind(HasValue, ValueProvider, com.vaadin.server.Setter) * Binder#bind(Has...
3.68
hbase_StreamUtils_readByte
/** * Read a byte from the given stream using the read method, and throw EOFException if it returns * -1, like the implementation in {@code DataInputStream}. * <p/> * This is useful because casting the return value of read method into byte directly will make us * lose the ability to check whether there is a byte a...
3.68
hadoop_LocalityMulticastAMRMProxyPolicy_addLocalizedNodeRR
/** * Add to the answer a localized node request, and keeps track of statistics * on a per-allocation-id and per-subcluster bases. */ private void addLocalizedNodeRR(SubClusterId targetId, ResourceRequest rr) { Preconditions .checkArgument(!ResourceRequest.isAnyLocation(rr.getResourceName())); if (rr.getN...
3.68
hbase_HBaseTestingUtility_cleanupDataTestDirOnTestFS
/** * Cleans a subdirectory under the test data directory on the test filesystem. * @return True if we removed child */ public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException { Path cpath = getDataTestDirOnTestFS(subdirName); return getTestFileSystem().delete(cpath, true); }
3.68
streampipes_BoilerpipeHTMLContentHandler_toTextDocument
/** * Returns a {@link TextDocument} containing the extracted {@link TextBlock} s. NOTE: Only call * this after parsing. * * @return The {@link TextDocument} */ public TextDocument toTextDocument() { // just to be sure flushBlock(); return new TextDocument(getTitle(), getTextBlocks()); }
3.68
hbase_TableDescriptors_update
/** * Add or update descriptor. Just call {@link #update(TableDescriptor, boolean)} with * {@code cacheOnly} as {@code false}. */ default void update(TableDescriptor htd) throws IOException { update(htd, false); }
3.68
dubbo_CallableSafeInitializer_get
/** * Get (and initialize, if not initialized yet) the required object * * @return lazily initialized object * exception */ // @Override public final T get() { T result; while ((result = reference.get()) == null) { if (factory.compareAndSet(null, this)) { reference.set(initialize()); ...
3.68
querydsl_AbstractOracleQuery_orderSiblingsBy
/** * ORDER SIBLINGS BY preserves any ordering specified in the hierarchical query clause and then * applies the order_by_clause to the siblings of the hierarchy. * * @param path path * @return the current object */ public C orderSiblingsBy(Expression<?> path) { return addFlag(Position.BEFORE_ORDER, ORDER_SIB...
3.68
framework_SharedUtil_camelCaseToHumanFriendly
/** * Converts a camelCaseString to a human friendly format (Camel case * string). * <p> * In general splits words when the casing changes but also handles special * cases such as consecutive upper case characters. Examples: * <p> * {@literal MyBeanContainer} becomes {@literal My Bean Container} * {@literal Awe...
3.68
hbase_BlockCacheUtil_isFull
/** * @return True if full; i.e. there are more items in the cache but we only loaded up the * maximum set in configuration <code>hbase.ui.blockcache.by.file.max</code> (Default: * DEFAULT_MAX). */ public boolean isFull() { return this.count >= this.max; }
3.68
hadoop_S3ARemoteInputStream_setReadahead
/** * Sets the number of bytes to read ahead each time. * * @param readahead the number of bytes to read ahead each time.. */ @Override public synchronized void setReadahead(Long readahead) { // We support read head by prefetching therefore we ignore the supplied value. if (readahead != null) { Validate.che...
3.68
querydsl_ExpressionUtils_as
/** * Create an alias expression with the given source and alias * * @param <D> type of expression * @param source source * @param alias alias * @return source as alias */ public static <D> Expression<D> as(Expression<D> source, String alias) { return as(source, path(source.getType(), alias)); }
3.68
hbase_MetaTableAccessor_getClosestRegionInfo
/** Returns Get closest metatable region row to passed <code>row</code> */ @NonNull private static RegionInfo getClosestRegionInfo(Connection connection, @NonNull final TableName tableName, @NonNull final byte[] row) throws IOException { byte[] searchRow = RegionInfo.createRegionName(tableName, row, HConstants.NINE...
3.68
framework_CompositeValidator_setMode
/** * Sets the mode of the validator. The valid modes are: * <ul> * <li>{@link CombinationMode#AND} (default) * <li>{@link CombinationMode#OR} * </ul> * * @param mode * the mode to set. */ public void setMode(CombinationMode mode) { if (mode == null) { throw new IllegalArgumentException(...
3.68
zxing_FinderPatternFinder_crossCheckVertical
/** * <p>After a horizontal scan finds a potential finder pattern, this method * "cross-checks" by scanning down vertically through the center of the possible * finder pattern to see if the same proportion is detected.</p> * * @param startI row where a finder pattern was detected * @param centerJ center of the se...
3.68
pulsar_PulsarConnectorConfig_getNarExtractionDirectory
// --- Nar extraction config public String getNarExtractionDirectory() { return narExtractionDirectory; }
3.68
hbase_HDFSBlocksDistribution_addWeight
/** * add weight * @param weight the weight * @param weightForSsd the weight for ssd */ public void addWeight(long weight, long weightForSsd) { this.weight += weight; this.weightForSsd += weightForSsd; }
3.68
flink_HiveParserUnparseTranslator_addCopyTranslation
/** * Register a "copy" translation in which a node will be translated into whatever the * translation turns out to be for another node (after previously registered translations have * already been performed). Deferred translations are performed in the order they are * registered, and follow the same rules regardin...
3.68
hudi_KeyRangeLookupTree_getMatchingIndexFiles
/** * Fetches all the matching index files where the key could possibly be present. * * @param root refers to the current root of the look up tree * @param lookupKey the key to be searched for */ private void getMatchingIndexFiles(KeyRangeNode root, String lookupKey, Set<String> matchingFileNameSet) { if (root =...
3.68
morf_MySqlDialect_getSqlForAddDays
/** * @see org.alfasoftware.morf.jdbc.SqlDialect#getSqlForAddDays(org.alfasoftware.morf.sql.element.Function) */ @Override protected String getSqlForAddDays(Function function) { return String.format( "DATE_ADD(%s, INTERVAL %s DAY)", getSqlFrom(function.getArguments().get(0)), getSqlFrom(function.getArgu...
3.68
flink_AbstractBytesMultiMap_appendRecord
/** The key is not exist before. Add key and first value to key area. */ @Override public int appendRecord(LookupInfo<K, Iterator<RowData>> lookupInfo, BinaryRowData value) throws IOException { int lastPosition = (int) keyOutView.getCurrentOffset(); // write key to keyOutView int skip = keySerialize...
3.68
hudi_JdbcSource_incrementalFetch
/** * Does an incremental scan with PPQ query prepared on the bases of previous checkpoint. * * @param lastCheckpoint Last checkpoint. * Note that the records fetched will be exclusive of the last checkpoint (i.e. incremental column value > lastCheckpoint). * @return The {@link Dataset} after...
3.68
flink_MailboxProcessor_prepareClose
/** Lifecycle method to close the mailbox for action submission. */ public void prepareClose() { mailbox.quiesce(); }
3.68
hbase_RotateFile_write
/** * Writes the given data to the next file in the rotation, with a timestamp calculated based on * the previous timestamp and the current time to make sure it is greater than the previous * timestamp. The method also deletes the previous file, which is no longer needed. * <p/> * Notice that, for a newly created ...
3.68
flink_OperationExecutor_runClusterAction
/** * Retrieves the {@link ClusterClient} from the session and runs the given {@link ClusterAction} * against it. * * @param configuration the combined configuration of {@code sessionConf} and {@code * executionConfig}. * @param handle the specified operation handle * @param clusterAction the cluster action ...
3.68
hbase_ByteBufferUtils_copyFromStreamToBuffer
/** * Copy the given number of bytes from the given stream and put it at the current position of the * given buffer, updating the position in the buffer. * @param out the buffer to write data to * @param in the stream to read data from * @param length the number of bytes to read/write */ public static void...
3.68
MagicPlugin_BaseSpell_isOkToStandIn
/* * Ground / location search and test functions */ @Deprecated // Material public boolean isOkToStandIn(Material mat) { if (isHalfBlock(mat)) { return false; } return passthroughMaterials.testMaterial(mat) && !unsafeMaterials.testMaterial(mat); }
3.68
hbase_HRegionServer_waitOnAllRegionsToClose
/** * Wait on regions close. */ private void waitOnAllRegionsToClose(final boolean abort) { // Wait till all regions are closed before going out. int lastCount = -1; long previousLogTime = 0; Set<String> closedRegions = new HashSet<>(); boolean interrupted = false; try { while (!onlineRegions.isEmpty(...
3.68
pulsar_LedgerOffloader_streamingOffload
/** * Begin offload the passed in ledgers to longterm storage, it will finish * when a segment reached it's size or time. * Should only be called once for a LedgerOffloader instance. * Metadata passed in is for inspection purposes only and should be stored * alongside the segment data. * * When the returned Offl...
3.68
hudi_HoodieBackedTableMetadata_close
/** * Close the file reader and the record scanner for the given file slice. * * @param partitionFileSlicePair - Partition and FileSlice */ private synchronized void close(Pair<String, String> partitionFileSlicePair) { Pair<HoodieSeekingFileReader<?>, HoodieMetadataLogRecordReader> readers = partitionReader...
3.68
flink_ProjectOperator_projectTuple22
/** * Projects a {@link Tuple} {@link DataSet} to the previously selected fields. * * @return The projected DataSet. * @see Tuple * @see DataSet */ public < T0, T1, T2, T3, T4, T5, T6, T...
3.68
flink_ExtendedParser_getCompletionHints
/** * Returns completion hints for the given statement at the given cursor position. The completion * happens case insensitively. * * @param statement Partial or slightly incorrect SQL statement * @param cursor cursor position * @return completion hints that fit at the current cursor position */ public String[] ...
3.68
hbase_StorageClusterStatusModel_setName
/** * @param name the region server's hostname */ public void setName(String name) { this.name = name; }
3.68
framework_VAbstractSplitPanel_isEnabled
/** * Returns whether this split panel is enabled or not. * * @return {@code true} if enabled, {@code false} if disabled */ public boolean isEnabled() { return enabled; }
3.68
pulsar_ModularLoadManagerStrategy_create
/** * Create a placement strategy using the configuration. * * @param conf ServiceConfiguration to use. * @return A placement strategy from the given configurations. */ static ModularLoadManagerStrategy create(final ServiceConfiguration conf) { try { return Reflections.createInstance(conf.getLoadBalanc...
3.68
flink_StreamTableEnvironment_create
/** * Creates a table environment that is the entry point and central context for creating Table * and SQL API programs that integrate with the Java-specific {@link DataStream} API. * * <p>It is unified for bounded and unbounded data processing. * * <p>A stream table environment is responsible for: * * <ul> * ...
3.68
hadoop_OBSLoginHelper_canonicalizeUri
/** * Canonicalize the given URI. * * <p>This strips out login information. * * @param uri the URI to canonicalize * @param defaultPort default port to use in canonicalized URI if the input * URI has no port and this value is greater than 0 * @return a new, canonicalized URI. */ publ...
3.68
framework_Page_setLocation
/** * Navigates this page to the given URI. The contents of this page in the * browser is replaced with whatever is returned for the given URI. * <p> * This method should not be used to start downloads, as the client side * will assume the browser will navigate away when opening the URI. Use one * of the {@code P...
3.68