name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hadoop_CommonAuditContext_reset | /**
* Rest the context; will set the standard options again.
* Primarily for testing.
*/
public void reset() {
evaluatedEntries.clear();
init();
} | 3.68 |
flink_IOUtils_tryReadFully | /**
* Similar to {@link #readFully(InputStream, byte[], int, int)}. Returns the total number of
* bytes read into the buffer.
*
* @param in The InputStream to read from
* @param buf The buffer to fill
* @return The total number of bytes read into the buffer
* @throws IOException If the first byte cannot be read ... | 3.68 |
hbase_SnapshotInfo_getArchivedStoreFileSize | /** Returns the total size of the store files in the archive */
public long getArchivedStoreFileSize() {
return hfilesArchiveSize.get();
} | 3.68 |
framework_LegacyApplicationUIProvider_getExistingUI | /**
* Hack used to return existing LegacyWindow instances without regard for
* out-of-sync problems.
*
* @param event
* @return
*/
public UI getExistingUI(UIClassSelectionEvent event) {
UI uiInstance = getUIInstance(event);
if (uiInstance == null || uiInstance.getUIId() == -1) {
// Not initialized... | 3.68 |
hadoop_TimelineReaderWhitelistAuthorizationFilterInitializer_initFilter | /**
* Initializes {@link TimelineReaderWhitelistAuthorizationFilter}.
*
* @param container The filter container
* @param conf Configuration for run-time parameters
*/
@Override
public void initFilter(FilterContainer container, Configuration conf) {
Map<String, String> params = new HashMap<String, String>();
St... | 3.68 |
framework_Table_setSelectable | /**
* Setter for property selectable.
*
* <p>
* The table is not selectable until it's explicitly set as selectable via
* this method or alternatively at least one {@link ValueChangeListener} is
* added.
* </p>
*
* @param selectable
* the New value of property selectable.
*/
public void setSelecta... | 3.68 |
hbase_SlowLogTableAccessor_getRowKey | /**
* Create rowKey: currentTime APPEND slowLogPayload.hashcode Scan on slowlog table should keep
* records with sorted order of time, however records added at the very same time could be in
* random order.
* @param slowLogPayload SlowLogPayload to process
* @return rowKey byte[]
*/
private static byte[] getRowKe... | 3.68 |
flink_RestfulGateway_updateJobResourceRequirements | /**
* Update {@link JobResourceRequirements job resource requirements} for a given job. When the
* returned future is complete the requirements have been updated and were persisted in HA, but
* the job may not have been rescaled (yet).
*
* @param jobId job the given requirements belong to
* @param jobResourceRequ... | 3.68 |
framework_DragSourceExtensionConnector_setDragImage | /**
* Sets the drag image to be displayed.
* <p>
* Override this method in case you need custom drag image setting. Called
* from {@link #onDragStart(Event)}.
*
* @param dragStartEvent
* The drag start event.
*/
protected void setDragImage(NativeEvent dragStartEvent) {
String imageUrl = getResour... | 3.68 |
flink_JobGraph_getSerializedExecutionConfig | /**
* Returns the {@link ExecutionConfig}.
*
* @return ExecutionConfig
*/
public SerializedValue<ExecutionConfig> getSerializedExecutionConfig() {
return serializedExecutionConfig;
} | 3.68 |
flink_FeedbackTransformation_addFeedbackEdge | /**
* Adds a feedback edge. The parallelism of the {@code Transformation} must match the
* parallelism of the input {@code Transformation} of this {@code FeedbackTransformation}
*
* @param transform The new feedback {@code Transformation}.
*/
public void addFeedbackEdge(Transformation<T> transform) {
if (tran... | 3.68 |
flink_CatalogManager_registerCatalog | /**
* Registers a catalog under the given name. The catalog name must be unique.
*
* @param catalogName name under which to register the given catalog
* @param catalog catalog to register
* @throws CatalogException if the registration of the catalog under the given name failed
* @deprecated This method is depreca... | 3.68 |
hbase_MasterAddressTracker_getBackupMasterInfoPort | /**
* Get backup master info port. Use this instead of {@link #getBackupMasterInfoPort(ServerName)}
* if you do not have an instance of this tracker in your context.
* @param zkw ZKWatcher to use
* @param sn ServerName of the backup master
* @return backup master info port in the the master address znode or 0 if ... | 3.68 |
hbase_ZKAuthentication_login | /**
* Log in the current process using the given configuration keys for the credential file and login
* principal.
* <p>
* <strong>This is only applicable when running on secure hbase</strong> On regular HBase (without
* security features), this will safely be ignored.
* </p>
* @param conf The co... | 3.68 |
flink_DagConnection_setShipStrategy | /**
* Sets the shipping strategy for this connection.
*
* @param strategy The shipping strategy to be applied to this connection.
*/
public void setShipStrategy(ShipStrategyType strategy) {
this.shipStrategy = strategy;
} | 3.68 |
hadoop_AbstractDelegationTokenBinding_getOwnerText | /**
* Return the name of the owner to be used in tokens.
* This may be that of the UGI owner, or it could be related to
* the AWS login.
* @return a text name of the owner.
*/
public Text getOwnerText() {
return new Text(getOwner().getUserName());
} | 3.68 |
hbase_TagUtil_carryForwardTags | /** Add to <code>tagsOrNull</code> any Tags <code>cell</code> is carrying or null if none. */
public static List<Tag> carryForwardTags(final List<Tag> tagsOrNull, final Cell cell) {
Iterator<Tag> itr = PrivateCellUtil.tagsIterator(cell);
if (itr == EMPTY_TAGS_ITR) {
// If no Tags, return early.
return tagsO... | 3.68 |
dubbo_ReflectUtils_name2desc | /**
* name to desc.
* java.util.Map[][] => "[[Ljava/util/Map;"
*
* @param name name.
* @return desc.
*/
public static String name2desc(String name) {
StringBuilder sb = new StringBuilder();
int c = 0, index = name.indexOf('[');
if (index > 0) {
c = (name.length() - index) / 2;
name = n... | 3.68 |
hudi_Key_getWeight | /**
* @return Returns the weight associated to <i>this</i> key.
*/
public double getWeight() {
return weight;
} | 3.68 |
flink_AdaptiveScheduler_checkIdleSlotTimeout | /**
* Check for slots that are idle for more than {@link JobManagerOptions#SLOT_IDLE_TIMEOUT} and
* release them back to the ResourceManager.
*/
private void checkIdleSlotTimeout() {
if (getState().getJobStatus().isGloballyTerminalState()) {
// Job has reached the terminal state, so we can return all slo... | 3.68 |
morf_GraphBasedUpgradeNode_getName | /**
* @return name of the upgrade node
*/
public String getName() {
return name;
} | 3.68 |
hadoop_RegistryTypeUtils_restEndpoint | /**
* Create a REST endpoint from a list of URIs
* @param api implemented API
* @param uris URIs
* @return a new endpoint
*/
public static Endpoint restEndpoint(String api,
URI... uris) {
return urlEndpoint(api, ProtocolTypes.PROTOCOL_REST, uris);
} | 3.68 |
shardingsphere-elasticjob_ListenerNotifierManager_registerJobNotifyExecutor | /**
* Register a listener notify executor for the job specified.
* @param jobName The job's name.
*/
public void registerJobNotifyExecutor(final String jobName) {
if (!listenerNotifyExecutors.containsKey(jobName)) {
synchronized (this) {
if (!listenerNotifyExecutors.containsKey(jobName)) {
... | 3.68 |
flink_StreamExecutionEnvironment_isChangelogStateBackendEnabled | /**
* Gets the enable status of change log for state backend.
*
* @return a {@link TernaryBoolean} for the enable status of change log for state backend. Could
* be {@link TernaryBoolean#UNDEFINED} if user never specify this by calling {@link
* #enableChangelogStateBackend(boolean)}.
* @see #enableChangel... | 3.68 |
flink_CatalogManager_dropTable | /**
* Drops a table in a given fully qualified path.
*
* @param objectIdentifier The fully qualified path of the table to drop.
* @param ignoreIfNotExists If false exception will be thrown if the table to drop does not
* exist.
*/
public void dropTable(ObjectIdentifier objectIdentifier, boolean ignoreIfNotExi... | 3.68 |
cron-utils_FieldParser_stringToInt | /**
* Maps string expression to integer. If no mapping is found, will try to parse String as Integer
*
* @param exp - expression to be mapped
* @return integer value for string expression
*/
@VisibleForTesting
protected int stringToInt(final String exp) {
final Integer value = fieldConstraints.getStringMapping... | 3.68 |
hbase_EnvironmentEdgeManager_currentTime | /**
* Defers to the delegate and calls the {@link EnvironmentEdge#currentTime()} method.
* @return current time in millis according to the delegate.
*/
public static long currentTime() {
return getDelegate().currentTime();
} | 3.68 |
hudi_WriteMetadataEvent_isReady | /**
* Returns whether the event is ready to commit.
*/
public boolean isReady(String currentInstant) {
return lastBatch && this.instantTime.equals(currentInstant);
} | 3.68 |
flink_Signature_of | /** Creates an immutable instance of {@link Signature}. */
public static Signature of(List<Argument> arguments) {
return new Signature(arguments);
} | 3.68 |
flink_JobMaster_onStop | /** Suspend the job and shutdown all other services including rpc. */
@Override
public CompletableFuture<Void> onStop() {
log.info(
"Stopping the JobMaster for job '{}' ({}).",
jobGraph.getName(),
jobGraph.getJobID());
// make sure there is a graceful exit
return stopJob... | 3.68 |
hadoop_BCFile_getDataBlock | /**
* Stream access to a Data Block.
*
* @param blockIndex
* 0-based data block index.
* @return BlockReader input stream for reading the data block.
* @throws IOException
*/
public BlockReader getDataBlock(int blockIndex) throws IOException {
if (blockIndex < 0 || blockIndex >= getBlockCount()) {
... | 3.68 |
hadoop_WriteOperationHelper_close | /**
* Deactivate the audit span.
*/
@Override
public void close() throws IOException {
deactivateAuditSpan();
} | 3.68 |
hbase_RegionServerSpaceQuotaManager_getRegionSizeStore | /**
* Returns the {@link RegionSizeStore} tracking filesystem utilization by each region.
* @return A {@link RegionSizeStore} implementation.
*/
public RegionSizeStore getRegionSizeStore() {
return regionSizeStore;
} | 3.68 |
pulsar_DataBlockHeaderImpl_toStream | /**
* Get the content of the data block header as InputStream.
* Read out in format:
* [ magic_word -- int ][ block_len -- int ][ first_entry_id -- long] [padding zeros]
*/
@Override
public InputStream toStream() {
ByteBuf out = PulsarByteBufAllocator.DEFAULT.buffer(HEADER_MAX_SIZE, HEADER_MAX_SIZE);
out... | 3.68 |
flink_PageSizeUtil_getSystemPageSizeOrConservativeMultiple | /**
* Tries to get the system page size. If the page size cannot be determined, this returns the
* {@link #CONSERVATIVE_PAGE_SIZE_MULTIPLE}.
*/
public static int getSystemPageSizeOrConservativeMultiple() {
final int pageSize = getSystemPageSize();
return pageSize == PAGE_SIZE_UNKNOWN ? CONSERVATIVE_PAGE_SIZE... | 3.68 |
hbase_SnapshotScannerHDFSAclController_filterUsersToRemoveNsAccessAcl | /**
* Remove table user access HDFS acl from namespace directory if the user has no permissions of
* global, ns of the table or other tables of the ns, eg: Bob has 'ns1:t1' read permission, when
* delete 'ns1:t1', if Bob has global read permission, '@ns1' read permission or
* 'ns1:other_tables' read permission, the... | 3.68 |
streampipes_SupportedFormats_jsonFormat | /**
* Defines that a pipeline element (data processor or data sink) supports processing messaging arriving in JSON format
*
* @return The resulting {@link org.apache.streampipes.model.grounding.TransportFormat}.
*/
public static TransportFormat jsonFormat() {
return new TransportFormat(MessageFormat.JSON);
} | 3.68 |
querydsl_SQLExpressions_sum | /**
* Start a window function expression
*
* @param expr expression
* @return sum(expr)
*/
public static <T extends Number> WindowOver<T> sum(Expression<T> expr) {
return new WindowOver<T>(expr.getType(), Ops.AggOps.SUM_AGG, expr);
} | 3.68 |
hadoop_WriteOperationHelper_abortMultipartUpload | /**
* Abort a multipart commit operation.
* @param upload upload to abort.
* @throws IOException on problems.
*/
@Retries.RetryTranslated
public void abortMultipartUpload(MultipartUpload upload)
throws IOException {
invoker.retry("Aborting multipart commit", upload.key(), true,
withinAuditSpan(getAuditS... | 3.68 |
hadoop_SaslInputStream_read | /**
* Reads up to <code>len</code> bytes of data from this input stream into an
* array of bytes. This method blocks until some input is available. If the
* first argument is <code>null,</code> up to <code>len</code> bytes are read
* and discarded.
*
* @param b
* the buffer into which the data is read.... | 3.68 |
pulsar_SecretsProviderConfigurator_doAdmissionChecks | /**
* Do config checks to see whether the secrets provided are conforming.
*/
default void doAdmissionChecks(AppsV1Api appsV1Api, CoreV1Api coreV1Api, String jobNamespace, String jobName,
Function.FunctionDetails functionDetails) {
} | 3.68 |
framework_MultiSelectionModelConnector_updateSelectAllCheckBox | /**
* Called whenever there has been a state update for select all checkbox
* visibility or all have been selected or deselected.
*/
protected void updateSelectAllCheckBox() {
final boolean selectAllCheckBoxVisible = getState().selectAllCheckBoxVisible;
if (selectAllCheckBoxVisible && selectAllHandler == nul... | 3.68 |
dubbo_HeaderExchangeServer_calculateLeastDuration | /**
* Each interval cannot be less than 1000ms.
*/
private long calculateLeastDuration(int time) {
if (time / HEARTBEAT_CHECK_TICK <= 0) {
return LEAST_HEARTBEAT_DURATION;
} else {
return time / HEARTBEAT_CHECK_TICK;
}
} | 3.68 |
hadoop_HAServiceTarget_addFencingParameters | /**
* Hook to allow subclasses to add any parameters they would like to
* expose to fencing implementations/scripts. Fencing methods are free
* to use this map as they see fit -- notably, the shell script
* implementation takes each entry, prepends 'target_', substitutes
* '_' for '.', and adds it to the environme... | 3.68 |
hudi_HoodieFlinkTable_getMetadataWriter | /**
* Fetch instance of {@link HoodieTableMetadataWriter}.
*
* @return instance of {@link HoodieTableMetadataWriter}
*/
@Override
protected Option<HoodieTableMetadataWriter> getMetadataWriter(
String triggeringInstantTimestamp,
HoodieFailedWritesCleaningPolicy failedWritesCleaningPolicy) {
if (config.isMe... | 3.68 |
hadoop_User_setLastLogin | /**
* Set the last login time.
* @param time the number of milliseconds since the beginning of time
*/
public void setLastLogin(long time) {
lastLogin = time;
} | 3.68 |
dubbo_ServiceBean_setApplicationEventPublisher | /**
* @param applicationEventPublisher
* @since 2.6.5
*/
@Override
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
this.applicationEventPublisher = applicationEventPublisher;
} | 3.68 |
flink_OperationExecutorFactory_convertNamePattern | /**
* Covert SQL 'like' pattern to a Java regular expression. Underscores (_) are converted to '.'
* and percent signs (%) are converted to '.*'. Note: escape characters are removed.
*
* @param pattern the SQL pattern to convert.
* @return the equivalent Java regular expression of the pattern.
*/
private static P... | 3.68 |
hadoop_CachingAuthorizer_get | /**
* @param key - Cache key
* @return null on cache-miss. true/false on cache-hit
*/
public V get(K key) {
if (!isEnabled) {
return null;
}
V result = cache.getIfPresent(key);
if (result == null) {
LOG.debug("{}: CACHE MISS: {}", label, key.toString());
}
else {
LOG.debug("{}: CACHE HIT: {}... | 3.68 |
dubbo_DynamicConfiguration_removeConfig | /**
* @param key the key to represent a configuration
* @param group the group where the key belongs to
* @return <code>true</code> if success, or <code>false</code>
* @since 2.7.8
*/
default boolean removeConfig(String key, String group) {
return true;
} | 3.68 |
hmily_HmilyLockManager_tryAcquireLocks | /**
* Try acquire locks.
*
* @param hmilyLocks hmily locks
*/
//TODO add timeout mechanism in future
public void tryAcquireLocks(final Collection<HmilyLock> hmilyLocks) {
Set<String> existedHmilyLockIds = new HashSet<>();
for (HmilyLock each : hmilyLocks) {
Optional<HmilyLock> hmilyLock = HmilyLockC... | 3.68 |
flink_TernaryBoolean_getAsBoolean | /** Gets this ternary boolean as a boxed boolean. The value 'undefined' results in 'null. */
@Nullable
public Boolean getAsBoolean() {
return this == UNDEFINED ? null : (this == TRUE ? Boolean.TRUE : Boolean.FALSE);
} | 3.68 |
framework_DropEvent_getDragData | /**
* Gets the server side drag data. This data can be set during the drag
* start event on the server side and can be used to transfer data between
* drag source and drop target when they are in the same UI.
*
* @return Optional server side drag data if set and the drag source and the
* drop target are i... | 3.68 |
hadoop_HsController_nmlogs | /**
* Render the nm logs page.
*/
public void nmlogs() {
render(AggregatedLogsPage.class);
} | 3.68 |
hadoop_Server_get | /**
* Returns the {@link Service} associated to the specified interface.
*
* @param serviceKlass service interface.
*
* @return the service implementation.
*/
@SuppressWarnings("unchecked")
public <T> T get(Class<T> serviceKlass) {
ensureOperational();
Check.notNull(serviceKlass, "serviceKlass");
return (T)... | 3.68 |
flink_HiveParserBaseSemanticAnalyzer_getUnescapedName | /**
* Get dequoted name from a table/column node.
*
* @param tableOrColumnNode the table or column node
* @return for table node, return the table that users specific like catalog.db.tab, db.tab or
* tab. For column node column, return col.
*/
public static String getUnescapedName(HiveParserASTNode tableOrCol... | 3.68 |
framework_AbsoluteLayout_setTopValue | /**
* Sets the value of the 'top' attribute; distance from the top of the
* component to the top edge of the layout.
*
* @param topValue
* The value of the 'left' attribute
*/
public void setTopValue(Float topValue) {
this.topValue = topValue;
markAsDirty();
} | 3.68 |
dubbo_DefaultFilterChainBuilder_getModuleModelsFromUrl | /**
* When the application-level service registration and discovery strategy is adopted, the URL will be of type InstanceAddressURL,
* and InstanceAddressURL belongs to the application layer and holds the ApplicationModel,
* but the filter is at the module layer and holds the ModuleModel,
* so it needs to be based ... | 3.68 |
hbase_TableSplit_getScanAsString | /**
* Returns a scan string
* @return scan as string. Should be noted that this is not same as getScan().toString() because
* Scan object will have the default values when empty scan string is deserialized. Thus,
* getScan().toString() can never be empty
*/
@InterfaceAudience.Private
public String ... | 3.68 |
framework_WeekGrid_getCalendar | /**
* @return the calendar
*/
public VCalendar getCalendar() {
return calendar;
} | 3.68 |
flink_BinarySegmentUtils_setInt | /**
* set int from segments.
*
* @param segments target segments.
* @param offset value offset.
*/
public static void setInt(MemorySegment[] segments, int offset, int value) {
if (inFirstSegment(segments, offset, 4)) {
segments[0].putInt(offset, value);
} else {
setIntMultiSegments(segments... | 3.68 |
framework_MessageSender_setPushEnabled | /**
* Sets the status for the push connection.
*
* @param enabled
* <code>true</code> to enable the push connection;
* <code>false</code> to disable the push connection.
*/
public void setPushEnabled(boolean enabled) {
final PushConfigurationState pushState = connection.getUIConnector()
... | 3.68 |
framework_Table_getAddedRowCount | /**
* Subclass and override this to enable partial row additions, bypassing the
* normal caching mechanism. This is useful for e.g. TreeTable, where
* expanding a node should only fetch and add the items inside of that node.
*
* @return the number of rows to be added, starting at the index returned by
* {... | 3.68 |
framework_SortOrderBuilder_append | /**
* Append a sort order to {@code sortOrders}.
*
* @param sortOrder
* the sort order to append
* @return this
*/
private final SortOrderBuilder<T, V> append(T sortOrder) {
sortOrders.add(sortOrder);
return this;
} | 3.68 |
hadoop_DiskBalancerWorkItem_getErrMsg | /**
* Gets the error message.
*/
public String getErrMsg() {
return errMsg;
} | 3.68 |
hbase_AbstractFSWAL_getSyncedTxid | /**
* This method is to adapt {@link FSHLog} and {@link AsyncFSWAL}. For {@link AsyncFSWAL}, we use
* {@link AbstractFSWAL#highestProcessedAppendTxid} at the point we calling
* {@link AsyncFSWAL#doWriterSync} method as successful syncedTxid. For {@link FSHLog}, because we
* use multi-thread {@code SyncRunner}s, we ... | 3.68 |
AreaShop_FeatureManager_getRegionFeature | /**
* Instanciate a feature for a certain region.
* @param region The region to create a feature for
* @param featureClazz The class of the feature to create
* @return The feature class
*/
public RegionFeature getRegionFeature(GeneralRegion region, Class<? extends RegionFeature> featureClazz) {
try {
retu... | 3.68 |
flink_TableSinkBase_getFieldTypes | /** Returns the field types of the table to emit. */
@Override
public TypeInformation<?>[] getFieldTypes() {
if (fieldTypes.isPresent()) {
return fieldTypes.get();
} else {
throw new IllegalStateException(
"Table sink must be configured to retrieve field types.");
}
} | 3.68 |
flink_RpcSerializedValue_valueOf | /**
* Construct a serialized value to transfer on wire.
*
* @param value nullable value
* @return serialized value to transfer on wire
* @throws IOException exception during value serialization
*/
public static RpcSerializedValue valueOf(@Nullable Object value) throws IOException {
byte[] serializedData = val... | 3.68 |
morf_HumanReadableStatementHelper_generateFieldSymbolStrings | /**
* Generates a string describing a collection of fields.
*
* @param fields the fields to describe.
* @return a string with a comma separated list of field names.
*/
private static String generateFieldSymbolStrings(final Collection<AliasedField> fields) {
final StringBuilder sb = new StringBuilder();
int cou... | 3.68 |
flink_JoinedStreams_allowedLateness | /**
* Sets the time by which elements are allowed to be late.
*
* @see WindowedStream#allowedLateness(Time)
*/
@PublicEvolving
public WithWindow<T1, T2, KEY, W> allowedLateness(Time newLateness) {
return new WithWindow<>(
input1,
input2,
keySelector1,
keySelector2... | 3.68 |
flink_CheckpointStatsSnapshot_getLatestRestoredCheckpoint | /**
* Returns the latest restored checkpoint.
*
* @return Latest restored checkpoint or <code>null</code>.
*/
@Nullable
public RestoredCheckpointStats getLatestRestoredCheckpoint() {
return latestRestoredCheckpoint;
} | 3.68 |
hbase_HRegionServer_dumpRowLocks | /**
* Used by {@link RSDumpServlet} to generate debugging information.
*/
public void dumpRowLocks(final PrintWriter out) {
StringBuilder sb = new StringBuilder();
for (HRegion region : getRegions()) {
if (region.getLockedRows().size() > 0) {
for (HRegion.RowLockContext rowLockContext : region.getLocked... | 3.68 |
hudi_DirectWriteMarkers_deleteMarkerDir | /**
* Deletes Marker directory corresponding to an instant.
*
* @param context HoodieEngineContext.
* @param parallelism parallelism for deletion.
*/
public boolean deleteMarkerDir(HoodieEngineContext context, int parallelism) {
return FSUtils.deleteDir(context, fs, markerDirPath, parallelism);
} | 3.68 |
hudi_PostgresDebeziumSource_processDataset | /**
* Debezium Kafka Payload has a nested structure (see https://debezium.io/documentation/reference/1.4/connectors/postgresql.html#postgresql-create-events).
* This function flattens this nested structure for the Postgres data, and also extracts a subset of Debezium metadata fields.
*
* @param rowDataset Dataset c... | 3.68 |
framework_VaadinSession_addUIProvider | /**
* Adds a UI provider to this session.
*
* @param uiProvider
* the UI provider that should be added
*/
public void addUIProvider(UIProvider uiProvider) {
assert hasLock();
uiProviders.addFirst(uiProvider);
} | 3.68 |
hadoop_OBSFileSystem_getMultiDeleteThreshold | /**
* Return the minimum number of objects in one multi-object delete call.
*
* @return the minimum number of objects in one multi-object delete call
*/
int getMultiDeleteThreshold() {
return multiDeleteThreshold;
} | 3.68 |
hadoop_BlockRecoveryCommand_getRecoveringBlocks | /**
* Return the list of recovering blocks.
*/
public Collection<RecoveringBlock> getRecoveringBlocks() {
return recoveringBlocks;
} | 3.68 |
hudi_SerDeHelper_inheritSchemas | /**
* Add the new schema to the historical schemas.
* use string operations to reduce overhead.
*
* @param newSchema a new internalSchema
* @param oldSchemas historical schemas string.
* @return a string.
*/
public static String inheritSchemas(InternalSchema newSchema, String oldSchemas) {
if (newSchema == nul... | 3.68 |
hbase_BlockingRpcClient_createConnection | /**
* Creates a connection. Can be overridden by a subclass for testing.
* @param remoteId - the ConnectionId to use for the connection creation.
*/
@Override
protected BlockingRpcConnection createConnection(ConnectionId remoteId) throws IOException {
return new BlockingRpcConnection(this, remoteId);
} | 3.68 |
flink_HiveParserQBParseInfo_setPartialScanAnalyzeCommand | /** @param isPartialScanAnalyzeCommand the isPartialScanAnalyzeCommand to set */
public void setPartialScanAnalyzeCommand(boolean isPartialScanAnalyzeCommand) {
this.isPartialScanAnalyzeCommand = isPartialScanAnalyzeCommand;
} | 3.68 |
hudi_HoodieTableMetadataUtil_convertMetadataToColumnStatsRecords | /**
* Convert clean metadata to column stats index records.
*
* @param cleanMetadata - Clean action metadata
* @param engineContext - Engine context
* @param recordsGenerationParams - Parameters for bloom filter record generation
* @return List of column stats index records for the clean metad... | 3.68 |
morf_ViewChanges_getViewsToDrop | /**
* @return sorted list of the views to drop in the order they should be dropped.
*/
public List<View> getViewsToDrop() {
// Sort the list in reverse order of creation for dropping
List<String> sortedViewNamesToDrop = newArrayList(dropSet);
Collections.sort(sortedViewNamesToDrop, Ordering.explicit(viewCreatio... | 3.68 |
hbase_HBaseTestingUtility_expireMasterSession | /**
* Expire the Master's session
*/
public void expireMasterSession() throws Exception {
HMaster master = getMiniHBaseCluster().getMaster();
expireSession(master.getZooKeeper(), false);
} | 3.68 |
morf_UpgradeStatusTableServiceImpl_updateTableScript | /**
* @see org.alfasoftware.morf.upgrade.UpgradeStatusTableService#updateTableScript(org.alfasoftware.morf.upgrade.UpgradeStatus,
* org.alfasoftware.morf.upgrade.UpgradeStatus)
*/
@Override
public List<String> updateTableScript(UpgradeStatus fromStatus, UpgradeStatus toStatus) {
ImmutableList.Builder<String> ... | 3.68 |
hadoop_S3ARemoteInputStream_seek | /**
* Moves the current read position so that the next read will occur at {@code pos}.
*
* @param pos the absolute position to seek to.
* @throws IOException if there an error during this operation.
*
* @throws IllegalArgumentException if pos is outside of the range [0, file size].
*/
public void seek(long pos) ... | 3.68 |
cron-utils_CronDefinitionBuilder_withMinutes | /**
* Adds definition for minutes field.
*
* @return new FieldDefinitionBuilder instance
*/
public FieldDefinitionBuilder withMinutes() {
return new FieldDefinitionBuilder(this, CronFieldName.MINUTE);
} | 3.68 |
hibernate-validator_AnnotationFactory_run | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/
@IgnoreForbiddenApisErrors(reason = "SecurityManager is deprecated in... | 3.68 |
framework_ComplexRenderer_onActivate | /**
* Called when the cell is activated by pressing <code>enter</code>, double
* clicking or performing a double tap on the cell.
*
* @param cell
* the activated cell
* @return <code>true</code> if event was handled and should not be
* interpreted as a generic gesture by Grid.
*/
public boole... | 3.68 |
graphhopper_NodeBasedNodeContractor_insertShortcuts | /**
* Calls the shortcut handler for all edges and shortcuts adjacent to the given node. After this method is called
* these edges and shortcuts will be removed from the prepare graph, so this method offers the last chance to deal
* with them.
*/
private void insertShortcuts(int node) {
shortcuts.clear();
i... | 3.68 |
hudi_AvroInternalSchemaConverter_convert | /** Convert an avro schema into internalSchema. */
public static InternalSchema convert(Schema schema) {
return new InternalSchema((Types.RecordType) convertToField(schema));
} | 3.68 |
hadoop_ECBlock_setErased | /**
* Set true if the block is missing.
* @param isErased is erased or not
*/
public void setErased(boolean isErased) {
this.isErased = isErased;
} | 3.68 |
hadoop_ContainerServiceRecordProcessor_init | /**
* Initializes the descriptor parameters.
* @param serviceRecord the service record.
*/
@Override protected void init(ServiceRecord serviceRecord) {
super.init(serviceRecord);
try {
this.setTarget(getIpv6Address(getTarget()));
} catch (UnknownHostException e) {
throw new IllegalStateException(e);
... | 3.68 |
flink_HiveParserTypeInfoUtils_implicitConvertible | /** Test if it's implicitly convertible for data comparison. */
public static boolean implicitConvertible(
PrimitiveObjectInspector.PrimitiveCategory from,
PrimitiveObjectInspector.PrimitiveCategory to) {
if (from == to) {
return true;
}
PrimitiveObjectInspectorUtils.PrimitiveGroupi... | 3.68 |
hadoop_PathLocation_prioritizeDestination | /**
* Return a path location with the prioritized destinations based on
* the current path location.
*
* @param base The base path location we'd like to prioritize on.
* @param firstNsId Identifier of the namespace to place first.
* @return path location with the prioritized destinations.
*/
public static PathLo... | 3.68 |
flink_ExecutionEnvironment_registerDataSink | /**
* Adds the given sink to this environment. Only sinks that have been added will be executed
* once the {@link #execute()} or {@link #execute(String)} method is called.
*
* @param sink The sink to add for execution.
*/
@Internal
void registerDataSink(DataSink<?> sink) {
this.sinks.add(sink);
} | 3.68 |
framework_VTabsheetBase_setEnabled | /** For internal use only. May be removed or replaced in the future. */
@Override
public void setEnabled(boolean enabled) {
disabled = !enabled;
} | 3.68 |
Activiti_DelegateExpressionTransactionDependentTaskListener_getExpressionText | /**
* returns the expression text for this task listener. Comes in handy if you want to check which listeners you already have.
*/
public String getExpressionText() {
return expression.getExpressionText();
} | 3.68 |
hadoop_Preconditions_getDefaultCheckArgumentMSG | /* @VisibleForTesting */
static String getDefaultCheckArgumentMSG() {
return CHECK_ARGUMENT_EX_MESSAGE;
} | 3.68 |
hbase_Client_get | /**
* Send a GET request
* @param c the cluster definition
* @param path the path or URI
* @param headers the HTTP headers to include in the request
* @return a Response object with response detail
*/
public Response get(Cluster c, String path, Header[] headers) throws IOException {
if (httpGet != null... | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.