name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hadoop_TwoColumnLayout_content_rdh | /**
*
* @return the class that will render the content of the page.
*/
protected Class<? extends SubView> content() {
return LipsumBlock.class;
} | 3.26 |
hadoop_TwoColumnLayout_postHead_rdh | /**
* Do what needs to be done after the header is rendered.
*
* @param html
* the html to use to render.
*/
protected void postHead(Page.HTML<__> html) {
} | 3.26 |
hadoop_TwoColumnLayout_setTableStyles_rdh | /**
* Sets up a table to be a consistent style.
*
* @param html
* the HTML to use to render.
* @param tableId
* the ID of the table to set styles on.
* @param innerStyles
* any other styles to add to the table.
*/
protected void setTableStyles(Page.HTML<__> html, String tableId, String... innerStyles) {L... | 3.26 |
hadoop_TwoColumnLayout_footer_rdh | /**
*
* @return the class that will render the footer.
*/protected Class<? extends SubView> footer() {
return FooterBlock.class;
} | 3.26 |
hadoop_TwoColumnLayout_nav_rdh | /**
*
* @return the class that will render the navigation bar.
*/
protected Class<? extends SubView> nav() {
return NavBlock.class;
} | 3.26 |
hadoop_MultipleInputs_getInputFormatMap_rdh | /**
* Retrieves a map of {@link Path}s to the {@link InputFormat} class
* that should be used for them.
*
* @param conf
* The confuration of the job
* @see #addInputPath(JobConf, Path, Class)
* @return A map of paths to inputformats for the job
*/static Map<Path, InputFormat> getInputFormatMap(JobConf conf) {... | 3.26 |
hadoop_MultipleInputs_getMapperTypeMap_rdh | /**
* Retrieves a map of {@link Path}s to the {@link Mapper} class that
* should be used for them.
*
* @param conf
* The confuration of the job
* @see #addInputPath(JobConf, Path, Class, Class)
* @return A map of paths to mappers for the job
*/
@SuppressWarnings("unchec... | 3.26 |
hadoop_MultipleInputs_addInputPath_rdh | /**
* Add a {@link Path} with a custom {@link InputFormat} and
* {@link Mapper} to the list of inputs for the map-reduce job.
*
* @param conf
* The configuration of the job
* @param path
* {@link Path} to be added to the list of inputs for the job
* @param inputFormatClass
* {@link InputFormat} class to ... | 3.26 |
hadoop_CredentialInitializationException_retryable_rdh | /**
* This exception is not going to go away if you try calling it again.
*
* @return false, always.
*/
@Override
public boolean retryable() {
return false;
} | 3.26 |
hadoop_FileSystemStorageStatistics_isTracked_rdh | /**
* Return true if a statistic is being tracked.
*
* @return True only if the statistic is being tracked.
*/
@Overridepublic boolean isTracked(String key) {
for (String v2 : KEYS) {
if (v2.equals(key)) {
return true;
}
}
return false;
} | 3.26 |
hadoop_ResourceRequest_resourceName_rdh | /**
* Set the <code>resourceName</code> of the request.
*
* @see ResourceRequest#setResourceName(String)
* @param resourceName
* <code>resourceName</code> of the request
* @return {@link ResourceRequestBuilder}
*/
@Public@Stable
public ResourceRequestBuilder resourceName(String resourceName) {
resourceRequ... | 3.26 |
hadoop_ResourceRequest_setAllocationRequestId_rdh | /**
* Set the optional <em>ID</em> corresponding to this allocation request. This
* ID is an identifier for different {@code ResourceRequest}s from the <b>same
* application</b>. The allocated {@code Container}(s) received as part of the
* {@code AllocateResponse} response will have the ID corresponding to the
* o... | 3.26 |
hadoop_ResourceRequest_allocationRequestId_rdh | /**
* Set the <code>allocationRequestId</code> of the request.
*
* @see ResourceRequest#setAllocationRequestId(long)
* @param allocationRequestId
* <code>allocationRequestId</code> of the request
* @return {@link ResourceRequestBuilder}
*/
@Public
@Evolving
public ResourceRequestBuilder allocationRequestId(lon... | 3.26 |
hadoop_ResourceRequest_capability_rdh | /**
* Set the <code>capability</code> of the request.
*
* @see ResourceRequest#setCapability(Resource)
* @param capability
* <code>capability</code> of the request
* @return {@link ResourceRequestBuilder}
*/
@Public
@Stable
public ResourceRequestBuilder capability(Resource
capability) {
resourceRequest.set... | 3.26 |
hadoop_ResourceRequest_build_rdh | /**
* Return generated {@link ResourceRequest} object.
*
* @return {@link ResourceRequest}
*/ @Public
@Stable
public ResourceRequest build() {
return resourceRequest;
} | 3.26 |
hadoop_ResourceRequest_relaxLocality_rdh | /**
* Set the <code>relaxLocality</code> of the request.
*
* @see ResourceRequest#setRelaxLocality(boolean)
* @param relaxLocality
* <code>relaxLocality</code> of the request
* @return {@link ResourceRequestBuilder}
*/
@Public
@Stable
public ResourceRequestBuilder relaxLocality(boolean relaxLocality) {
res... | 3.26 |
hadoop_ResourceRequest_priority_rdh | /**
* Set the <code>priority</code> of the request.
*
* @see ResourceRequest#setPriority(Priority)
* @param priority
* <code>priority</code> of the request
* @return {@link ResourceRequestBuilder}
*/
@Public
@Stable
public ResourceRequestBuilder priority(Priority priority) {
resourceRequest.setPriorit... | 3.26 |
hadoop_ResourceRequest_nodeLabelExpression_rdh | /**
* Set the <code>nodeLabelExpression</code> of the request.
*
* @see ResourceRequest#setNodeLabelExpression(String)
* @param nodeLabelExpression
* <code>nodeLabelExpression</code> of the request
* @return {@link ResourceRequestBuilder}
*/
@Public
@Evolving
public ResourceRequestBuilder nodeLabelExpression(S... | 3.26 |
hadoop_ResourceRequest_numContainers_rdh | /**
* Set the <code>numContainers</code> of the request.
*
* @see ResourceRequest#setNumContainers(int)
* @param numContainers
* <code>numContainers</code> of the request
* @return {@link ResourceRequestBuilder}
*/@Public
@Stable
public ResourceRequestBuilder numContainers(int numContainers) {
resourceRequ... | 3.26 |
hadoop_ResourceRequest_getAllocationRequestId_rdh | /**
* Get the optional <em>ID</em> corresponding to this allocation request. This
* ID is an identifier for different {@code ResourceRequest}s from the <b>same
* application</b>. The allocated {@code Container}(s) received as part of the
* {@code AllocateResponse} response will have the ID corresponding to the
* o... | 3.26 |
hadoop_ResourceRequest_clone_rdh | /**
* Clone a ResourceRequest object (shallow copy). Please keep it loaded with
* all (new) fields
*
* @param rr
* the object to copy from
* @return the copied object
*/
@Public
@Evolving
public static ResourceRequest clone(ResourceRequest rr) {
// Please keep it loaded with all (new) fields
return R... | 3.26 |
hadoop_ResourceRequest_m2_rdh | /**
* Set the <code>ExecutionTypeRequest</code> of the requested container.
*
* @param execSpec
* ExecutionTypeRequest of the requested container
*/
@Public@Evolving
public void m2(ExecutionTypeRequest execSpec) {throw
new UnsupportedOperationException();
} | 3.26 |
hadoop_SchedulingResponse_getApplicationId_rdh | /**
* Get Application Id.
*
* @return Application Id.
*/
public ApplicationId getApplicationId() {
return this.applicationId;
} | 3.26 |
hadoop_SchedulingResponse_isSuccess_rdh | /**
* Returns true if Scheduler was able to accept and commit this request.
*
* @return isSuccessful.
*/
public boolean isSuccess() {
return this.isSuccess;
} | 3.26 |
hadoop_SchedulingResponse_getSchedulingRequest_rdh | /**
* Get Scheduling Request.
*
* @return Scheduling Request.
*/
public SchedulingRequest getSchedulingRequest() {
return
this.schedulingRequest;
} | 3.26 |
hadoop_MultipleOutputFormat_getRecordWriter_rdh | /**
* Create a composite record writer that can write key/value data to different
* output files
*
* @param fs
* the file system to use
* @param job
* the job conf for the job
* @param name
* the leaf file name for the output file (such as part-00000")
* @param arg3
* a progressable for reporting pro... | 3.26 |
hadoop_MultipleOutputFormat_generateFileNameForKeyValue_rdh | /**
* Generate the file output file name based on the given key and the leaf file
* name. The default behavior is that the file name does not depend on the
* key.
*
* @param key
* the key of the output data
* @param name
* the leaf file name
* @return generated file name
*/
protected String generateFileNa... | 3.26 |
hadoop_MultipleOutputFormat_generateLeafFileName_rdh | /**
* Generate the leaf name for the output file name. The default behavior does
* not change the leaf file name (such as part-00000)
*
* @param name
* the leaf file name for the output file
* @return the given leaf file name
*/
protected String generateLeafFileName(String name) {
return name;
} | 3.26 |
hadoop_MultipleOutputFormat_generateActualValue_rdh | /**
* Generate the actual value from the given key and value. The default behavior is that
* the actual value is equal to the given value
*
* @param key
* the key of the output data
* @param value
* the value of the output data
* @return the actual value derived from the given key/value
*/
protected V gene... | 3.26 |
hadoop_RegexMountPoint_resolve_rdh | /**
* Get resolved path from regex mount points.
* E.g. link: ^/user/(?<username>\\w+) => s3://$user.apache.com/_${user}
* srcPath: is /user/hadoop/dir1
* resolveLastComponent: true
* then return value is s3://hadoop.apache.com/_hadoop
*
* @param srcPath
* - the src path to resolve
* @param resolveLastCo... | 3.26 |
hadoop_RegexMountPoint_initialize_rdh | /**
* Initialize regex mount point.
*
* @throws IOException
*/
public void initialize() throws IOException {
try {
srcPattern = Pattern.compile(srcPathRegex);
} catch (PatternSyntaxException ex) {
throw new IOException((("Failed to initialized mount point due to bad src path regex:" + srcPat... | 3.26 |
hadoop_RegexMountPoint_getRegexGroupValueFromMather_rdh | /**
* Get matched capture group value from regex matched string. E.g.
* Regex: ^/user/(?<username>\\w+), regexGroupNameOrIndexStr: userName
* then /user/hadoop should return hadoop while call
* getRegexGroupValueFromMather(matcher, usersName)
* or getRegexGroupValueFromMather(matcher, 1)
*
* @param srcMatcher
*... | 3.26 |
hadoop_RegexMountPoint_getVarListInString_rdh | /**
* Get $var1 and $var2 style variables in string.
*
* @param input
* - the string to be process.
* @return */
public static Map<String, Set<String>> getVarListInString(String input) {
Map<String, Set<String>> varMap = new HashMap<>();
Matcher matcher = VAR_PATTERN_IN_DEST.matcher(input);
while (... | 3.26 |
hadoop_AutoRefreshNoHARMFailoverProxyProvider_performFailover_rdh | /**
* Stop the current proxy when performFailover.
*
* @param currentProxy
* currentProxy.
*/
@Override
public synchronized void performFailover(T currentProxy) {
RPC.stopProxy(proxy);
proxy = null; } | 3.26 |
hadoop_TextOutputFormat_writeObject_rdh | /**
* Write the object to the byte stream, handling Text as a special
* case.
*
* @param o
* the object to print
* @throws IOException
* if the write throws, we pass it on
*/
private void writeObject(Object o) throws IOException {
if (o instanceof Text) {
Text to = ((Text) (o));
out.wr... | 3.26 |
hadoop_Exec_getOutput_rdh | /**
* Get every line consumed from the input.
*
* @return Every line consumed from the input
*/
public List<String> getOutput() {
return output;
} | 3.26 |
hadoop_Exec_run_rdh | /**
* Runs the specified command and saves each line of the command's output to
* the given list and each line of the command's stderr to the other list.
*
* @param command
* List containing command and all arguments
* @param output
* List in/out parameter to receive command output
* @param errors
* List... | 3.26 |
hadoop_Exec_addEnvironment_rdh | /**
* Add environment variables to a ProcessBuilder.
*
* @param pb
* The ProcessBuilder
* @param env
* A map of environment variable names to values.
*/
public static void addEnvironment(ProcessBuilder pb, Map<String, String> env) {if (env == null) {
return;
}
Map<String, String> v7 = pb.... | 3.26 |
hadoop_Exec_envToString_rdh | /**
* Pretty-print the environment to a StringBuilder.
*
* @param env
* A map of environment variable names to values to print.
* @return The pretty-printed string.
*/public
static String envToString(Map<String, String> env) {
StringBuilder bld = new StringBuilder();
bld.append("{");if (env != null) {
... | 3.26 |
hadoop_TaskAttemptContextImpl_getStatus_rdh | /**
* Get the last set status message.
*
* @return the current status message
*/
public String
getStatus() {
return status;
} | 3.26 |
hadoop_TaskAttemptContextImpl_progress_rdh | /**
* Report progress.
*/
@Override
public void progress() {
reporter.progress();
} | 3.26 |
hadoop_TaskAttemptContextImpl_setStatus_rdh | /**
* Set the current status of the task to the given string.
*/
@Override
public void setStatus(String status) {
String normalizedStatus = Task.normalizeStatus(status,
conf);
setStatusString(normalizedStatus);
reporter.setStatus(normalizedStatus);
} | 3.26 |
hadoop_TaskAttemptContextImpl_getTaskAttemptID_rdh | /**
* Get the unique name for this task attempt.
*/
public TaskAttemptID getTaskAttemptID() {
return taskId;
} | 3.26 |
hadoop_ValidationFailure_verify_rdh | /**
* Verify that a condition holds.
*
* @param expression
* expression which must be true
* @param message
* message to raise on a failure
* @param args
* arguments for the message formatting
* @throws ValidationFailure
* on a failure
*/
public static void
verify(boolean expression, String message, ... | 3.26 |
hadoop_HttpFSAuthenticationFilter_getConfiguration_rdh | /**
* Returns the hadoop-auth configuration from HttpFSServer's configuration.
* <p>
* It returns all HttpFSServer's configuration properties prefixed with
* <code>hadoop.http.authentication</code>. The
* <code>hadoop.http.authentication</code> prefix is removed from the
* returned pro... | 3.26 |
hadoop_TaskPool_revertWith_rdh | /**
* Task to revert with after another task failed.
*
* @param task
* task to execute
* @return the builder
*/
public Builder<I>
revertWith(Task<I, ?> task) {
this.revertTask = task;
return this;
} | 3.26 |
hadoop_TaskPool_m0_rdh | /**
* Throw one exception, adding the others as suppressed
* exceptions attached to the one thrown.
* This method never completes normally.
*
* @param exceptions
* collection of exceptions
* @param <E>
* class of exceptions
* @throws E
* an extracted exception.
*/private static
<E extends Exception> vo... | 3.26 |
hadoop_TaskPool_run_rdh | /**
* Execute the task across the data.
*
* @param task
* task to execute
* @param <E>
* exception which may be raised in execution.
* @return true if the operation executed successfully
* @throws E
* any exception raised.
* @throws IOException
* IOExceptions raised by remote iterator or in execution... | 3.26 |
hadoop_TaskPool_castAndThrow_rdh | /**
* Raise an exception of the declared type.
* This method never completes normally.
*
* @param e
* exception
* @param <E>
* class of exceptions
* @throws E
* a recast exception.
*/
@SuppressWarnings("unchecked")
private static <E extends Exception> void castAndThrow(Exception e) throws E {
if (e inst... | 3.26 |
hadoop_TaskPool_runSingleThreaded_rdh | /**
* Single threaded execution.
*
* @param task
* task to execute
* @param <E>
* exception which may be raised in execution.
* @return true if the operation executed successfully
* @throws E
* any exception raised.
* @throws IOException
* IOExceptions raised by remote iterator or in execution.
*/
p... | 3.26 |
hadoop_TaskPool_stopRevertsOnFailure_rdh | /**
* Stop trying to revert if one operation fails.
*
* @return the builder
*/
public Builder<I> stopRevertsOnFailure() {
this.stopRevertsOnFailure = true;
return this;
} | 3.26 |
hadoop_TaskPool_foreach_rdh | /**
* Create a task builder for the remote iterator.
*
* @param items
* item source.
* @param <I>
* type of result.
* @return builder.
*/
public static <I> Builder<I> foreach(RemoteIterator<I> items) {
return new Builder<>(items);
} | 3.26 |
hadoop_TaskPool_sleepInterval_rdh | /**
* Set the sleep interval.
*
* @param value
* new value
* @return the builder
*/
public Builder<I> sleepInterval(final int value) {
sleepInterval = value;
return this;
} | 3.26 |
hadoop_TaskPool_onFailure_rdh | /**
* Task to invoke on failure.
*
* @param task
* task
* @return the builder
*/
public Builder<I> onFailure(FailureTask<I, ?> task) {
this.onFailure = task;
return this;
} | 3.26 |
hadoop_TaskPool_stopAbortsOnFailure_rdh | /**
* Stop trying to abort if one operation fails.
*
* @return the builder
*/
public Builder<I> stopAbortsOnFailure() {
this.stopAbortsOnFailure = true;
return this;
} | 3.26 |
hadoop_TaskPool_resetStatisticsContext_rdh | /**
* Reset the statistics context if it was set earlier.
* This unbinds the current thread from any statistics
* context.
*/
private void resetStatisticsContext() {
if (ioStatisticsContext != null) {
IOStatisticsContext.setThreadIOStatisticsContext(null);
}
} | 3.26 |
hadoop_TaskPool_suppressExceptions_rdh | /**
* Suppress exceptions from tasks.
* RemoteIterator exceptions are not suppressable.
*
* @param suppress
* new value
* @return the builder.
*/
public Builder<I> suppressExceptions(boolean
suppress) {
this.suppressExceptions
= suppress;
return this;
} | 3.26 |
hadoop_TaskPool_executeWith_rdh | /**
* Declare executor service: if null, the tasks are executed in a single
* thread.
*
* @param submitter
* service to schedule tasks with.
* @return this builder.
*/
public Builder<I> executeWith(@Nullable
Submitter submitter) {
this.service = submitter;
return this;
} | 3.26 |
hadoop_TaskPool_abortWith_rdh | /**
* Task to abort with after another task failed.
*
* @param task
* task to execute
* @return the builder
*/
public Builder<I> abortWith(Task<I, ?> task) {
this.abortTask = task;
return this;
} | 3.26 |
hadoop_TaskPool_runParallel_rdh | /**
* Parallel execution.
* All tasks run within the same IOStatisticsContext as the
* thread calling this method.
*
* @param task
* task to execute
* @param <E>
* exception which may be raised in execution.
* @return true if the operation executed successfully
* @throws E
* any exception raised.
* @t... | 3.26 |
hadoop_EntityRowKey_getRowKeyAsString_rdh | /**
* Constructs a row key for the entity table as follows:
* <p>
* {@code userName!clusterId!flowName!flowRunId!AppId!
* entityType!entityIdPrefix!entityId}.
* </p>
*
* @return String representation of row key.
*/
public String getRowKeyAsString() {
return entityRowKeyConverter.encodeAsString(this);
} | 3.26 |
hadoop_EntityRowKey_getRowKey_rdh | /**
* Constructs a row key for the entity table as follows:
* {@code userName!clusterId!flowName!flowRunId!AppId!entityType!entityId}.
* Typically used while querying a specific entity.
*
* @return byte array with the row key.
*/
public byte[] getRowKey() {
return entityRowKeyConverter.encode(this);
} | 3.26 |
hadoop_EntityRowKey_parseRowKey_rdh | /**
* Given the raw row key as bytes, returns the row key as an object.
*
* @param rowKey
* byte representation of row key.
* @return An <cite>EntityRowKey</cite> object.
*/
public static EntityRowKey parseRowKey(byte[] rowKey) {
return new EntityRowKeyConverter().decode(rowKey);
} | 3.26 |
hadoop_EntityRowKey_parseRowKeyFromString_rdh | /**
* Given the encoded row key as string, returns the row key as an object.
*
* @param encodedRowKey
* String representation of row key.
* @return A <cite>EntityRowKey</cite> object.
*/
public static EntityRowKey parseRowKeyFromString(String encodedRowKey) {
return new EntityRowKeyConverter().decodeFromStr... | 3.26 |
hadoop_MappableBlockLoaderFactory_createCacheLoader_rdh | /**
* Create a specific cache loader according to the configuration.
* If persistent memory volume is not configured, return a cache loader
* for DRAM cache. Otherwise, return a cache loader for pmem cache.
*/public static MappableBlockLoader createCacheLoader(DNConf conf) {
if ((conf.getPmemVolumes() == null) ... | 3.26 |
hadoop_CalculationContext_getCurrentMaximumCapacityEntry_rdh | /**
* A shorthand to return the maximum capacity vector entry for the currently evaluated child and
* resource name.
*
* @param label
* node label
* @return capacity vector entry
*/
public QueueCapacityVectorEntry getCurrentMaximumCapacityEntry(String label) {
return queue.getConfiguredMaxCapacityVector(l... | 3.26 |
hadoop_CalculationContext_getCurrentMinimumCapacityEntry_rdh | /**
* A shorthand to return the minimum capacity vector entry for the currently evaluated child and
* resource name.
*
* @param label
* node label
* @return capacity vector entry
*/
public QueueCapacityVectorEntry getCurrentMinimumCapacityEntry(String label) {
return queue.getConfiguredCapacityVector(labe... | 3.26 |
hadoop_AzureBlobFileSystem_statIncrement_rdh | /**
* Increment of an Abfs statistic.
*
* @param statistic
* AbfsStatistic that needs increment.
*/
private void statIncrement(AbfsStatistic statistic) {
incrementStatistic(statistic);
} | 3.26 |
hadoop_AzureBlobFileSystem_checkException_rdh | /**
* Given a path and exception, choose which IOException subclass
* to create.
* Will return if and only iff the error code is in the list of allowed
* error codes.
*
* @param path
* path of operation triggering exception; may be null
* @param exception
* the exception caught
* @param allowedErrorCodesL... | 3.26 |
hadoop_AzureBlobFileSystem_access_rdh | /**
* Checks if the user can access a path. The mode specifies which access
* checks to perform. If the requested permissions are granted, then the
* method returns normally. If access is denied, then the method throws an
* {@link AccessControlException}.
*
* @param path
* Path to check
* @param mode
* ... | 3.26 |
hadoop_AzureBlobFileSystem_getDelegationToken_rdh | /**
* Get a delegation token from remote service endpoint if
* 'fs.azure.enable.kerberos.support' is set to 'true', and
* 'fs.azure.enable.delegation.token' is set to 'true'.
*
* @param renewer
* the account name that is allowed to renew the token.
* @return delegation token
* @throws IOException
* thrown ... | 3.26 |
hadoop_AzureBlobFileSystem_trailingPeriodCheck_rdh | /**
* Performs a check for (.) until root in the path to throw an exception.
* The purpose is to differentiate between dir/dir1 and dir/dir1.
* Without the exception the behavior seen is dir1. will appear
* to be present without it's actual creation as dir/dir1 and dir/dir1. are
* treated as identical.
*
* @para... | 3.26 |
hadoop_AzureBlobFileSystem_getAclStatus_rdh | /**
* Gets the ACL of a file or directory.
*
* @param path
* Path to get
* @return AbfsAclStatus describing the ACL of the file or directory
* @throws IOException
* if an ACL could not be read
*/
@Overridepublic AclStatus getAclStatus(final Path path) throws IOException {
LOG.debug("AzureBlobFileSystem.getA... | 3.26 |
hadoop_AzureBlobFileSystem_exists_rdh | /**
* Incrementing exists() calls from superclass for statistic collection.
*
* @param f
* source path.
* @return true if the path exists.
* @throws IOException
*/@Override
public boolean exists(Path f) throws IOException {
statIncrement(CALL_EXIST);
return super.exists(f);
} | 3.26 |
hadoop_AzureBlobFileSystem_setPermission_rdh | /**
* Set permission of a path.
*
* @param path
* The path
* @param permission
* Access permission
*/
@Override
public void setPermission(final Path path, final FsPermission permission) throws IOException {
LOG.debug("AzureBlobFileSystem.setPermission path: {}... | 3.26 |
hadoop_AzureBlobFileSystem_openFileWithOptions_rdh | /**
* Takes config and other options through
* {@link org.apache.hadoop.fs.impl.OpenFileParameters}. Ensure that
* FileStatus entered is up-to-date, as it will be used to create the
* InputStream (with info such as contentLength, eTag)
*
* @param path
* The location of file to be opened
* @param parameters
*... | 3.26 |
hadoop_AzureBlobFileSystem_modifyAclEntries_rdh | /**
* Modifies ACL entries of files and directories. This method can add new ACL
* entries or modify the permissions on existing ACL entries. All existing
* ACL entries that are not specified in this call are retained without
* changes. (Modifications are merged into the current ACL.)
*
* @param path
* Path... | 3.26 |
hadoop_AzureBlobFileSystem_setXAttr_rdh | /**
* Set the value of an attribute for a path.
*
* @param path
* The path on which to set the attribute
* @param name
* The attribute to set
* @param value
* The byte value of the attribute to set (encoded in latin-1)
* @par... | 3.26 |
hadoop_AzureBlobFileSystem_m0_rdh | /**
* Set owner of a path (i.e. a file or a directory).
* The parameters owner and group cannot both be null.
*
* @param path
* The path
* @param owner
* If it is null, the original username remains unchanged.
* @param group
* If it is null, the original groupname remains unchanged.
*/
@Override
public ... | 3.26 |
hadoop_AzureBlobFileSystem_removeDefaultAcl_rdh | /**
* Removes all default ACL entries from files and directories.
*
* @param path
* Path to modify
* @throws IOException
* if an ACL could not be modified
*/
@Override
public void removeDefaultAcl(final Path path) throws IOException {
LOG.debug("AzureBlobFileSystem.removeDefaultAcl path: {}", path);
TracingC... | 3.26 |
hadoop_AzureBlobFileSystem_listLocatedStatus_rdh | /**
* Incremental listing of located status entries,
* preserving etags.
*
* @param path
* path to list
* @param filter
* a path filter
* @return iterator of results.
* @throws FileNotFoundException
* source path not found.
* @throws IOException
* other values.
*/
@Override
protected RemoteIterator... | 3.26 |
hadoop_AzureBlobFileSystem_getDelegationTokenManager_rdh | /**
* Get any Delegation Token manager created by the filesystem.
*
* @return the DT manager or null.
*/@VisibleForTesting
AbfsDelegationTokenManager getDelegationTokenManager() {
return delegationTokenManager;
} | 3.26 |
hadoop_AzureBlobFileSystem_getOwnerUserPrimaryGroup_rdh | /**
* Get the group name of the owner of the FS.
*
* @return primary group name
*/
public String getOwnerUserPrimaryGroup() {
return abfsStore.getPrimaryGroup();} | 3.26 |
hadoop_AzureBlobFileSystem_commitSingleFileByRename_rdh | /**
* Resilient commit support.
* Provided as a nested class to avoid contaminating the
* FS instance with too many private methods which end up
* being used widely (as has happened to the S3A FS)
*/public class ResilientCommitByRenameImpl implements ResilientCommitByRename { /**
* Perform the rename.
* ... | 3.26 |
hadoop_AzureBlobFileSystem_getIOStatistics_rdh | /**
* Getter for IOStatistic instance in AzureBlobFilesystem.
*
* @return the IOStatistic instance from abfsCounters.
*/
@Override
public IOStatistics getIOStatistics() {
return abfsCounters != null ? abfsCounters.getIOStatistics() : null;} | 3.26 |
hadoop_AzureBlobFileSystem_createResilientCommitSupport_rdh | /**
* Private method to create resilient commit support.
*
* @return a new instance
* @param path
* destination path
* @throws IOException
* problem probing store capabilities
* @throws UnsupportedOperationException
* if the store lacks this support
*/
@InterfaceAudience.Private
public ResilientCommitBy... | 3.26 |
hadoop_AzureBlobFileSystem_getCanonicalServiceName_rdh | /**
* If Delegation tokens are enabled, the canonical service name of
* this filesystem is the filesystem URI.
*
* @return either the filesystem URI as a string, or null.
*/
@Override
public String getCanonicalServiceName() {
String name = null;
if (delegationTokenManager != null) {
name = delegationTokenManager... | 3.26 |
hadoop_AzureBlobFileSystem_getOwnerUser_rdh | /**
* Get the username of the FS.
*
* @return the short name of the user who instantiated the FS
*/
public String getOwnerUser() {
return abfsStore.getUser();
} | 3.26 |
hadoop_AzureBlobFileSystem_removeAclEntries_rdh | /**
* Removes ACL entries from files and directories. Other ACL entries are
* retained.
*
* @param path
* Path to modify
* @param aclSpec
* List of AclEntry describing entries to remove
* @throws IOException
* if an ACL could not be modified
*/
@Override
public void removeAclEntries(final Path path, fi... | 3.26 |
hadoop_AzureBlobFileSystem_incrementStatistic_rdh | /**
* Method for incrementing AbfsStatistic by a long value.
*
* @param statistic
* the Statistic to be incremented.
*/
private void incrementStatistic(AbfsStatistic statistic) {
if (abfsCounters != null) {
abfsCounters.incrementCounter(statistic, 1);
}
} | 3.26 |
hadoop_AzureBlobFileSystem_breakLease_rdh | /**
* Break the current lease on an ABFS file if it exists. A lease that is broken cannot be
* renewed. A new lease may be obtained on the file immediately.
*
* @param f
* file name
* @throws IOException
* on any exception while breaking the lease
*/
public void breakLease(final Path f) throws IOException {... | 3.26 |
hadoop_AzureBlobFileSystem_getInstrumentationMap_rdh | /**
* Returns the counter() map in IOStatistics containing all the counters
* and their values.
*
* @return Map of IOStatistics counters.
*/
@VisibleForTesting
Map<String, Long> getInstrumentationMap() {
return
abfsCounters.toMap();
} | 3.26 |
hadoop_RegistryPathStatus_hashCode_rdh | /**
* The hash code is derived from the path.
*
* @return hash code for storing the path in maps.
*/
@Override
public int
hashCode() {
return
path != null ? path.hashCode() : 0;
} | 3.26 |
hadoop_RegistryPathStatus_equals_rdh | /**
* Equality operator checks size, time and path of the entries.
* It does <i>not</i> check {@link #children}.
*
* @param other
* the other entry
* @return true if the entries are considered equal.
*/
@Override
public boolean equals(Object other) {
if (this == othe... | 3.26 |
hadoop_TaggedInputSplit_getInputSplit_rdh | /**
* Retrieves the original InputSplit.
*
* @return The InputSplit that was tagged
*/
public InputSplit getInputSplit() {return inputSplit;} | 3.26 |
hadoop_TaggedInputSplit_getInputFormatClass_rdh | /**
* Retrieves the InputFormat class to use for this split.
*
* @return The InputFormat class to use
*/
public Class<? extends InputFormat> getInputFormatClass() {
return inputFormatClass;
} | 3.26 |
hadoop_TaggedInputSplit_getMapperClass_rdh | /**
* Retrieves the Mapper class to use for this split.
*
* @return The Mapper class to use
*/
public Class<? extends Mapper> getMapperClass() {
return mapperClass;
} | 3.26 |
hadoop_InputWriter_initialize_rdh | /**
* Initializes the InputWriter. This method has to be called before calling
* any of the other methods.
*/ public void initialize(PipeMapRed pipeMapRed)
throws
IOException {
// nothing here yet, but that might change in the future
} | 3.26 |
hadoop_ContainerContext_getExecutionType_rdh | /**
* Get {@link ExecutionType} the execution type of the container
* being initialized or stopped.
*
* @return the execution type of the container
*/public ExecutionType getExecutionType() {
return executionType;
} | 3.26 |
hadoop_ContainerContext_getUser_rdh | /**
* Get user of the container being initialized or stopped.
*
* @return the user
*/
public String getUser() {
return user;
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.