name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hibernate-validator_AnnotationTypeMemberCheck_getComponentTypeOfArrayReturnType | /**
* Returns the component type of the array-typed return value of the given method.
*
* @param method The method of interest.
*
* @return The component type of the array-typed return value of the given method or null,
* if the given method has no array-typed return value.
*/
private DeclaredType getComponentTy... | 3.68 |
flink_AvroInputFormat_setUnsplittable | /** If set, the InputFormat will only read entire files. */
public void setUnsplittable(boolean unsplittable) {
this.unsplittable = unsplittable;
} | 3.68 |
framework_VTree_getRootNodes | /**
* Returns a list of all root nodes in the Tree in the order they appear in
* the tree.
*
* @return A list of all root {@link TreeNode}s.
*/
protected List<TreeNode> getRootNodes() {
List<TreeNode> rootNodes = new ArrayList<TreeNode>();
for (int i = 0; i < body.getWidgetCount(); i++) {
rootNodes... | 3.68 |
hbase_HFileBlockIndex_readRootIndex | /**
* Read in the root-level index from the given input stream. Must match what was written into
* the root level by {@link BlockIndexWriter#writeIndexBlocks(FSDataOutputStream)} at the offset
* that function returned.
* @param blk the HFile block
* @param numEntries the number of root-level index entries
... | 3.68 |
flink_QueryableStateUtils_createKvStateClientProxy | /**
* Initializes the {@link KvStateClientProxy client proxy} responsible for receiving requests
* from the external (to the cluster) client and forwarding them internally.
*
* @param address the address to bind to.
* @param ports the range of ports the proxy will attempt to listen to (see {@link
* org.apache... | 3.68 |
hadoop_DockerCommandExecutor_getContainerStatus | /**
* Get the status of the docker container. This runs a docker inspect to
* get the status. If the container no longer exists, docker inspect throws
* an exception and the nonexistent status is returned.
*
* @param containerId the id of the container.
* @param privilegedOperationExecutor the pri... | 3.68 |
flink_DagConnection_getInterestingProperties | /**
* Gets the interesting properties object for this pact connection. If the interesting
* properties for this connections have not yet been set, this method returns null.
*
* @return The collection of all interesting properties, or null, if they have not yet been set.
*/
public InterestingProperties getInteresti... | 3.68 |
flink_SharedBufferAccessor_lockEvent | /**
* Increases the reference counter for the given event so that it is not accidentally removed.
*
* @param eventId id of the entry
*/
private void lockEvent(EventId eventId) {
Lockable<V> eventWrapper = sharedBuffer.getEvent(eventId);
checkState(eventWrapper != null, "Referring to non existent event with ... | 3.68 |
hadoop_UserDefinedValueAggregatorDescriptor_configure | /**
* Do nothing.
*/
public void configure(Configuration conf) {
} | 3.68 |
morf_SchemaResourceImpl_create | /**
* Create an implementation of {@link SchemaResource}.
*
* @param dataSource The data source to supply a Connection.
* @param connectionResources The {@link ConnectionResources} details.
* @return A {@link SchemaResource}.
*/
public static SchemaResource create(DataSource dataSource, ConnectionResources connec... | 3.68 |
framework_PortletStateAwareRequestHandler_handleRequest | /*
* (non-Javadoc)
*
* @see com.vaadin.server.RequestHandler#handleRequest(com.vaadin.server.
* VaadinSession, com.vaadin.server.VaadinRequest,
* com.vaadin.server.VaadinResponse)
*/
@Override
public boolean handleRequest(VaadinSession session, VaadinRequest request,
VaadinResponse response) throws IOExce... | 3.68 |
pulsar_LinuxInfoUtils_isPhysicalNic | /**
* Determine whether the VM has physical nic.
* @param nicPath Nic path
* @return whether The VM has physical nic.
*/
private static boolean isPhysicalNic(Path nicPath) {
try {
if (nicPath.toString().contains("/virtual/")) {
return false;
}
// Check the type to make sure i... | 3.68 |
flink_CatalogDatabaseImpl_getDescription | /**
* Get a brief description of the database.
*
* @return an optional short description of the database
*/
public Optional<String> getDescription() {
return Optional.ofNullable(comment);
} | 3.68 |
framework_Escalator_setRowIndex | /**
* Sets a new row index for this spacer. Also updates the bookeeping
* at {@link SpacerContainer#rowIndexToSpacer}.
*/
@SuppressWarnings("boxing")
public void setRowIndex(int rowIndex) {
SpacerImpl spacer = rowIndexToSpacer.remove(this.rowIndex);
assert this == spacer : "trying to move an unexpected space... | 3.68 |
hbase_RegionLocations_removeByServer | /**
* Returns a new RegionLocations with the locations removed (set to null) which have the
* destination server as given.
* @param serverName the serverName to remove locations of
* @return an RegionLocations object with removed locations or the same object if nothing is
* removed
*/
public RegionLocatio... | 3.68 |
flink_FileWriterBucket_restore | /**
* Restores a {@code Bucket} from the state included in the provided {@link
* FileWriterBucketState}.
*
* @param bucketWriter the {@link BucketWriter} used to write part files in the bucket.
* @param bucketState the initial state of the restored bucket.
* @param <IN> the type of input elements to the sink.
* ... | 3.68 |
hbase_ColumnValueFilter_getCompareOperator | /** Returns operator */
public CompareOperator getCompareOperator() {
return op;
} | 3.68 |
framework_ConnectorHierarchyChangeEvent_setOldChildren | /**
* Sets the collection of the old children for the connector.
*
* @param oldChildren
* The old child connectors. Must not be null.
*/
public void setOldChildren(List<ComponentConnector> oldChildren) {
this.oldChildren = oldChildren;
} | 3.68 |
shardingsphere-elasticjob_ElasticJobExecutorService_createExecutorService | /**
* Create executor service.
*
* @return executor service
*/
public ExecutorService createExecutorService() {
return MoreExecutors.listeningDecorator(MoreExecutors.getExitingExecutorService(threadPoolExecutor));
} | 3.68 |
framework_AbstractSelect_containerItemSetChange | /**
* Lets the listener know a Containers Item set has changed.
*
* @see Container.ItemSetChangeListener#containerItemSetChange(Container.ItemSetChangeEvent)
*/
@Override
public void containerItemSetChange(Container.ItemSetChangeEvent event) {
// Clears the item id mapping table
itemIdMapper.removeAll();
... | 3.68 |
hbase_CellComparatorImpl_compareColumns | /**
* Compares the family and qualifier part of the cell
* @return 0 if both cells are equal, 1 if left cell is bigger than right, -1 otherwise
*/
public final int compareColumns(final Cell left, final Cell right) {
int diff = compareFamilies(left, right);
if (diff != 0) {
return diff;
}
return compareQu... | 3.68 |
flink_ConfluentRegistryAvroSerializationSchema_forSpecific | /**
* Creates {@link AvroSerializationSchema} that produces byte arrays that were generated from
* Avro schema and writes the writer schema to Confluent Schema Registry.
*
* @param tClass the type to be serialized
* @param subject subject of schema registry to produce
* @param schemaRegistryUrl URL of schema regi... | 3.68 |
pulsar_NonPersistentSubscription_disconnect | /**
* Disconnect all consumers attached to the dispatcher and close this subscription.
*
* @return CompletableFuture indicating the completion of disconnect operation
*/
@Override
public synchronized CompletableFuture<Void> disconnect() {
CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();
... | 3.68 |
framework_InMemoryDataProvider_filteringByEquals | /**
* Wraps this data provider to create a new data provider that is filtered
* by testing whether the value of a property is equals to the filter value
* provided in the query. Equality is tested using
* {@link Objects#equals(Object, Object)}.
*
* @param valueProvider
* a value provider that gets the... | 3.68 |
flink_AbstractTopNFunction_getDefaultTopNSize | /**
* Gets default topN size.
*
* @return default topN size
*/
protected long getDefaultTopNSize() {
return isConstantRankEnd ? rankEnd : DEFAULT_TOPN_SIZE;
} | 3.68 |
hadoop_AbstractS3ACommitter_maybeIgnore | /**
* Log or rethrow a caught IOException.
* @param suppress should raised IOEs be suppressed?
* @param action action (for logging when the IOE is suppressed.
* @param ex exception
* @throws IOException if suppress == false
*/
protected void maybeIgnore(
boolean suppress,
String action,
IOException e... | 3.68 |
graphhopper_WayToEdgeConverter_convertForViaWays | /**
* Finds the edge IDs associated with the given OSM ways that are adjacent to each other. For example for given
* from-, via- and to-ways there can be multiple edges associated with each (because each way can be split into
* multiple edges). We then need to find the from-edge that is connected with one of the via... | 3.68 |
streampipes_AbstractMigrationManager_performMigration | /**
* Performs the actual migration of a pipeline element.
* This includes the communication with the extensions service which runs the migration.
*
* @param pipelineElement pipeline element to be migrated
* @param migrationConfig config of the migration to be performed
* @param url url of the migrati... | 3.68 |
flink_GenericDataSinkBase_getInput | /**
* Returns this operator's input operator.
*
* @return This operator's input.
*/
public Operator<IN> getInput() {
return this.input;
} | 3.68 |
hmily_SelectStatementAssembler_assembleHmilySelectStatement | /**
* Assemble Hmily select statement.
*
* @param selectStatement select statement
* @param hmilySelectStatement hmily select statement
* @return hmily select statement
*/
public static HmilySelectStatement assembleHmilySelectStatement(final SelectStatement selectStatement, final HmilySelectStatement hmilySe... | 3.68 |
AreaShop_BukkitHandler1_13_setSignFacing | // Uses BlockData, WallSign and Sign which don't exist in 1.12-
@Override
public boolean setSignFacing(Block block, BlockFace facing) {
if (block == null || facing == null) {
return false;
}
BlockState blockState = block.getState();
if (blockState == null) {
return false;
}
BlockData blockData = blockState.... | 3.68 |
flink_UnsortedGrouping_reduceGroup | /**
* Applies a GroupReduce transformation on a grouped {@link DataSet}.
*
* <p>The transformation calls a {@link
* org.apache.flink.api.common.functions.RichGroupReduceFunction} for each group of the DataSet.
* A GroupReduceFunction can iterate over all elements of a group and emit any number of output
* element... | 3.68 |
pulsar_UniformLoadShedder_findBundlesForUnloading | /**
* Attempt to shed some bundles off every broker which is overloaded.
*
* @param loadData
* The load data to used to make the unloading decision.
* @param conf
* The service configuration.
* @return A map from bundles to unload to the brokers on which they are loaded.
*/
@Override
publi... | 3.68 |
hadoop_AzureFileSystemInstrumentation_getBlockUploadLatency | /**
* Get the current rolling average of the upload latency.
* @return rolling average of upload latency in milliseconds.
*/
public long getBlockUploadLatency() {
return currentBlockUploadLatency.getCurrentAverage();
} | 3.68 |
hmily_OriginTrackedPropertiesLoader_isEndOfFile | /**
* Is end of file boolean.
*
* @return the boolean
*/
public boolean isEndOfFile() {
return this.character == -1;
} | 3.68 |
hudi_BaseHoodieWriteClient_dropIndex | /**
* Drops the index and removes the metadata partitions.
*
* @param partitionTypes - list of {@link MetadataPartitionType} which needs to be indexed
*/
public void dropIndex(List<MetadataPartitionType> partitionTypes) {
HoodieTable table = createTable(config, hadoopConf);
String dropInstant = createNewInstant... | 3.68 |
shardingsphere-elasticjob_JobNodeStorage_getRegistryCenterTime | /**
* Get registry center time.
*
* @return registry center time
*/
public long getRegistryCenterTime() {
return regCenter.getRegistryCenterTime(jobNodePath.getFullPath("systemTime/current"));
} | 3.68 |
morf_InsertStatementBuilder_getFields | /**
* Gets the list of fields to insert
*
* @return the fields being inserted into
*/
List<AliasedField> getFields() {
return fields;
} | 3.68 |
flink_ExecutionEnvironment_initializeContextEnvironment | /**
* Sets a context environment factory, that creates the context environment for running programs
* with pre-configured environments. Examples are running programs from the command line.
*
* <p>When the context environment factory is set, no other environments can be explicitly used.
*
* @param ctx The context ... | 3.68 |
AreaShop_GeneralRegion_setSetting | /**
* Set a setting in the file of the region itself.
* @param path The path to set
* @param value The value to set it to, null to remove the setting
*/
public void setSetting(String path, Object value) {
config.set(path, value);
this.saveRequired();
} | 3.68 |
hadoop_VisualizeStateMachine_getGraphFromClasses | /**
* get Graph From Classes.
*
* @param graphName graphName.
* @param classes list of classes which have static field
* stateMachineFactory of type StateMachineFactory
* @return graph represent this StateMachine
* @throws Exception exception occurs.
*/
public static Graph getGraphFromClasses(Str... | 3.68 |
hadoop_SerialJobFactory_start | /**
* Start the reader thread, wait for latch if necessary.
*/
@Override
public void start() {
LOG.info(" Starting Serial submission ");
this.rThread.start();
} | 3.68 |
hbase_ShadedAccessControlUtil_toPermissionActions | /**
* Converts a list of Permission.Action shaded proto to an array of client Permission.Action
* objects.
* @param protoActions the list of shaded protobuf Actions
* @return the converted array of Actions
*/
public static Permission.Action[]
toPermissionActions(List<AccessControlProtos.Permission.Action> protoA... | 3.68 |
hbase_MetaTableAccessor_updateRegionState | /**
* Update state column in hbase:meta.
*/
public static void updateRegionState(Connection connection, RegionInfo ri,
RegionState.State state) throws IOException {
final Put put = makePutFromRegionInfo(ri);
addRegionStateToPut(put, ri.getReplicaId(), state);
putsToMetaTable(connection, Collections.singletonL... | 3.68 |
hbase_AsyncFSWALProvider_createAsyncWriter | /**
* Public because of AsyncFSWAL. Should be package-private
*/
public static AsyncWriter createAsyncWriter(Configuration conf, FileSystem fs, Path path,
boolean overwritable, long blocksize, EventLoopGroup eventLoopGroup,
Class<? extends Channel> channelClass, StreamSlowMonitor monitor) throws IOException {
/... | 3.68 |
flink_ChangelogKeyedStateBackend_getMaterializedResult | // TODO: this method may change after the ownership PR
private List<KeyedStateHandle> getMaterializedResult(
@Nonnull SnapshotResult<KeyedStateHandle> materializedSnapshot) {
KeyedStateHandle jobManagerOwned = materializedSnapshot.getJobManagerOwnedSnapshot();
return jobManagerOwned == null ? emptyList(... | 3.68 |
flink_ExternalPythonKeyedCoProcessOperator_setCurrentKey | /**
* As the beam state gRPC service will access the KeyedStateBackend in parallel with this
* operator, we must override this method to prevent changing the current key of the
* KeyedStateBackend while the beam service is handling requests.
*/
@Override
public void setCurrentKey(Object key) {
if (inBatchExecut... | 3.68 |
hudi_SparkHoodieHBaseIndex_locationTagFunction | /**
* Function that tags each HoodieRecord with an existing location, if known.
*/
private <R> Function2<Integer, Iterator<HoodieRecord<R>>, Iterator<HoodieRecord<R>>> locationTagFunction(
HoodieTableMetaClient metaClient) {
// `multiGetBatchSize` is intended to be a batch per 100ms. To create a rate limiter t... | 3.68 |
hbase_SplitWALProcedure_getWALNameFromStrPath | /**
* @return Return the WAL filename when given a Path-as-a-string; i.e. return the last path
* component only.
*/
static String getWALNameFromStrPath(String path) {
int slashIndex = path.lastIndexOf('/');
return slashIndex != -1 ? path.substring(slashIndex + 1) : path;
} | 3.68 |
morf_InlineTableUpgrader_addAuditRecord | /**
* @see org.alfasoftware.morf.upgrade.SchemaChangeVisitor#addAuditRecord(java.util.UUID, java.lang.String)
*/
@Override
public void addAuditRecord(UUID uuid, String description) {
AuditRecordHelper.addAuditRecord(this, currentSchema, uuid, description);
} | 3.68 |
morf_SpreadsheetDataSetProducer_findHeaderRow | /**
* Finds the heading row in a given worksheet.
*
* <p>This works by assuming that the table data starts in the row
* immediately following a row containing hyperlinks that is after
* a row that starts with "Parameters to Set Up". E.g.</p>
*
* <pre>
* Parameters to Setup | |
* --------------... | 3.68 |
hadoop_IOStatisticsBinding_emptyStatistics | /**
* Get the shared instance of the immutable empty statistics
* object.
* @return an empty statistics object.
*/
public static IOStatistics emptyStatistics() {
return EmptyIOStatistics.getInstance();
} | 3.68 |
hadoop_Paths_clearTempFolderInfo | /**
* Remove all information held about task attempts.
* @param attemptID attempt ID.
*/
public static void clearTempFolderInfo(final TaskAttemptID attemptID) {
tempFolders.invalidate(attemptID);
} | 3.68 |
flink_ListView_remove | /**
* Removes the given value from the list.
*
* @param value The element to be removed from this list view.
*/
public boolean remove(T value) throws Exception {
return list.remove(value);
} | 3.68 |
zxing_CameraManager_setManualCameraId | /**
* Allows third party apps to specify the camera ID, rather than determine
* it automatically based on available cameras and their orientation.
*
* @param cameraId camera ID of the camera to use. A negative value means "no preference".
*/
public synchronized void setManualCameraId(int cameraId) {
requestedCam... | 3.68 |
rocketmq-connect_TransformChain_close | /**
* close transforms
*
* @throws Exception if this resource cannot be closed
*/
@Override
public void close() throws Exception {
for (Transform transform : transformList) {
transform.stop();
}
} | 3.68 |
hbase_OrderedBytes_isNumericZero | /**
* Return true when the next encoded value in {@code src} uses Numeric encoding and is {@code 0},
* false otherwise.
*/
public static boolean isNumericZero(PositionedByteRange src) {
return ZERO == (-1 == Integer.signum(src.peek()) ? DESCENDING : ASCENDING).apply(src.peek());
} | 3.68 |
hadoop_ReadBufferManager_queueReadAhead | /**
* {@link AbfsInputStream} calls this method to queue read-aheads.
*
* @param stream The {@link AbfsInputStream} for which to do the read-ahead
* @param requestedOffset The offset in the file which shoukd be read
* @param requestedLength The length to read
*/
void queueReadAhead(final AbfsInputStream ... | 3.68 |
framework_VTree_onDetach | /*
* (non-Javadoc)
*
* @see com.google.gwt.user.client.ui.Widget#onDetach()
*/
@Override
protected void onDetach() {
super.onDetach();
client.getContextMenu().ensureHidden(this);
} | 3.68 |
framework_VAbstractCalendarPanel_focusDay | /**
* Sets the focus to given date in the current view. Used when moving in the
* calendar with the keyboard.
*
* @param date
* A Date representing the day of month to be focused. Must be
* one of the days currently visible.
*/
@SuppressWarnings("unchecked")
private void focusDay(Date date)... | 3.68 |
hbase_AuthManager_removeNamespace | /**
* Remove given namespace from AuthManager's namespace cache.
* @param ns namespace
*/
public void removeNamespace(byte[] ns) {
namespaceCache.remove(Bytes.toString(ns));
} | 3.68 |
framework_WebBrowser_isIPad | /**
* Tests if the browser is run on IPad.
*
* @return true if run on IPad false if the user is not using IPad or if no
* information on the browser is present
* @since 7.3.3
*/
public boolean isIPad() {
return browserDetails.isIPad();
} | 3.68 |
Activiti_DelegateHelper_getFlowElement | /**
* Returns the current {@link FlowElement} where the {@link DelegateExecution} is currently at.
*/
public static FlowElement getFlowElement(DelegateExecution execution) {
BpmnModel bpmnModel = getBpmnModel(execution);
FlowElement flowElement = bpmnModel.getFlowElement(execution.getCurrentActivityId());
... | 3.68 |
flink_StateAssignmentOperation_applyRepartitioner | /**
* Repartitions the given operator state using the given {@link OperatorStateRepartitioner} with
* respect to the new parallelism.
*
* @param opStateRepartitioner partitioner to use
* @param chainOpParallelStates state to repartition
* @param oldParallelism parallelism with which the state is currently partiti... | 3.68 |
dubbo_BitList_remove | /**
* If the element to added is appeared in originList,
* directly set its index in rootSet to false. (This may change the order of elements.)
* <p>
* If the element is not contained in originList, try to remove from tailList.
*/
@Override
public boolean remove(Object o) {
int idx = originList.indexOf(o);
... | 3.68 |
open-banking-gateway_DatasafeDataStorage_delete | /**
* Removes encrypted database entry
* @param path Path to the entry
*/
@Override
public void delete(String path) {
throw new IllegalStateException("Not allowed");
} | 3.68 |
hmily_XaState_getState | /**
* Gets state.
*
* @return the state
*/
public Integer getState() {
return state;
} | 3.68 |
hadoop_AppPriorityACLConfigurationParser_createACLStringForPriority | /*
* This method will help to append different types of ACLs keys against one
* priority. For eg,USER will be appended with GROUP as "user2,user4 group1".
*/
private AccessControlList createACLStringForPriority(
List<StringBuilder> acls) {
String finalACL = "";
String userACL = acls.get(0).toString();
//... | 3.68 |
flink_Tuple12_setFields | /**
* Sets new values to all fields of the tuple.
*
* @param f0 The value for field 0
* @param f1 The value for field 1
* @param f2 The value for field 2
* @param f3 The value for field 3
* @param f4 The value for field 4
* @param f5 The value for field 5
* @param f6 The value for field 6
* @param f7 The valu... | 3.68 |
hadoop_TimelineEvents_getEvents | /**
* Get a list of events
*
* @return a list of events
*/
@XmlElement(name = "events")
public List<TimelineEvent> getEvents() {
return events;
} | 3.68 |
hbase_RemoteProcedureDispatcher_removeNode | /**
* Remove a remote node
* @param key the node identifier
*/
public boolean removeNode(final TRemote key) {
final BufferNode node = nodeMap.remove(key);
if (node == null) {
return false;
}
node.abortOperationsInQueue();
return true;
} | 3.68 |
framework_VAbsoluteLayout_remove | /*
* (non-Javadoc)
*
* @see
* com.google.gwt.user.client.ui.ComplexPanel#remove(com.google.gwt.user
* .client.ui.Widget)
*/
@Override
public boolean remove(Widget w) {
AbsoluteWrapper wrapper = getChildWrapper(w);
if (wrapper != null) {
wrapper.destroy();
return super.remove(wrapper);
... | 3.68 |
hadoop_TimelineEvents_addEvents | /**
* Add a list of event to the existing event list
*
* @param events
* a list of events
*/
public void addEvents(List<TimelineEvent> events) {
this.events.addAll(events);
} | 3.68 |
flink_JsonFormatOptionsUtil_validateTimestampFormat | /** Validates timestamp format which value should be SQL or ISO-8601. */
static void validateTimestampFormat(ReadableConfig tableOptions) {
String timestampFormat = tableOptions.get(TIMESTAMP_FORMAT);
if (!TIMESTAMP_FORMAT_ENUM.contains(timestampFormat)) {
throw new ValidationException(
... | 3.68 |
pulsar_PulsarClientImpl_newProducerImpl | /**
* Factory method for creating ProducerImpl instance.
*
* Allows overriding the ProducerImpl instance in tests.
*
* @param topic topic name
* @param partitionIndex partition index of a partitioned topic. the value -1 is used for non-partitioned topics.
* @param conf producer configuration
* @param schema top... | 3.68 |
morf_SqlDialect_truncateTableStatements | /**
* Creates SQL to truncate a table (may require DBA rights on some databases
* e.g. Oracle).
*
* @param table The database table.
* @return SQL statements required to clear a table and prepare it for data
* population.
*/
public Collection<String> truncateTableStatements(Table table) {
return Immuta... | 3.68 |
flink_FlinkContainers_submitSQLJob | /**
* Submits an SQL job to the running cluster.
*
* <p><b>NOTE:</b> You should not use {@code '\t'}.
*/
public void submitSQLJob(SQLJobSubmission job) throws IOException, InterruptedException {
checkState(isStarted(), "SQL job submission is only applicable for a running cluster");
// Create SQL script and ... | 3.68 |
hadoop_PlacementConstraint_maxCardinality | /**
* When placement type is cardinality, the maximum number of containers of the
* depending component that a host should have, where containers of this
* component can be allocated on.
**/
public PlacementConstraint maxCardinality(Long maxCardinality) {
this.maxCardinality = maxCardinality;
return this;
} | 3.68 |
hadoop_ManifestCommitter_enterCommitter | /**
* Committer method invoked; generates a config for it.
* Calls {@code #updateCommonContextOnCommitterEntry()}
* to update the audit context.
* @param isTask is this a task entry point?
* @param context context
* @return committer config
*/
private ManifestCommitterConfig enterCommitter(boolean isTask,
Jo... | 3.68 |
incubator-hugegraph-toolchain_SplicingIdGenerator_concatValues | /**
* Concat property values with NAME_SPLITOR
*
* @param values the property values to be contacted
* @return contacted string value
*/
public static String concatValues(Object... values) {
return concatValues(Arrays.asList(values));
} | 3.68 |
framework_Escalator_setEscalatorUpdater | /**
* {@inheritDoc}
* <p>
* <em>Implementation detail:</em> This method does no DOM modifications
* (i.e. is very cheap to call) if there is no data for rows or columns
* when this method is called.
*
* @see #hasColumnAndRowData()
*/
@Override
public void setEscalatorUpdater(
final EscalatorUpdater esca... | 3.68 |
hadoop_ClientRegistryBinder_qualifyUser | /**
* Qualify a user.
* <ol>
* <li> <code>"~"</code> maps to user home path home</li>
* <li> <code>"~user"</code> maps to <code>/users/$user</code></li>
* <li> <code>"/"</code> maps to <code>/services/</code></li>
* </ol>
* @param user the username
* @return the base path
*/
public static String qualifyU... | 3.68 |
hbase_HBaseTestingUtility_waitUntilNoRegionsInTransition | /**
* Wait until no regions in transition. (time limit 15min)
*/
public void waitUntilNoRegionsInTransition() throws IOException {
waitUntilNoRegionsInTransition(15 * 60000);
} | 3.68 |
hbase_Get_getMaxVersions | /**
* Method for retrieving the get's maximum number of version
* @return the maximum number of version to fetch for this get
*/
public int getMaxVersions() {
return this.maxVersions;
} | 3.68 |
morf_Oracle_canTrace | /**
* @see org.alfasoftware.morf.jdbc.DatabaseType#canTrace()
*/
@Override
public boolean canTrace() {
return true;
} | 3.68 |
framework_AbstractListing_addDataGenerator | /**
* Adds the given data generator to this listing. If the generator was
* already added, does nothing.
*
* @param generator
* the data generator to add, not null
*/
protected void addDataGenerator(DataGenerator<T> generator) {
getDataCommunicator().addDataGenerator(generator);
} | 3.68 |
flink_WindowMapState_putAll | /**
* Copies all of the mappings from the given map into the state.
*
* @param map The mappings to be stored in this state
* @throws Exception Thrown if the system cannot access the state.
*/
public void putAll(W window, Map<RowData, UV> map) throws Exception {
windowState.setCurrentNamespace(window);
wind... | 3.68 |
hbase_FutureUtils_setStackTrace | // This method is used to record the stack trace that calling the FutureUtils.get method. As in
// async client, the retry will be done in the retry timer thread, so the exception we get from
// the CompletableFuture will have a stack trace starting from the root of the retry timer. If we
// just throw this exception o... | 3.68 |
flink_RocksDBNativeMetricOptions_setColumnFamilyAsVariable | /** Returns the column family as variable. */
public void setColumnFamilyAsVariable(boolean columnFamilyAsVariable) {
this.columnFamilyAsVariable = columnFamilyAsVariable;
} | 3.68 |
pulsar_TestRetrySupport_markCurrentSetupNumberCleaned | /**
* This method should be called in the cleanup method of the concrete class.
*/
protected final void markCurrentSetupNumberCleaned() {
cleanedUpSetupNumber = currentSetupNumber;
LOG.debug("cleanedUpSetupNumber={}", cleanedUpSetupNumber);
} | 3.68 |
hbase_RegionCoprocessorHost_preCompactScannerOpen | /**
* Called prior to opening store scanner for compaction.
*/
public ScanInfo preCompactScannerOpen(HStore store, ScanType scanType,
CompactionLifeCycleTracker tracker, CompactionRequest request, User user) throws IOException {
if (coprocEnvironments.isEmpty()) {
return store.getScanInfo();
}
CustomizedS... | 3.68 |
hbase_Subprocedure_getErrorCheckable | /**
* exposed for testing.
*/
ForeignExceptionSnare getErrorCheckable() {
return this.monitor;
} | 3.68 |
hadoop_ApplicationMaster_isNameNode | /**
* Return true iff {@code containerId} represents the NameNode container.
*/
private boolean isNameNode(ContainerId containerId) {
return namenodeContainer != null
&& namenodeContainer.getId().equals(containerId);
} | 3.68 |
hbase_MetricsMaster_incrementWriteRequests | /**
* @param inc How much to add to write requests.
*/
public void incrementWriteRequests(final long inc) {
masterSource.incWriteRequests(inc);
} | 3.68 |
hadoop_FedBalance_setForceCloseOpen | /**
* Whether force close all open files while there is no diff.
* @param value true if force close all the open files.
*/
public Builder setForceCloseOpen(boolean value) {
this.forceCloseOpen = value;
return this;
} | 3.68 |
querydsl_JTSGeometryCollectionExpression_geometryN | /**
* Returns the Nth geometry in this GeometryCollection.
*
* @param n one based index
* @return matching geometry
*/
public JTSGeometryExpression<Geometry> geometryN(Integer n) {
return JTSGeometryExpressions.geometryOperation(SpatialOps.GEOMETRYN, mixin, ConstantImpl.create(n));
} | 3.68 |
querydsl_JTSSurfaceExpression_centroid | /**
* The mathematical centroid for this Surface as a Point. The result is not guaranteed to
* be on this Surface.
*
* @return centroid
*/
public JTSPointExpression<Point> centroid() {
if (centroid == null) {
centroid = JTSGeometryExpressions.pointOperation(SpatialOps.CENTROID, mixin);
}
return... | 3.68 |
hadoop_AbstractDelegationTokenBinding_createDelegationToken | /**
* Create a delegation token for the user.
* This will only be called if a new DT is needed, that is: the
* filesystem has been deployed unbonded.
* @param policy minimum policy to use, if known.
* @param encryptionSecrets encryption secrets for the token.
* @param renewer the principal permitted to renew the ... | 3.68 |
zxing_Result_getBarcodeFormat | /**
* @return {@link BarcodeFormat} representing the format of the barcode that was decoded
*/
public BarcodeFormat getBarcodeFormat() {
return format;
} | 3.68 |
flink_SavepointWriter_write | /**
* Write out a new or updated savepoint.
*
* @param path The path to where the savepoint should be written.
*/
public final void write(String path) {
final Path savepointPath = new Path(path);
List<StateBootstrapTransformationWithID<?>> newOperatorTransformations =
metadata.getNewOperators()... | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.