name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
flink_FileIOChannel_getPathFile
/** Returns the path to the underlying temporary file as a File. */ public File getPathFile() { return path; }
3.68
hudi_HoodieCommitMetadata_getFileIdToFileStatus
/** * Extract the file status of all affected files from the commit metadata. If a file has * been touched multiple times in the given commits, the return value will keep the one * from the latest commit by file group ID. * * <p>Note: different with {@link #getFullPathToFileStatus(Configuration, String)}, * only ...
3.68
flink_HiveStatsUtil_getPartitionColumnNullCount
/** * Get the null count for the {@param partitionColIndex} partition column in table {@param * hiveTable}. * * <p>To get the null count, it will first list all the partitions whose {@param * partitionColIndex} partition column is null, and merge the partition's statistic to get the * total rows, which is exactly...
3.68
framework_VDebugWindow_uidl
/** * Called when a response is received. * * @param ac * @param uidl */ public void uidl(ApplicationConnection ac, ValueMap uidl) { if (isClosed()) { return; } for (Section s : sections) { s.uidl(ac, uidl); } }
3.68
hadoop_AMRMProxyMetrics_getMetrics
/** * Initialize the singleton instance. * * @return the singleton */ public static AMRMProxyMetrics getMetrics() { synchronized (AMRMProxyMetrics.class) { if (instance == null) { instance = DefaultMetricsSystem.instance() .register("AMRMProxyMetrics", "Metrics for the Yarn AMRMProxy", ...
3.68
framework_Escalator_convertToVisual
/** * Adjusts the row index and number to be relevant for the current * virtual viewport. * <p> * It converts a logical range of rows index to the matching visual * range, truncating the resulting range with the viewport. * <p> * <ul> * <li>Escalator contains logical rows 0..100 * <li>Current viewport showing ...
3.68
flink_HiveCatalog_getFieldNames
/** Get field names from field schemas. */ public static List<String> getFieldNames(List<FieldSchema> fieldSchemas) { List<String> names = new ArrayList<>(fieldSchemas.size()); for (FieldSchema fs : fieldSchemas) { names.add(fs.getName()); } return names; }
3.68
flink_GroupReduceOperatorBase_setGroupOrder
/** * Sets the order of the elements within a reduce group. * * @param order The order for the elements in a reduce group. */ public void setGroupOrder(Ordering order) { this.groupOrder = order; }
3.68
flink_FutureCompletingBlockingQueue_take
/** * <b>Warning:</b> This is a dangerous method and should only be used for testing convenience. A * method that blocks until availability does not go together well with the concept of * asynchronous notifications and non-blocking polling. * * <p>Get and remove the first element from the queue. The call blocks if...
3.68
pulsar_ManagedLedgerConfig_getReadEntryTimeoutSeconds
/** * Ledger read-entry timeout. * * @return */ public long getReadEntryTimeoutSeconds() { return readEntryTimeoutSeconds; }
3.68
hbase_EntryBuffers_appendEntry
/** * Append a log entry into the corresponding region buffer. Blocks if the total heap usage has * crossed the specified threshold. */ void appendEntry(WAL.Entry entry) throws InterruptedException, IOException { WALKey key = entry.getKey(); RegionEntryBuffer buffer; long incrHeap; synchronized (this) { ...
3.68
hmily_Coordinator_setRollbackOnly
/** * Sets rollback only. */ public void setRollbackOnly() { if (state == XaState.STATUS_ACTIVE) { state = XaState.STATUS_MARKED_ROLLBACK; } }
3.68
hbase_ServerRegionReplicaUtil_isReadOnly
/** * Returns whether this region replica can accept writes. * @param region the HRegion object * @return whether the replica is read only */ public static boolean isReadOnly(HRegion region) { return region.getTableDescriptor().isReadOnly() || !isDefaultReplica(region.getRegionInfo()); }
3.68
starts_RTSUtil_computeAffectedTests
/** * This method computes the affected tests and sets the "changed" field to * contain the set of dependencies that changed since the last run. */ public static Set<String> computeAffectedTests(HashSet<String> allTests, Set<String> nonAffected, Map<String, Set<String>>...
3.68
dubbo_TriHttp2RemoteFlowController_cancel
/** * Clears the pending queue and writes errors for each remaining frame. * @param error the {@link Http2Error} to use. * @param cause the {@link Throwable} that caused this method to be invoked. */ void cancel(Http2Error error, Throwable cause) { cancelled = true; // Ensure that the queue can't be modifie...
3.68
flink_HandlerRequest_resolveParametersAndCreate
/** * Creates a new {@link HandlerRequest} after resolving the given {@link MessageParameters} * against the given query/path parameter maps. * * <p>For tests it is recommended to resolve the parameters manually and use {@link #create}. */ public static <R extends RequestBody, M extends MessageParameters> ...
3.68
hudi_LSMTimeline_getVersionFilePath
/** * Returns the full version file path with given version number. */ public static Path getVersionFilePath(HoodieTableMetaClient metaClient) { return new Path(metaClient.getArchivePath(), VERSION_FILE_NAME); }
3.68
framework_CalendarTest_switchToDayView
/* * Switch to day view (week view with a single day visible). */ public void switchToDayView() { viewMode = Mode.DAY; // monthButton.setVisible(true); // weekButton.setVisible(true); }
3.68
hadoop_StageConfig_getJobAttemptTaskSubDir
/** * Get the path to the subdirectory under $jobID where task * attempts are. List this dir to find all task attempt dirs. * @return a path under the job attempt dir. */ public Path getJobAttemptTaskSubDir() { return jobAttemptTaskSubDir; }
3.68
hbase_HRegion_enableInterrupts
/** * If a handler thread was made ineligible for interrupt via {{@link #disableInterrupts()}, make * it eligible again. No-op if interrupts are already enabled. */ void enableInterrupts() { regionLockHolders.computeIfPresent(Thread.currentThread(), (t, b) -> true); }
3.68
streampipes_TextDocument_getContent
/** * Returns the {@link TextDocument}'s content. * * @return The content text. */ public String getContent() { return getText(true, false); }
3.68
hadoop_FilePosition_bufferStartOffset
/** * Gets the start of the current block's absolute offset. * * @return the start of the current block's absolute offset. */ public long bufferStartOffset() { throwIfInvalidBuffer(); return bufferStartOffset; }
3.68
pulsar_Schema_NATIVE_AVRO
/** * Create a schema instance that accepts a serialized Avro payload * without validating it against the schema specified. * It can be useful when migrating data from existing event or message stores. * * @return the auto schema instance * @since 2.9.0 */ static Schema<byte[]> NATIVE_AVRO(Object schema) { r...
3.68
hadoop_ActiveAuditManagerS3A_getActiveSpanMap
/** * Get the map of threads to active spans; allows * for testing of weak reference resolution after GC. * @return the span map */ @VisibleForTesting WeakReferenceThreadMap<WrappingAuditSpan> getActiveSpanMap() { return activeSpanMap; }
3.68
hbase_FlushPolicyFactory_create
/** * Create the FlushPolicy configured for the given table. */ public static FlushPolicy create(HRegion region, Configuration conf) throws IOException { Class<? extends FlushPolicy> clazz = getFlushPolicyClass(region.getTableDescriptor(), conf); FlushPolicy policy = ReflectionUtils.newInstance(clazz, conf); po...
3.68
framework_ColorPickerGrid_setValue
/** * Sets the value of this object. If the new value is not equal to * {@code getValue()}, fires a {@link ValueChangeEvent}. Throws * {@code NullPointerException} if the value is null. * * @param color * the new value, not {@code null} * @throws NullPointerException * if {@code color} is...
3.68
flink_EmptyIterator_remove
/** * Throws a {@link java.lang.UnsupportedOperationException}. * * @see java.util.Iterator#remove() */ @Override public void remove() { throw new UnsupportedOperationException(); }
3.68
framework_Page_updateLocation
/** * For internal use only. Used to update the server-side location when the * client-side location changes. * * @since 8.0 * * @param location * the new location URI * @param fireEvents * whether to fire {@link UriFragmentChangedEvent} if the URI * fragment changes * @param...
3.68
pulsar_PulsarRegistrationClient_getBookiesThenFreshCache
/** * @throws IllegalArgumentException if parameter path is null or empty. */ private CompletableFuture<Versioned<Set<BookieId>>> getBookiesThenFreshCache(String path) { if (path == null || path.isEmpty()) { return failedFuture( new IllegalArgumentException("parameter [path] can not be nul...
3.68
framework_ApplicationConnection_captionSizeUpdated
/** * Use to notify that the given component's caption has changed; layouts may * have to be recalculated. * * @param widget * The Widget whose caption has changed * @deprecated As of 7.0.2, has not had any effect for a long time */ @Deprecated public void captionSizeUpdated(Widget widget) { // Th...
3.68
hadoop_LeveldbIterator_prev
/** * @return the previous element in the iteration and rewinds the iteration. */ public Map.Entry<byte[], byte[]> prev() throws DBException { try { return iter.prev(); } catch (DBException e) { throw e; } catch (RuntimeException e) { throw new DBException(e.getMessage(), e); } }
3.68
dubbo_ValidationFilter_invoke
/** * Perform the validation of before invoking the actual method based on <b>validation</b> attribute value. * * @param invoker service * @param invocation invocation. * @return Method invocation result * @throws RpcException Throws RpcException if validation failed or any other runtime exception occurred. ...
3.68
flink_KeyedCoProcessFunction_onTimer
/** * Called when a timer set using {@link TimerService} fires. * * @param timestamp The timestamp of the firing timer. * @param ctx An {@link OnTimerContext} that allows querying the timestamp of the firing timer, * querying the {@link TimeDomain} of the firing timer and getting a {@link TimerService} * ...
3.68
hmily_EventData_setSubscribe
/** * Sets subscribe. * * @param subscribe the subscribe */ public void setSubscribe(final String subscribe) { this.subscribe = subscribe; }
3.68
hbase_AsyncAdmin_mergeRegions
/** * Merge two regions. * @param nameOfRegionA encoded or full name of region a * @param nameOfRegionB encoded or full name of region b * @param forcible true if do a compulsory merge, otherwise we will only merge two adjacent * regions * @deprecated since 2.3.0 and will be removed in 4...
3.68
framework_DataProvider_fromCallbacks
/** * Creates a new data provider that uses callbacks for fetching and counting * items from any backing store. * <p> * The query that is passed to each callback will not contain any filter * values. * * @param fetchCallback * function that returns a stream of items from the back end for * ...
3.68
flink_MemorySegment_wrap
/** * Wraps the chunk of the underlying memory located between <tt>offset</tt> and <tt>offset + * length</tt> in a NIO ByteBuffer. The ByteBuffer has the full segment as capacity and the * offset and length parameters set the buffers position and limit. * * @param offset The offset in the memory segment. * @param...
3.68
hadoop_NativeSingleLineParser_aggregateSkyline
/** * Aggregates different jobs' {@link ResourceSkyline}s within the same * pipeline together. * * @param resourceSkyline newly extracted {@link ResourceSkyline}. * @param recurrenceId the {@link RecurrenceId} which the resourceSkyline * belongs to. * @param skylineRecords a {@link Map...
3.68
hbase_RawBytes_decode
/** * Read a {@code byte[]} from the buffer {@code src}. * @param src the {@link PositionedByteRange} to read the {@code byte[]} from * @param length the length to read from the buffer * @return the {@code byte[]} read from the buffer */ public byte[] decode(PositionedByteRange src, int length) { byte[] val =...
3.68
graphhopper_PbfBlobResult_storeSuccessResult
/** * Stores the results of a successful blob decoding operation. * <p> * * @param decodedEntities The entities from the blob. */ public void storeSuccessResult(List<ReaderElement> decodedEntities) { entities = decodedEntities; complete = true; success = true; }
3.68
flink_SnapshotDirectory_temporary
/** * Creates a local temporary snapshot directory for the given path. This will always return * "null" as result of {@link #completeSnapshotAndGetHandle()} and always attempt to delete the * underlying directory in {@link #cleanup()}. */ public static SnapshotDirectory temporary(@Nonnull File directory) throws IOE...
3.68
hadoop_AuxiliaryService_initializeContainer
/** * A new container is started on this NodeManager. This is a signal to * this {@link AuxiliaryService} about the container initialization. * This method is called when the NodeManager receives the container launch * command from the ApplicationMaster and before the container process is * launched. * * @param...
3.68
hbase_PrivateCellUtil_getValueAsInt
/** * Converts the value bytes of the given cell into a int value * @return value as int */ public static int getValueAsInt(Cell cell) { if (cell instanceof ByteBufferExtendedCell) { return ByteBufferUtils.toInt(((ByteBufferExtendedCell) cell).getValueByteBuffer(), ((ByteBufferExtendedCell) cell).getValu...
3.68
flink_StreamNonDeterministicUpdatePlanVisitor_inputInsertOnly
// helper methods private boolean inputInsertOnly(final StreamPhysicalRel rel) { return ChangelogPlanUtils.inputInsertOnly(rel); }
3.68
hbase_KeyValue_clone
/** * Clones a KeyValue. This creates a copy, re-allocating the buffer. * @return Fully copied clone of this KeyValue * @throws CloneNotSupportedException if cloning of keyValue is not supported */ @Override public KeyValue clone() throws CloneNotSupportedException { KeyValue ret = (KeyValue) super.clone(); ret...
3.68
hbase_MasterObserver_preRemoveReplicationPeer
/** * Called before remove a replication peer * @param peerId a short name that identifies the peer */ default void preRemoveReplicationPeer(final ObserverContext<MasterCoprocessorEnvironment> ctx, String peerId) throws IOException { }
3.68
hadoop_OBSInputStream_remainingInCurrentRequest
/** * Bytes left in the current request. Only valid if there is an active * request. * * @return how many bytes are left to read in the current GET. */ @InterfaceAudience.Private @InterfaceStability.Unstable public synchronized long remainingInCurrentRequest() { return this.contentRangeFinish - this.streamCurren...
3.68
hbase_Tag_copyValueTo
/** * Copies the tag's value bytes to the given byte array * @param tag The Tag * @param out The byte array where to copy the Tag value. * @param offset The offset within 'out' array where to copy the Tag value. */ public static void copyValueTo(Tag tag, byte[] out, int offset) { if (tag.hasArray()) { ...
3.68
hibernate-validator_MethodValidationConfiguration_isAllowParallelMethodsDefineParameterConstraints
/** * @return {@code true} if constraints on methods in parallel class hierarchy are allowed, {@code false} otherwise. */ public boolean isAllowParallelMethodsDefineParameterConstraints() { return this.allowParallelMethodsDefineParameterConstraints; }
3.68
hudi_HoodieLogFileReader_moveToPrev
/** * Reverse pointer, does not read the block. Return the current position of the log file (in reverse) If the pointer * (inputstream) is moved in any way, it is the job of the client of this class to seek/reset it back to the file * position returned from the method to expect correct results */ public long moveTo...
3.68
morf_AbstractSqlDialectTest_expectedLeast
/** * @return The expected SQL statement when performing the ANSI LEAST call */ protected String expectedLeast() { return "SELECT LEAST(NULL, bob) FROM " + tableName("MyTable"); }
3.68
hibernate-validator_ReflectionHelper_isMap
/** * @param type the type to check. * * @return Returns {@code true} if {@code type} is implementing {@code Map}, {@code false} otherwise. */ public static boolean isMap(Type type) { if ( type instanceof Class && Map.class.isAssignableFrom( (Class<?>) type ) ) { return true; } if ( type instanceof Parameteriz...
3.68
hudi_BufferedRandomAccessFile_flush
/** * If the file is writable, flush any bytes in the buffer that have not yet been written to disk. * @throws IOException */ public void flush() throws IOException { this.flushBuffer(); }
3.68
hbase_ZkSplitLogWorkerCoordination_grabTask
/** * try to grab a 'lock' on the task zk node to own and execute the task. * <p> * @param path zk node for the task * @return boolean value when grab a task success return true otherwise false */ private boolean grabTask(String path) { Stat stat = new Stat(); byte[] data; synchronized (grabTaskLock) { c...
3.68
hbase_PendingWatcher_prepare
/** * Associates the substantial watcher of processing events. This method should be called once, and * {@code watcher} should be non-null. This method is expected to call as soon as possible because * the event processing, being invoked by the ZooKeeper event thread, is uninterruptibly blocked * until this method ...
3.68
flink_BaseHybridHashTable_close
/** * Closes the hash table. This effectively releases all internal structures and closes all open * files and removes them. The call to this method is valid both as a cleanup after the complete * inputs were properly processed, and as an cancellation call, which cleans up all resources * that are currently held by...
3.68
open-banking-gateway_Xs2aAdapterConfiguration_xs2aPkcs12KeyStore
/** * The keystore for QWAC and QSEAL certificates. * @param keystorePath Location of the keystore. * @param keystorePassword Keystore password. */ @Bean @SneakyThrows Pkcs12KeyStore xs2aPkcs12KeyStore( @Value("${" + XS2A_PROTOCOL_CONFIG_PREFIX + "pkcs12.keystore}") String keystorePath, @Value("${" ...
3.68
hbase_ProtobufMagic_compareTo
/* * Copied from Bytes.java to here hbase-common now depends on hbase-protocol Referencing * Bytes.java directly would create circular dependency */ private static int compareTo(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2) { // Short circuit equal case if (buffer1 == buff...
3.68
flink_MurmurHashUtil_hashBytes
/** * Hash bytes in MemorySegment. * * @param segment segment. * @param offset offset for MemorySegment * @param lengthInBytes length in MemorySegment * @return hash code */ public static int hashBytes(MemorySegment segment, int offset, int lengthInBytes) { return hashBytes(segment, offset, lengthInBytes, DE...
3.68
hbase_MasterRpcServices_lockHeartbeat
/** * @return LOCKED, if procedure is found and it has the lock; else UNLOCKED. * @throws ServiceException if given proc id is found but it is not a LockProcedure. */ @Override public LockHeartbeatResponse lockHeartbeat(RpcController controller, LockHeartbeatRequest request) throws ServiceException { try { i...
3.68
flink_InPlaceMutableHashTable_noSeekAppendPointerAndRecord
/** * Appends a pointer and a record. Call this function only if the write position is at the * end! * * @param pointer The pointer to write (Note: this is NOT the position to write to!) * @param record The record to write * @return A pointer to the written data * @throws IOException (EOFException specifically, ...
3.68
framework_MenuItem_getSubMenu
/** * Gets the sub-menu associated with this item. * * @return this item's sub-menu, or <code>null</code> if none exists */ public MenuBar getSubMenu() { return subMenu; }
3.68
flink_ScalaCsvOutputFormat_setInputType
/** * The purpose of this method is solely to check whether the data type to be processed is in * fact a tuple type. */ @Override public void setInputType(TypeInformation<?> type, ExecutionConfig executionConfig) { if (!type.isTupleType()) { throw new InvalidProgramException( "The " ...
3.68
zxing_PDF417ResultMetadata_getSegmentCount
/** * @return count of segments, -1 if not set */ public int getSegmentCount() { return segmentCount; }
3.68
hbase_RowModel_setKey
/** * @param key the row key */ public void setKey(byte[] key) { this.key = key; }
3.68
hbase_RegionCoprocessorHost_postScannerNext
/** * @param s the scanner * @param results the result set returned by the region server * @param limit the maximum number of results to return * @return 'has more' indication to give to client * @exception IOException Exception */ public boolean postScannerNext(final InternalScanner s, final List<Result>...
3.68
morf_AbstractSqlDialectTest_testInsertIntoValuesWithComplexField
/** * Tests an INSERT INTO (...) VALUES (...) statement with a complex field. */ @Test public void testInsertIntoValuesWithComplexField() { Schema schema = schema(table("TableOne").columns(column("id", DataType.INTEGER), column("value", DataType.INTEGER))); InsertStatement testStatement = insert().into(tableRef("...
3.68
framework_AbstractColorPicker_setTextfieldVisibility
/** * Sets the visibility of the CSS color code text field. * * @param visible * The visibility */ public void setTextfieldVisibility(boolean visible) { textfieldVisible = visible; if (window != null) { window.setPreviewVisible(visible); } }
3.68
dubbo_PathAndInvokerMapper_removePath
/** * undeploy path metadata * * @param pathMatcher */ public void removePath(PathMatcher pathMatcher) { InvokerAndRestMethodMetadataPair containPathVariablePair = pathToServiceMapContainPathVariable.remove(pathMatcher); InvokerAndRestMethodMetadataPair unContainPathVariablePair = pathToServic...
3.68
framework_VCalendar_getEventResizeListener
/** * Get the listener that listens to when an events time limits are being * adjusted. * * @return */ public EventResizeListener getEventResizeListener() { return eventResizeListener; }
3.68
querydsl_GroupBy_sum
/** * Create a new aggregating sum expression * * @param expression expression a for which the accumulated sum will be used in the group by projection * @return wrapper expression */ public static <E extends Number> AbstractGroupExpression<E, E> sum(Expression<E> expression) { return new GSum<E>(expression); }
3.68
hadoop_FindOptions_getIn
/** * Returns the input stream to be used. * * @return input stream to be used */ public InputStream getIn() { return this.in; }
3.68
framework_VMenuBar_hideChildren
/** * * Recursively hide all child menus. * * @param animateIn * enable/disable animate-in animation when hide popup * @param animateOut * enable/disable animate-out animation when hide popup * @since 7.3.7 */ public void hideChildren(boolean animateIn, boolean animateOut) { if (visib...
3.68
framework_Upload_removeSucceededListener
/** * Removes the upload success event listener. * * @param listener * the Listener to be removed. */ @Deprecated public void removeSucceededListener(SucceededListener listener) { removeListener(SucceededEvent.class, listener, UPLOAD_SUCCEEDED_METHOD); }
3.68
flink_AbstractBytesMultiMap_checkSkipWriteForPointer
/** For pointer needing update, skip unaligned part (4 bytes) for convenient updating. */ private int checkSkipWriteForPointer(AbstractPagedOutputView outView) throws IOException { // skip if there is no enough size. int available = outView.getSegmentSize() - outView.getCurrentPositionInSegment(); if (avail...
3.68
hbase_EventHandler_getPriority
/** * Get the priority level for this handler instance. This uses natural ordering so lower numbers * are higher priority. * <p> * Lowest priority is Integer.MAX_VALUE. Highest priority is 0. * <p> * Subclasses should override this method to allow prioritizing handlers. * <p> * Handlers with the same priority a...
3.68
AreaShop_AreaShop_warn
/** * Print a warning to the console. * @param message The message to print */ public static void warn(Object... message) { AreaShop.getInstance().getLogger().warning(StringUtils.join(message, " ")); }
3.68
flink_StringUtils_getRandomString
/** * Creates a random string with a length within the given interval. The string contains only * characters that can be represented as a single code point. * * @param rnd The random used to create the strings. * @param minLength The minimum string length. * @param maxLength The maximum string length (inclusive)....
3.68
MagicPlugin_BaseSpell_getDisplayCooldown
/** * @return The cooldown to show in UI. Spells can manually set their * "display_cooldown" if they apply cooldown via an action. */ private int getDisplayCooldown() { return displayCooldown != -1 ? displayCooldown : cooldown; }
3.68
flink_DCounter_getMetricValue
/** * Returns the count of events since the last report. * * @return the number of events since the last retrieval */ @Override public Number getMetricValue() { long currentCount = counter.getCount(); long difference = currentCount - lastReportCount; currentReportCount = currentCount; return differe...
3.68
flink_HiveParserQBParseInfo_getDistributeByForClause
/** Get the Distribute By AST for the clause. */ public HiveParserASTNode getDistributeByForClause(String clause) { return destToDistributeby.get(clause); }
3.68
flink_StateTable_isEmpty
/** * Returns whether this {@link StateTable} is empty. * * @return {@code true} if this {@link StateTable} has no elements, {@code false} otherwise. * @see #size() */ public boolean isEmpty() { return size() == 0; }
3.68
AreaShop_RentRegion_getMaxRentTime
/** * Get the maximum time the player can rent the region in advance (milliseconds). * @return The maximum rent time in milliseconds */ public long getMaxRentTime() { return Utils.getDurationFromMinutesOrStringInput(getStringSetting("rent.maxRentTime")); }
3.68
hbase_DumpReplicationQueues_main
/** * Main */ public static void main(String[] args) throws Exception { Configuration conf = HBaseConfiguration.create(); int ret = ToolRunner.run(conf, new DumpReplicationQueues(), args); System.exit(ret); }
3.68
flink_StreamExecutionEnvironment_registerType
/** * Registers the given type with the serialization stack. If the type is eventually serialized * as a POJO, then the type is registered with the POJO serializer. If the type ends up being * serialized with Kryo, then it will be registered at Kryo to make sure that only tags are * written. * * @param type The c...
3.68
querydsl_StringExpression_matches
/** * Create a {@code this.matches(regex)} expression * * <p>Return true if this String matches the given regular expression</p> * * <p>Some implementations such as Querydsl JPA will try to convert a regex expression into like * form and will throw an Exception when this fails</p> * * @param regex regular expre...
3.68
framework_AbstractSingleSelect_getSelectedItem
/** * Returns the currently selected item, or an empty optional if no item is * selected. * * @return an optional of the selected item if any, an empty optional * otherwise */ public Optional<T> getSelectedItem() { return Optional.ofNullable(selectedItem); }
3.68
graphhopper_GraphHopper_getLandmarks
/** * @return a mapping between profile names and according landmark preparations. The map will be empty before loading * or import. */ public Map<String, LandmarkStorage> getLandmarks() { return landmarks; }
3.68
framework_Upload_isButtonCaptionAsHtml
/** * Checks whether the caption of the button that fires uploading is rendered * as HTML * <p> * The default is {@code false}, i.e. to render that caption as plain text. * * @return {@code true} if the caption is rendered as HTML, {@code false} if * rendered as plain text * @since 8.11 */ public boole...
3.68
hudi_HoodieRecordPayload_combineAndGetUpdateValue
/** * This methods lets you write custom merging/combining logic to produce new values as a function of current value on storage and whats contained * in this object. Implementations can leverage properties if required. * <p> * eg: * 1) You are updating counters, you may want to add counts to currentValue and writ...
3.68
hudi_TimelineUtils_validateTimestampAsOf
/** * Validate user-specified timestamp of time travel query against incomplete commit's timestamp. * * @throws HoodieException when time travel query's timestamp >= incomplete commit's timestamp */ public static void validateTimestampAsOf(HoodieTableMetaClient metaClient, String timestampAsOf) { Option<HoodieIns...
3.68
flink_JobGraph_isCheckpointingEnabled
/** * Checks if the checkpointing was enabled for this job graph. * * @return true if checkpointing enabled */ public boolean isCheckpointingEnabled() { if (snapshotSettings == null) { return false; } return snapshotSettings.getCheckpointCoordinatorConfiguration().isCheckpointingEnabled(); }
3.68
hbase_HRegionServer_getUseThisHostnameInstead
// HMaster should override this method to load the specific config for master @Override protected String getUseThisHostnameInstead(Configuration conf) throws IOException { String hostname = conf.get(UNSAFE_RS_HOSTNAME_KEY); if (conf.getBoolean(UNSAFE_RS_HOSTNAME_DISABLE_MASTER_REVERSEDNS_KEY, false)) { if (!Str...
3.68
hbase_AuthManager_refreshNamespaceCacheFromWritable
/** * Update acl info for namespace. * @param namespace namespace * @param data updated acl data * @throws IOException exception when deserialize data */ public void refreshNamespaceCacheFromWritable(String namespace, byte[] data) throws IOException { if (data != null && data.length > 0) { try { L...
3.68
hbase_QuotaObserverChore_hasTableQuota
/** * Returns true if the given table has a table quota. */ public boolean hasTableQuota(TableName tn) { return tablesWithTableQuotas.contains(tn); }
3.68
hbase_PermissionStorage_removeUserPermission
/** * Removes a previously granted permission from the stored access control lists. The * {@link TablePermission} being removed must exactly match what is stored -- no wildcard matching * is attempted. Ie, if user "bob" has been granted "READ" access to the "data" table, but only to * column family plus qualifier "...
3.68
hbase_FilterListBase_transformCell
/** * For FilterList, we can consider a filter list as a node in a tree. sub-filters of the filter * list are children of the relative node. The logic of transforming cell of a filter list, well, * we can consider it as the process of post-order tree traverse. For a node , before we traverse * the current child, we...
3.68
hbase_ZNodePaths_getMetaReplicaIdFromPath
/** * Parses the meta replicaId from the passed path. * @param path the name of the full path which includes baseZNode. */ public int getMetaReplicaIdFromPath(String path) { // Extract the znode from path. The prefix is of the following format. // baseZNode + PATH_SEPARATOR. int prefixLen = baseZNode.length() ...
3.68
flink_StreamExecutionEnvironment_setRuntimeMode
/** * Sets the runtime execution mode for the application (see {@link RuntimeExecutionMode}). This * is equivalent to setting the {@code execution.runtime-mode} in your application's * configuration file. * * <p>We recommend users to NOT use this method but set the {@code execution.runtime-mode} using * the comma...
3.68
hbase_WALEdit_add
/** * Append the given map of family->edits to a WALEdit data structure. This does not write to the * WAL itself. Note that as an optimization, we will stamp the Set of column families into the * WALEdit to save on our having to calculate column families subsequently down in the actual WAL * writing. * @param fami...
3.68