name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hadoop_IOStatisticsLogging_toString | /**
* Evaluate and stringify the statistics.
* @return a string value.
*/
@Override
public String toString() {
return statistics != null
? ioStatisticsToString(statistics)
: IOStatisticsBinding.NULL_SOURCE;
} | 3.68 |
hadoop_AllocationTags_getNamespace | /**
* @return the namespace of these tags.
*/
public TargetApplicationsNamespace getNamespace() {
return this.ns;
} | 3.68 |
flink_DelimitedInputFormat_setCharset | /**
* Set the name of the character set used for the row delimiter. This is also used by subclasses
* to interpret field delimiters, comment strings, and for configuring {@link FieldParser}s.
*
* <p>These fields are interpreted when set. Changing the charset thereafter may cause
* unexpected results.
*
* @param ... | 3.68 |
flink_ExponentialDelayRestartBackoffTimeStrategy_calculateJitterBackoffMS | /**
* Calculate jitter offset to avoid thundering herd scenario. The offset range increases with
* the number of restarts.
*
* <p>F.e. for backoff time 8 with jitter 0.25, it generates random number in range [-2, 2].
*
* @return random value in interval [-n, n], where n represents jitter * current backoff
*/
pri... | 3.68 |
hadoop_DynamicIOStatistics_addCounterFunction | /**
* add a mapping of a key to a counter function.
* @param key the key
* @param eval the evaluator
*/
void addCounterFunction(String key, Function<String, Long> eval) {
counters.addFunction(key, eval);
} | 3.68 |
framework_AbstractBeanContainer_addItemAt | /**
* Adds a new bean at the given index.
*
* The bean is used both as the item contents and as the item identifier.
*
* @param index
* Index at which the bean should be added.
* @param newItemId
* The item id for the bean to add to the container.
* @param bean
* The bean to a... | 3.68 |
flink_SupportsRowLevelDelete_getRowLevelDeleteMode | /**
* Planner will rewrite delete statement to query base on the {@link RowLevelDeleteInfo},
* keeping the query of delete unchanged by default(in `DELETE_ROWS` mode), or changing the
* query to the complementary set in REMAINING_ROWS mode.
*
* <p>Take the following SQL as an example:
*
* <pre>{@code
* DELETE F... | 3.68 |
shardingsphere-elasticjob_SchedulerFacade_newJobTriggerListener | /**
* Create job trigger listener.
*
* @return job trigger listener
*/
public JobTriggerListener newJobTriggerListener() {
return new JobTriggerListener(executionService, shardingService);
} | 3.68 |
framework_AbstractMedia_isLoop | /**
* @return true if looping is enabled
* @since 7.7.11
*/
public boolean isLoop() {
return getState(false).loop;
} | 3.68 |
hbase_MiniHBaseCluster_startRegionServerAndWait | /**
* Starts a region server thread and waits until its processed by master. Throws an exception when
* it can't start a region server or when the region server is not processed by master within the
* timeout.
* @return New RegionServerThread
*/
public JVMClusterUtil.RegionServerThread startRegionServerAndWait(lon... | 3.68 |
flink_ExecutionEnvironment_readTextFileWithValue | /**
* Creates a {@link DataSet} that represents the Strings produced by reading the given file line
* wise. This method is similar to {@link #readTextFile(String, String)}, but it produces a
* DataSet with mutable {@link StringValue} objects, rather than Java Strings. StringValues can
* be used to tune implementati... | 3.68 |
hudi_FileSlice_isEmpty | /**
* Returns true if there is no data file and no log files. Happens as part of pending compaction.
*/
public boolean isEmpty() {
return (baseFile == null) && (logFiles.isEmpty());
} | 3.68 |
framework_Label_compareTo | /**
* Compares the Label to other objects.
*
* <p>
* Labels can be compared to other labels for sorting label contents. This
* is especially handy for sorting table columns.
* </p>
*
* <p>
* In RAW, PREFORMATTED and TEXT modes, the label contents are compared as
* is. In XML, UIDL and HTML modes, only CDATA i... | 3.68 |
flink_Task_releaseResources | /**
* Releases resources before task exits. We should also fail the partition to release if the
* task has failed, is canceled, or is being canceled at the moment.
*/
private void releaseResources() {
LOG.debug(
"Release task {} network resources (state: {}).",
taskNameWithSubtask,
... | 3.68 |
hbase_SpaceLimitSettings_getProto | /**
* Returns a copy of the internal state of <code>this</code>
*/
SpaceLimitRequest getProto() {
return proto.toBuilder().build();
} | 3.68 |
hadoop_TypedBytesInput_skipType | /**
* Skips a type byte.
* @return true iff the end of the file was not reached
* @throws IOException
*/
public boolean skipType() throws IOException {
try {
in.readByte();
return true;
} catch (EOFException eof) {
return false;
}
} | 3.68 |
framework_AbstractComponent_getDebugId | /**
* @deprecated As of 7.0. Use {@link #getId()}
*/
@Deprecated
public String getDebugId() {
return getId();
} | 3.68 |
morf_AliasedField_divideBy | /**
* @param expression value to use as the denominator.
* @return A new expression using {@link MathsField} and {@link MathsOperator#DIVIDE}.
*/
public final MathsField divideBy(AliasedField expression) {
return new MathsField(this, MathsOperator.DIVIDE, potentiallyBracketExpression(expression));
} | 3.68 |
hibernate-validator_AbstractMethodOverrideCheck_collectOverriddenMethods | /**
* Collect all the overridden elements of the inheritance tree.
*
* @param overridingMethod the method for which we want to find the overridden methods
* @param currentTypeElement the class we are analyzing
* @param methodInheritanceTreeBuilder the method inheritance tree builder
*/
private void collectOverrid... | 3.68 |
hbase_MemStoreCompactor_start | /**
* ---------------------------------------------------------------------- The request to dispatch
* the compaction asynchronous task. The method returns true if compaction was successfully
* dispatched, or false if there is already an ongoing compaction or no segments to compact.
*/
public boolean start() throws... | 3.68 |
hibernate-validator_PESELValidator_year | /**
* 1800–1899 - 80
* 1900–1999 - 00
* 2000–2099 - 20
* 2100–2199 - 40
* 2200–2299 - 60
*/
private int year(int year, int centuryCode) {
switch ( centuryCode ) {
case 4: return 1800 + year;
case 0: return 1900 + year;
case 1: return 2000 + year;
case 2: return 2100 + year;
case 3: return 2200 + year;
... | 3.68 |
hudi_Key_getBytes | /**
* @return byte[] The value of <i>this</i> key.
*/
public byte[] getBytes() {
return this.bytes;
} | 3.68 |
druid_DruidDataSourceBuilder_build | /**
* For issue #1796, use Spring Environment by specify configuration properties prefix to build DruidDataSource.
* <p>
* 这是为了兼容 Spring Boot 1.X 中 .properties 内配置属性不能按照配置声明顺序进行绑定,进而导致配置出错(issue #1796 )而提供的方法。
* 如果你不存在上述问题或者使用 .yml 进行配置则不必使用该方法,使用上面的{@link DruidDataSourceBuilder#build}即可,Spring Boot 2.0 修复了该问题,该方法届... | 3.68 |
querydsl_SQLExpressions_addYears | /**
* Add the given amount of years to the date
*
* @param date date
* @param years years to add
* @return converted date
*/
public static <D extends Comparable> DateExpression<D> addYears(DateExpression<D> date, int years) {
return Expressions.dateOperation(date.getType(), Ops.DateTimeOps.ADD_YEARS, date, Co... | 3.68 |
hbase_WALSplitUtil_getSplitEditFilesSorted | /**
* Returns sorted set of edit files made by splitter, excluding files with '.temp' suffix.
* @param walFS WAL FileSystem used to retrieving split edits files.
* @param regionDir WAL region dir to look for recovered edits files under.
* @return Files in passed <code>regionDir</code> as a sorted set.
*/
publi... | 3.68 |
hbase_OnlineLogRecord_setBlockBytesScanned | /**
* Sets the amount of block bytes scanned to retrieve the response cells.
*/
public OnlineLogRecordBuilder setBlockBytesScanned(long blockBytesScanned) {
this.blockBytesScanned = blockBytesScanned;
return this;
} | 3.68 |
hbase_ObjectPool_size | /**
* Returns an estimated count of objects kept in the pool. This also counts stale references, and
* you might want to call {@link #purge()} beforehand.
*/
public int size() {
return referenceCache.size();
} | 3.68 |
hbase_TableInputFormat_addColumns | /**
* Convenience method to parse a string representation of an array of column specifiers.
* @param scan The Scan to update.
* @param columns The columns to parse.
*/
private static void addColumns(Scan scan, String columns) {
String[] cols = columns.split(" ");
for (String col : cols) {
addColumn(scan,... | 3.68 |
flink_InternalServiceDecorator_getNamespacedInternalServiceName | /** Generate namespaced name of the internal Service. */
public static String getNamespacedInternalServiceName(String clusterId, String namespace) {
return getInternalServiceName(clusterId) + "." + namespace;
} | 3.68 |
AreaShop_GeneralRegion_needsPeriodicUpdate | /**
* Check if a sign needs periodic updating.
* @return true if the signs of this region need periodic updating, otherwise false
*/
public boolean needsPeriodicUpdate() {
return !(isDeleted() || !(this instanceof RentRegion)) && getSignsFeature().needsPeriodicUpdate();
} | 3.68 |
flink_WindowOperator_registerCleanupTimer | /**
* Registers a timer to cleanup the content of the window.
*
* @param window the window whose state to discard
*/
private void registerCleanupTimer(W window) {
long cleanupTime = toEpochMillsForTimer(cleanupTime(window), shiftTimeZone);
if (cleanupTime == Long.MAX_VALUE) {
// don't set a GC timer... | 3.68 |
hbase_WALActionsListener_preLogArchive | /**
* The WAL is going to be archived.
* @param oldPath the path to the old wal
* @param newPath the path to the new wal
*/
default void preLogArchive(Path oldPath, Path newPath) throws IOException {
} | 3.68 |
morf_AbstractSqlDialectTest_testSelectWithNestedEqualityCheck | /**
* Tests that strange equality behaviour is maintained.
*/
@Test
public void testSelectWithNestedEqualityCheck() {
SelectStatement stmt = new SelectStatement(new FieldReference(STRING_FIELD))
.from(new TableReference(TEST_TABLE))
.where(eq(new FieldReference(BOOLEAN_FIELD), eq(new FieldReference(CHAR_FIELD),... | 3.68 |
framework_VLayoutSlot_getExpandRatio | /**
* Get the expand ratio for the slot. The expand ratio describes how the
* slot should be resized compared to other slots in the layout.
*
* @return the expand ratio of the slot
*
* @see #setExpandRatio(double)
*
* @deprecated this value isn't used for anything by default
*/
@Deprecated
public double getExp... | 3.68 |
flink_TableChange_set | /**
* A table change to set the table option.
*
* <p>It is equal to the following statement:
*
* <pre>
* ALTER TABLE <table_name> SET '<key>' = '<value>';
* </pre>
*
* @param key the option name to set.
* @param value the option value to set.
* @return a TableChange represents the modifi... | 3.68 |
cron-utils_CronDefinitionBuilder_instance | /**
* Creates a new CronDefinition instance with provided field definitions.
*
* @return returns CronDefinition instance, never null
*/
public CronDefinition instance() {
final Set<CronConstraint> validations = new HashSet<>();
validations.addAll(cronConstraints);
final List<FieldDefinition> values = ne... | 3.68 |
hbase_BucketCache_putIntoBackingMap | /**
* Put the new bucket entry into backingMap. Notice that we are allowed to replace the existing
* cache with a new block for the same cache key. there's a corner case: one thread cache a block
* in ramCache, copy to io-engine and add a bucket entry to backingMap. Caching another new block
* with the same cache k... | 3.68 |
hbase_ClassSize_align | /**
* Aligns a number to 8.
* @param num number to align to 8
* @return smallest number >= input that is a multiple of 8
*/
public static long align(long num) {
return memoryLayout.align(num);
} | 3.68 |
flink_ServerConnection_sendRequest | /**
* Returns a future holding the serialized request result.
*
* @param request the request to be sent.
* @return Future holding the serialized result
*/
@Override
public CompletableFuture<RESP> sendRequest(REQ request) {
synchronized (lock) {
if (running) {
EstablishedConnection.Timestamp... | 3.68 |
framework_StringToByteConverter_getModelType | /*
* (non-Javadoc)
*
* @see com.vaadin.data.util.converter.Converter#getModelType()
*/
@Override
public Class<Byte> getModelType() {
return Byte.class;
} | 3.68 |
graphhopper_OSMNodeData_getId | /**
* @return the internal id stored for the given OSM node id. use {@link #isTowerNode} etc. to find out what this
* id means
*/
public long getId(long osmNodeId) {
return idsByOsmNodeIds.get(osmNodeId);
} | 3.68 |
hadoop_SecureStorageInterfaceImpl_getLeaseCondition | /**
* Return and access condition for this lease, or else null if
* there's no lease.
*/
private AccessCondition getLeaseCondition(SelfRenewingLease lease) {
AccessCondition leaseCondition = null;
if (lease != null) {
leaseCondition = AccessCondition.generateLeaseCondition(lease.getLeaseID());
}
return l... | 3.68 |
hudi_RunLengthDecoder_readNextGroup | /**
* Reads the next group.
*/
void readNextGroup() {
try {
int header = readUnsignedVarInt();
this.mode = (header & 1) == 0 ? MODE.RLE : MODE.PACKED;
switch (mode) {
case RLE:
this.currentCount = header >>> 1;
this.currentValue = readIntLittleEndianPaddedOnBitWidth();
retu... | 3.68 |
flink_LimitedConnectionsFileSystem_getStreamOpenTimeout | /**
* Gets the number of milliseconds that a opening a stream may wait for availability in the
* connection pool.
*/
public long getStreamOpenTimeout() {
return streamOpenTimeoutNanos / 1_000_000;
} | 3.68 |
hadoop_IOStatisticsSnapshot_clear | /**
* Clear all the maps.
*/
public synchronized void clear() {
counters.clear();
gauges.clear();
minimums.clear();
maximums.clear();
meanStatistics.clear();
} | 3.68 |
framework_LegacyCommunicationManager_getClientCache | /**
* @deprecated As of 7.1. See #11410.
*/
@Deprecated
public ClientCache getClientCache(UI uI) {
Integer uiId = Integer.valueOf(uI.getUIId());
ClientCache cache = uiToClientCache.get(uiId);
if (cache == null) {
cache = new ClientCache();
uiToClientCache.put(uiId, cache);
uI.addDe... | 3.68 |
framework_AbstractFieldConnector_isRequired | /**
* Checks whether the required indicator should be shown for the field.
* Required indicators are hidden if the field or its data source is
* read-only.
* <p>
* NOTE: since 8.0 this only delegates to
* {@link #isRequiredIndicatorVisible()}, and is left for legacy reasons.
*
* @deprecated Use {@link #isRequir... | 3.68 |
framework_DateFieldElement_setDate | /**
* Sets the value to the given date and time.
*
* @param value
* the date and time to set.
*/
public void setDate(LocalDate value) {
setISOValue(value.format(getISOFormatter()));
} | 3.68 |
framework_HierarchyMapper_doFetchDirectChildren | /**
* Generic method for finding direct children of a given parent, limited by
* given range.
*
* @param parent
* the parent
* @param range
* the range of direct children to return
* @return the requested children of the given parent
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
priva... | 3.68 |
hadoop_SysInfoWindows_getAvailableVirtualMemorySize | /** {@inheritDoc} */
@Override
public long getAvailableVirtualMemorySize() {
refreshIfNeeded();
return vmemAvailable;
} | 3.68 |
hbase_UserProvider_reload | // Provide the reload function that uses the executor thread.
@Override
public ListenableFuture<String[]> reload(final String k, String[] oldValue)
throws Exception {
return executor.submit(new Callable<String[]>() {
@Override
public String[] call() throws Exception {
return getGroupStrings(k);
}... | 3.68 |
hbase_SimpleRegionNormalizer_isMergeEnabled | /**
* Return this instance's configured value for {@value #MERGE_ENABLED_KEY}.
*/
public boolean isMergeEnabled() {
return normalizerConfiguration.isMergeEnabled();
} | 3.68 |
querydsl_Expressions_asDateTime | /**
* Create a new DateTimeExpression
*
* @param value the date time
* @return new DateTimeExpression
*/
public static <T extends Comparable<?>> DateTimeExpression<T> asDateTime(T value) {
return asDateTime(constant(value));
} | 3.68 |
hadoop_ExponentialRetryPolicy_getRetryInterval | /**
* Returns backoff interval between 80% and 120% of the desired backoff,
* multiply by 2^n-1 for exponential.
*
* @param retryCount The current retry attempt count.
* @return backoff Interval time
*/
public long getRetryInterval(final int retryCount) {
final long boundedRandDelta = (int) (this.deltaBackoff *... | 3.68 |
hbase_CacheStats_getDataMissCount | // All of the counts of misses and hits.
public long getDataMissCount() {
return dataMissCount.sum();
} | 3.68 |
hbase_ZKLeaderManager_stepDownAsLeader | /**
* Removes the leader znode, if it is currently claimed by this instance.
*/
public void stepDownAsLeader() {
try {
synchronized (lock) {
if (!leaderExists.get()) {
return;
}
byte[] leaderId = ZKUtil.getData(watcher, leaderZNode);
if (leaderId != null && Bytes.equals(nodeId, l... | 3.68 |
flink_BinarySegmentUtils_getDouble | /**
* get double from segments.
*
* @param segments target segments.
* @param offset value offset.
*/
public static double getDouble(MemorySegment[] segments, int offset) {
if (inFirstSegment(segments, offset, 8)) {
return segments[0].getDouble(offset);
} else {
return getDoubleMultiSegment... | 3.68 |
hadoop_TwoColumnLayout_nav | /**
* @return the class that will render the navigation bar.
*/
protected Class<? extends SubView> nav() {
return NavBlock.class;
} | 3.68 |
hudi_WriteOperationType_fromValue | /**
* Convert string value to WriteOperationType.
*/
public static WriteOperationType fromValue(String value) {
switch (value.toLowerCase(Locale.ROOT)) {
case "insert":
return INSERT;
case "insert_prepped":
return INSERT_PREPPED;
case "upsert":
return UPSERT;
case "upsert_prepped":... | 3.68 |
morf_HumanReadableStatementHelper_generateUniqueIndexString | /**
* Generates a unique / non-unique string for the specified index definition.
*
* @param definition the definition of the index
* @return a string representation of unique / non-unique
*/
private static String generateUniqueIndexString(final Index definition) {
return definition.isUnique() ? "unique" : "non-u... | 3.68 |
hbase_Addressing_createHostAndPortStr | /**
* Create a host-and-port string
* @param hostname Server hostname
* @param port Server port
* @return Returns a concatenation of <code>hostname</code> and <code>port</code> in following
* form: <code><hostname> ':' <port></code>. For example, if hostname is
* <code>example.org<... | 3.68 |
flink_FutureUtils_doForward | /**
* Completes the given future with either the given value or throwable, depending on which
* parameter is not null.
*
* @param value value with which the future should be completed
* @param throwable throwable with which the future should be completed exceptionally
* @param target future to complete
* @param ... | 3.68 |
hudi_HDFSParquetImporterUtils_createHoodieClient | /**
* Build Hoodie write client.
*
* @param jsc Java Spark Context
* @param basePath Base Path
* @param schemaStr Schema
* @param parallelism Parallelism
*/
public static SparkRDDWriteClient<HoodieRecordPayload> createHoodieClient(JavaSparkContext jsc, String basePath, String schemaStr,
... | 3.68 |
framework_AbstractSingleSelect_keyToItem | /**
* Returns the item that the given key is assigned to, or {@code null} if
* there is no such item.
*
* @param key
* the key whose item to return
* @return the associated item if any, {@code null} otherwise.
*/
protected T keyToItem(String key) {
return getDataCommunicator().getKeyMapper().get(k... | 3.68 |
flink_BinarySegmentUtils_copyToUnsafe | /**
* Copy segments to target unsafe pointer.
*
* @param segments Source segments.
* @param offset The position where the bytes are started to be read from these memory segments.
* @param target The unsafe memory to copy the bytes to.
* @param pointer The position in the target unsafe memory to copy the chunk to.... | 3.68 |
zxing_State_latchAndAppend | // Create a new state representing this state with a latch to a (not
// necessary different) mode, and then a code.
State latchAndAppend(int mode, int value) {
int bitCount = this.bitCount;
Token token = this.token;
if (mode != this.mode) {
int latch = HighLevelEncoder.LATCH_TABLE[this.mode][mode];
token ... | 3.68 |
framework_AbstractOrderedLayoutConnector_onStateChanged | /*
* (non-Javadoc)
*
* @see
* com.vaadin.client.ui.AbstractComponentConnector#onStateChanged(com.vaadin
* .client.communication.StateChangeEvent)
*/
@SuppressWarnings("deprecation")
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
clickEven... | 3.68 |
framework_Embedded_getParameterNames | /**
* Gets the embedded object parameter names.
*
* @return the Iterator of parameters names.
*/
public Iterator<String> getParameterNames() {
return getState(false).parameters.keySet().iterator();
} | 3.68 |
flink_FloatHashSet_add | /** See {@link Float#equals(Object)}. */
public boolean add(final float k) {
int intKey = Float.floatToIntBits(k);
if (intKey == 0) {
if (this.containsZero) {
return false;
}
this.containsZero = true;
} else {
float[] key = this.key;
int pos;
int ... | 3.68 |
framework_ThemeResource_toString | /**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return resourceID;
} | 3.68 |
hmily_FileRepository_clean | /**
* The file handle is occupied help gc clean buffer.
* http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4724038
* @param buffer buffer
*/
public static void clean(final ByteBuffer buffer) {
if (buffer == null || !buffer.isDirect() || buffer.capacity() == 0) {
return;
}
invoke(invoke(viewed... | 3.68 |
hbase_RegionSplitter_newSplitAlgoInstance | /**
* @throws IOException if the specified SplitAlgorithm class couldn't be instantiated
*/
public static SplitAlgorithm newSplitAlgoInstance(Configuration conf, String splitClassName)
throws IOException {
Class<?> splitClass;
// For split algorithms builtin to RegionSplitter, the user can specify
// their s... | 3.68 |
hmily_HmilyRepositoryEvent_clear | /**
* help gc.
*/
public void clear() {
hmilyTransaction = null;
hmilyParticipant = null;
hmilyParticipantUndo = null;
hmilyLocks = null;
transId = null;
} | 3.68 |
framework_Page_pushState | /**
* Updates the browsers URI without causing actual page change. This method
* is useful if you wish implement "deep linking" to your application.
* Calling the method also adds a new entry to clients browser history and
* you can further use {@link PopStateListener} to track the usage of
* back/forward feature ... | 3.68 |
pulsar_MessageId_fromByteArray | /**
* De-serialize a message id from a byte array.
*
* @param data
* byte array containing the serialized message id
* @return the de-serialized messageId object
* @throws IOException if the de-serialization fails
*/
static MessageId fromByteArray(byte[] data) throws IOException {
return DefaultIm... | 3.68 |
framework_VProgressBar_isIndeterminate | /**
* Gets whether or not this progress indicator is indeterminate. In
* indeterminate mode there is an animation indicating that the task is
* running but without providing any information about the current progress.
*
* @return {@code true} if set to indeterminate mode, {@code false}
* otherwise
*/
pub... | 3.68 |
zxing_GenericGF_buildMonomial | /**
* @return the monomial representing coefficient * x^degree
*/
GenericGFPoly buildMonomial(int degree, int coefficient) {
if (degree < 0) {
throw new IllegalArgumentException();
}
if (coefficient == 0) {
return zero;
}
int[] coefficients = new int[degree + 1];
coefficients[0] = coefficient;
r... | 3.68 |
flink_RunLengthDecoder_readIntLittleEndian | /** Reads the next 4 byte little endian int. */
private int readIntLittleEndian() throws IOException {
int ch4 = in.read();
int ch3 = in.read();
int ch2 = in.read();
int ch1 = in.read();
return ((ch1 << 24) + (ch2 << 16) + (ch3 << 8) + ch4);
} | 3.68 |
flink_BlobServer_deleteInternal | /**
* Deletes the file associated with the blob key in the local storage of the blob server.
*
* @param jobId ID of the job this blob belongs to (or <tt>null</tt> if job-unrelated)
* @param key blob key associated with the file to be deleted
* @return <tt>true</tt> if the given blob is successfully deleted or non-... | 3.68 |
AreaShop_WorldEditSelection_getWidth | /**
* Get X-size.
*
* @return width
*/
public int getWidth() {
return maximum.getBlockX() - minimum.getBlockX() + 1;
} | 3.68 |
flink_StateTtlConfig_setUpdateType | /**
* Sets the ttl update type.
*
* @param updateType The ttl update type configures when to update last access timestamp
* which prolongs state TTL.
*/
@Nonnull
public Builder setUpdateType(UpdateType updateType) {
this.updateType = updateType;
return this;
} | 3.68 |
flink_EdgeManagerBuildUtil_connectInternal | /** Connect all execution vertices to all partitions. */
private static void connectInternal(
List<ExecutionVertex> taskVertices,
List<IntermediateResultPartition> partitions,
ResultPartitionType resultPartitionType,
EdgeManager edgeManager) {
checkState(!taskVertices.isEmpty());
... | 3.68 |
framework_VScrollTable_moveFocusDown | /**
* Moves the focus down by 1+offset rows
*
* @return Returns true if succeeded, else false if the selection could not
* be move downwards
*/
private boolean moveFocusDown(int offset) {
if (isSelectable()) {
if (focusedRow == null && scrollBody.iterator().hasNext()) {
// FIXME sho... | 3.68 |
flink_HiveServer2Endpoint_SetClientInfo | /** To be compatible with Hive3, add a default implementation. */
public TSetClientInfoResp SetClientInfo(TSetClientInfoReq tSetClientInfoReq) throws TException {
return new TSetClientInfoResp(buildErrorStatus("SetClientInfo"));
} | 3.68 |
hadoop_StateStoreUtils_filterMultiple | /**
* Filters a list of records to find all records matching the query.
*
* @param <T> Type of the class of the data record.
* @param query Map of field names and objects to use to filter results.
* @param records List of data records to filter.
* @return List of all records matching the query (or empty list if n... | 3.68 |
hbase_RegionInfo_areAdjacent | /**
* Check whether two regions are adjacent; i.e. lies just before or just after in a table.
* @return true if two regions are adjacent
*/
static boolean areAdjacent(RegionInfo regionA, RegionInfo regionB) {
if (regionA == null || regionB == null) {
throw new IllegalArgumentException("Can't check whether adja... | 3.68 |
framework_ApplicationConfiguration_isProductionMode | /**
* Checks if production mode is enabled. When production mode is enabled,
* client-side logging is disabled. There may also be other performance
* optimizations.
*
* @since 7.1.2
* @return <code>true</code> if production mode is enabled; otherwise
* <code>false</code>.
*/
public static boolean isProd... | 3.68 |
querydsl_ConstructorUtils_getConstructor | /**
* Returns the constructor where the formal parameter list matches the
* givenTypes argument.
*
* It is advisable to first call
* {@link #getConstructorParameters(java.lang.Class, java.lang.Class[])}
* to get the parameters.
*
* @param type type
* @param givenTypes parameter types
* @return matching constr... | 3.68 |
hbase_WALInputFormat_getFiles | /**
* @param startTime If file looks like it has a timestamp in its name, we'll check if newer or
* equal to this value else we will filter out the file. If name does not seem to
* have a timestamp, we will just return it w/o filtering.
* @param endTime If file looks like it has ... | 3.68 |
hadoop_StoragePolicySatisfyManager_getMode | /**
* @return sps service mode.
*/
public StoragePolicySatisfierMode getMode() {
return mode;
} | 3.68 |
framework_BeanContainer_addItem | /**
* Adds the bean to the Container.
*
* @see Container#addItem(Object)
*/
@Override
public BeanItem<BEANTYPE> addItem(IDTYPE itemId, BEANTYPE bean) {
if (itemId != null && bean != null) {
return super.addItem(itemId, bean);
} else {
return null;
}
} | 3.68 |
hbase_Get_toMap | /**
* Compile the details beyond the scope of getFingerprint (row, columns, timestamps, etc.) into a
* Map along with the fingerprinted information. Useful for debugging, logging, and administration
* tools.
* @param maxCols a limit on the number of columns output prior to truncation
*/
@Override
public Map<String... | 3.68 |
hibernate-validator_CodePointLength_normalize | /**
* Normalize a specified character sequence.
* @param value target value
* @return normalized value
*/
public CharSequence normalize(CharSequence value) {
if ( this.form == null || value == null || value.length() == 0 ) {
return value;
}
return Normalizer.normalize( value, this.form );
} | 3.68 |
morf_AbstractSqlDialectTest_expectedHints4c | /**
* @return The expected SQL for the {@link InsertStatement#useParallelDml(int)} directive.
*/
protected String expectedHints4c() {
return "INSERT INTO " + tableName("Foo") + " SELECT a, b FROM " + tableName("Foo_1");
} | 3.68 |
flink_FailureEnricherUtils_filterInvalidEnrichers | /**
* Filters out invalid {@link FailureEnricher} objects that have duplicate output keys.
*
* @param failureEnrichers a set of {@link FailureEnricher} objects to filter
* @return a filtered collection without any duplicate output keys
*/
@VisibleForTesting
static Collection<FailureEnricher> filterInvalidEnrichers... | 3.68 |
hbase_Connection_getHbck | /**
* Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
* be thread-safe. A new instance should be created by each thread. This is a lightweight
* operation. Pooling or caching of the returned Hbck instance is not recommended. <br>
* The caller is responsible for callin... | 3.68 |
pulsar_AuthorizationService_allowTenantOperation | /**
* @deprecated - will be removed after 2.12. Use async variant.
*/
@Deprecated
public boolean allowTenantOperation(String tenantName,
TenantOperation operation,
String originalRole,
String role,
... | 3.68 |
framework_PointerEventSupport_isSupported | /**
* @return true if pointer events are supported by the browser, false
* otherwise
*/
public static boolean isSupported() {
return IMPL.isSupported();
} | 3.68 |
flink_ProjectOperator_projectTuple25 | /**
* 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 |
hudi_HoodieTableConfig_getDatabaseName | /**
* Read the database name.
*/
public String getDatabaseName() {
return getString(DATABASE_NAME);
} | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.