name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hadoop_BCFile_close_rdh | /**
* Finishing reading the BCFile. Release all resources.
*/
@Override
public void close() {
// nothing to be done now
} | 3.26 |
hadoop_BCFile_getOutputStream_rdh | /**
* Get the output stream for BlockAppender's consumption.
*
* @return the output stream suitable for writing block data.
*/OutputStream getOutputStream() {
return out;
} | 3.26 |
hadoop_BCFile_getCompressionName_rdh | /**
* Get the name of the compression algorithm used to compress the block.
*
* @return name of the compression algorithm.
*/
public String getCompressionName() {
return rBlkState.getCompressionName();
} | 3.26 |
hadoop_BCFile_getDefaultCompressionName_rdh | /**
* Get the name of the default compression algorithm.
*
* @return the name of the default compression algorithm.
*/
public String getDefaultCompressionName() {
return dataIndex.getDefaultCompressionAlgorithm().getName();
} | 3.26 |
hadoop_BCFile_getCompressedSize_rdh | /**
* Get the compressed size of the block.
*
* @return compressed size of the block.
*/
public long getCompressedSize() {
return rBlkState.getBlockRegion().getCompressedSize();
} | 3.26 |
hadoop_BCFile_getBCFileVersion_rdh | /**
* Get version of BCFile file being read.
*
* @return version of BCFile file being read.
*/
public Version getBCFileVersion() {
return version;
} | 3.26 |
hadoop_BalanceJournalInfoHDFS_saveJob_rdh | /**
* Save job journal to HDFS.
*
* All the journals are saved in the path base-dir. Each job has an individual
* directory named after the job id.
* When a job is saved, a new journal file is created. The file's name
* consists of a prefix 'JOB-' and an incremental sequential id. The file with
* the largest id ... | 3.26 |
hadoop_BalanceJournalInfoHDFS_recoverJob_rdh | /**
* Recover job from journal on HDFS.
*/
public void recoverJob(BalanceJob job) throws IOException
{
FSDataInputStream in = null;
try {
Path logPath = getLatestStateJobPath(job);
FileSystem fs = FileSystem.get(f0, conf);
in = fs.open(logPath);
job.readFields(in);
LOG... | 3.26 |
hadoop_RMFatalEvent_getExplanation_rdh | /**
* Get a text description of the reason for the event. If a cause was, that
* {@link Exception} will be converted to a {@link String} and included in
* the result.
*
* @return a text description of the reason for the event
*/
public String getExplanation() {
StringBuilder sb = new StringBuilder();if (me... | 3.26 |
hadoop_ManifestCommitter_maybeSaveSummary_rdh | /**
* Save a summary to the report dir if the config option
* is set.
* The IOStatistics of the summary will be updated to the latest
* snapshot of the committer's statistics, so the report is up
* to date.
* The report will updated with the current active stage,
* and if {@code thrown} is non-null, it will be a... | 3.26 |
hadoop_ManifestCommitter_getSuccessReport_rdh | /**
* Get the manifest Success data; only valid after a job.
*
* @return the job _SUCCESS data, or null.
*/
public ManifestSuccessData getSuccessReport() {
return successReport;
} | 3.26 |
hadoop_ManifestCommitter_resolveDestinationDirectory_rdh | /**
* Get the final output path, including resolving any relative path.
*
* @param outputPath
* output path
* @param conf
* configuration to create any FS with
* @return a resolved path.
* @throws IOException
* failure.
*/
private Path resolveDestinationDirectory(Path outputPath, Configuration conf) thr... | 3.26 |
hadoop_ManifestCommitter_m1_rdh | /**
* Create manifest store operations for the destination store.
* This MUST NOT be used for the success report operations, as
* they may be to a different filesystem.
* This is a point which can be overridden during testing.
*
* @return a new store operations instance bonded to the destination fs.
* @throws IO... | 3.26 |
hadoop_ManifestCommitter_isRecoverySupported_rdh | /**
* Declare that task recovery is not supported.
* It would be, if someone added the code *and tests*.
*
* @param jobContext
* Context of the job whose output is being written.
* @return false, always
* @throws IOException
* never
*/
@Override
public boolean isRecoverySupported(final JobContext jobContex... | 3.26 |
hadoop_ManifestCommitter_getJobUniqueId_rdh | /**
* Get the unique ID of this job.
*
* @return job ID (yarn, spark)
*/
public String getJobUniqueId() {
return baseConfig.getJobUniqueId();
} | 3.26 |
hadoop_ManifestCommitter_commitTask_rdh | /**
* Commit the task.
* This is where the task attempt tree list takes place.
*
* @param context
* task context.
* @throws IOException
* IO Failure.
*/
@Override
public void commitTask(final TaskAttemptContext context) throws IOException {
ManifestCommitt... | 3.26 |
hadoop_ManifestCommitter_exitStage_rdh | /**
* Remove stage from common audit context.
*
* @param stage
* stage exited.
*/
@Override
public void exitStage(String stage) {
AuditingIntegration.exitStage();
} | 3.26 |
hadoop_ManifestCommitter_hasCapability_rdh | /**
* The committer is compatible with spark's dynamic partitioning
* algorithm.
*
* @param capability
* string to query the stream support for.
* @return true if the requested capability is supported.
*/
@Override
public boolean hasCapability(final String capability) {
return CAPABILITY_DYNAMIC_PARTITIONING.... | 3.26 |
hadoop_ManifestCommitter_recoverTask_rdh | /**
*
* @param taskContext
* Context of the task whose output is being recovered
* @throws IOException
* always
*/
@Override
public void recoverTask(final TaskAttemptContext taskContext) throws IOException {
LOG.warn("Rejecting recoverTask({}) call", taskContext.getTaskAttemptID());
throw new IOExcept... | 3.26 |
hadoop_ManifestCommitter_getOrCreateSuccessData_rdh | /**
* Get the manifest success data for this job; creating on demand if needed.
*
* @param committerConfig
* source config.
* @return the current {@link #successReport} value; never null.
*/
private ManifestSuccessData getOrCreateSuccessData(ManifestCommitterConfig committerConfig) {
if (successReport == null) ... | 3.26 |
hadoop_ManifestCommitter_logCommitterStatisticsAtDebug_rdh | /**
* Log IO Statistics at debug.
*/
private void logCommitterStatisticsAtDebug() {
logIOStatisticsAtDebug(LOG, "Committer Statistics", this);
} | 3.26 |
hadoop_ManifestCommitter_executeCleanup_rdh | /**
* Perform the cleanup operation for job cleanup or abort.
*
* @param statisticName
* statistic/stage name
* @param jobContext
* job context
* @param committerConfig
* committer config
* @throws IOException
* failure
* @return the outcome
*/
private Result executeCleanup(final String statisticNam... | 3.26 |
hadoop_ManifestCommitter_isCommitJobRepeatable_rdh | /**
* Failure during Job Commit is not recoverable from.
*
* @param jobContext
* Context of the job whose output is being written.
* @return false, always
* @throws IOException
* never
*/
@Override
public boolean isCommitJobRepeatable(final JobContext jobContext) throws IOException {
LOG.info("Probe fo... | 3.26 |
hadoop_ManifestCommitter_getJobAttemptPath_rdh | /**
* Compute the path where the output of a task attempt is stored until
* that task is committed.
*
* @param context
* the context of the task attempt.
* @return the path where a task attempt should be stored.
*/
@VisibleForTesting
public Path getJobAttemptPath(JobContext context) {
return enterCommitter(fal... | 3.26 |
hadoop_ManifestCommitter_abortJob_rdh | /**
* Abort the job.
* Invokes
* {@link #executeCleanup(String, JobContext, ManifestCommitterConfig)}
* then saves the (ongoing) job report data if reporting is enabled.
*
* @param jobContext
* Context of the job whose output is being written.
* @param state
* final runstate of the job
* @throws IOExcepti... | 3.26 |
hadoop_ManifestCommitter_getConf_rdh | /**
* Get the config of the task attempt this instance was constructed
* with.
*
* @return a configuration.
*/
public Configuration getConf() {
return baseConfig.getConf();
} | 3.26 |
hadoop_ManifestCommitter_getTaskAttemptDir_rdh | /**
* Get the task attempt dir.
* May be null.
*
* @return a path or null.
*/
private Path getTaskAttemptDir() {
return taskAttemptDir;
}
/**
* Callback on stage entry.
* Sets {@link #activeStage} | 3.26 |
hadoop_ManifestCommitter_commitJob_rdh | /**
* This is the big job commit stage.
* Load the manifests, prepare the destination, rename
* the files then cleanup the job directory.
*
* @param jobContext
* Context of the job whose output is being written.
* @throws IOException
* failure.
*/
@Override
public void commitJob(final JobContext jobContext... | 3.26 |
hadoop_ManifestCommitter_enterCommitter_rdh | /**
* 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 i... | 3.26 |
hadoop_ManifestCommitter_abortTask_rdh | /**
* Abort a task.
*
* @param context
* task context
* @throws IOException
* failure during the delete
*/
@Override
public void abortTask(final TaskAttemptContext context) throws IOException {ManifestCommitterConfig committerConfig = enterCommitter(true, context);
try {
new AbortTaskStage(committerConfi... | 3.26 |
hadoop_ManifestCommitter_setupTask_rdh | /**
* Set up a task through a {@link SetupTaskStage}.
* Classic FileOutputCommitter is a no-op here, relying
* on RecordWriters to create the dir implicitly on file
* create().
* FileOutputCommitter also uses the existence of that
* file as a flag to indicate task commit is needed.
*
* @param context
* task ... | 3.26 |
hadoop_ManifestCommitter_getWorkPath_rdh | /**
* Work path of the current task attempt.
* This is null if the task does not have one.
*
* @return a path.
*/
@Override
public Path getWorkPath() {
return getTaskAttemptDir();
} | 3.26 |
hadoop_ManifestCommitter_getOutputPath_rdh | /**
* Output path: destination directory of the job.
*
* @return the overall job destination directory.
*/
@Override
public Path getOutputPath() {
return getDestinationDir();
} | 3.26 |
hadoop_ManifestCommitter_cleanupJob_rdh | /**
* Execute the {@code CleanupJobStage} to remove the job attempt dir.
* This does
*
* @param jobContext
* Context of the job whose output is being written.
* @throws IOException
* failure during cleanup
*/
@SuppressWarnings("deprecation")
@Override
public void cleanupJob(final JobContext jobContext) thro... | 3.26 |
hadoop_ManifestCommitter_getDestinationDir_rdh | /**
* Get the job destination dir.
*
* @return dest dir.
*/
private Path getDestinationDir() {
return destinationDir;
} | 3.26 |
hadoop_ManifestCommitter_needsTaskCommit_rdh | /**
* Always return true.
* This way, even if there is no output, stats are collected.
*
* @param context
* task context.
* @return true
* @throws IOException
* IO Failure.
*/
@Override
public boolean needsTaskCommit(final TaskAttemptContext context) throws IOException {
LOG.info("Probe for needsTaskCo... | 3.26 |
hadoop_ManifestCommitter_getTaskAttemptPath_rdh | /**
* Compute the path where the output of a task attempt is stored until
* that task is committed.
*
* @param context
* the context of the task attempt.
* @return the path where a task attempt should be stored.
*/
@VisibleForTesting
public Path getTaskAttemptPath(TaskAttemptContext context) {
return
enterComm... | 3.26 |
hadoop_ExponentialRetryPolicy_getRetryInterval_rdh | /**
* Returns backoff interval between 80% and 120% of the desired backoff,
* multiply by 2^n-1 for exponential.
*
* @param retryCount
* The current retry attempt count.
* @return backoff Interval time
*/
public long
getRetryInterval(final int retryCount) {
final long boundedRandDelta = ((int) (this.f0 * ... | 3.26 |
hadoop_ExponentialRetryPolicy_shouldRetry_rdh | /**
* Returns if a request should be retried based on the retry count, current response,
* and the current strategy. The valid http status code lies in the range of 1xx-5xx.
* But an invalid status code might be set due to network or timeout kind of issues.
* Such invalid status code also qualify for retry.
*
* @... | 3.26 |
hadoop_InverseMapper_map_rdh | /**
* The inverse function. Input keys and values are swapped.
*/
public void map(K key, V value, OutputCollector<V, K> output, Reporter reporter) throws IOException {output.collect(value, key);
} | 3.26 |
hadoop_IteratorSelector_getPartition_rdh | /**
* The partition for this iterator selector.
*
* @return partition
*/
public String getPartition() {
return this.partition;
} | 3.26 |
hadoop_IteratorSelector_setPartition_rdh | /**
* Set partition for this iterator selector.
*
* @param p
* partition
*/
public void setPartition(String p) {
this.partition = p;
} | 3.26 |
hadoop_DelegationTokenIdentifier_stringifyToken_rdh | /**
*
* @return a string representation of the token
*/
public static String stringifyToken(final Token<?>
token) throws IOException {
DelegationTokenIdentifier ident = new DelegationTokenIdentifier();
ByteArrayInputStream v4 = new ByteArrayInputStream(token.getIdentifier());
DataInputStream in = new DataInputStr... | 3.26 |
hadoop_HostsFileReader_getHostDetails_rdh | /**
* Retrieve an atomic view of the included and excluded hosts.
*
* @return the included and excluded hosts
*/
public HostDetails getHostDetails() {
return current.get();
} | 3.26 |
hadoop_DatanodeVolumeInfo_getFreeSpace_rdh | /**
* get free space.
*/
public long getFreeSpace() {
return freeSpace;
} | 3.26 |
hadoop_DatanodeVolumeInfo_getDatanodeVolumeReport_rdh | /**
* get volume report.
*/
public String getDatanodeVolumeReport() {
StringBuilder report = new StringBuilder();
report.append("Directory: " + path).append("\nStorageType: " + storageType).append(((("\nCapacity Used: " + usedSpace) + "(") + StringUtils.byteDesc(usedSpace)) + ")").append(((("\nCapacity Lef... | 3.26 |
hadoop_DatanodeVolumeInfo_getUsedSpace_rdh | /**
* get used space.
*/
public long getUsedSpace() {return usedSpace;
} | 3.26 |
hadoop_DatanodeVolumeInfo_m0_rdh | /**
* get reserved space for replicas.
*/
public long m0() {
return reservedSpaceForReplicas;
} | 3.26 |
hadoop_DatanodeVolumeInfo_getNumBlocks_rdh | /**
* get number of blocks.
*/
public long getNumBlocks() {
return numBlocks;
} | 3.26 |
hadoop_DatanodeVolumeInfo_getPath_rdh | /**
* get volume path.
*/
public String getPath() {
return path;
} | 3.26 |
hadoop_DatanodeVolumeInfo_getReservedSpace_rdh | /**
* get reserved space.
*/
public long getReservedSpace() {
return
reservedSpace;
} | 3.26 |
hadoop_DatanodeVolumeInfo_getStorageType_rdh | /**
* get storage type.
*/
public StorageType getStorageType() {
return storageType;} | 3.26 |
hadoop_AuxServiceConfiguration_properties_rdh | /**
* A blob of key-value pairs of common service properties.
*/
public AuxServiceConfiguration properties(Map<String, String> props) {
this.properties = props;
return
this;
} | 3.26 |
hadoop_AuxServiceConfiguration_toIndentedString_rdh | /**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o
== null) {
return "null";}
return o.toString().replace("\n", "\n ");
} | 3.26 |
hadoop_AuxServiceConfiguration_files_rdh | /**
* Array of list of files that needs to be created and made available as
* volumes in the service component containers.
*/
public AuxServiceConfiguration files(List<AuxServiceFile> fileList) {
this.files = fileList;
return this;
} | 3.26 |
hadoop_RLESparseResourceAllocation_addInterval_rdh | /**
* Add a resource for the specified interval.
*
* @param reservationInterval
* the interval for which the resource is to be
* added
* @param totCap
* the resource to be added
* @return true if addition is successful, false otherwise
*/
public boolean addInterval(ReservationInterval reservationInterval... | 3.26 |
hadoop_RLESparseResourceAllocation_getRangeOverlapping_rdh | /**
* Get a {@link RLESparseResourceAllocation} view of the {@link Resource}
* allocations between the specified start and end times.
*
* @param start
* the time from which the {@link Resource} allocations are
* required
* @param end
* the time upto which the {@link Resource} allocations are
* required... | 3.26 |
hadoop_RLESparseResourceAllocation_getCapacityAtTime_rdh | /**
* Returns the capacity, i.e. total resources allocated at the specified point
* of time.
*
* @param tick
* timeStap at which resource needs to be known
* @return the resources allocated at the specified time
*/
public Resource getCapacityAtTime(long tick) {
readLock.lock();
try {
Entry<Lon... | 3.26 |
hadoop_RLESparseResourceAllocation_shift_rdh | /**
* This method shifts all the timestamp of the {@link Resource} entries by the
* specified "delta".
*
* @param delta
* the time by which to shift the {@link Resource} allocations
*/
public void shift(long delta) {
writeLock.lock();
try {
TreeMap<Long, Resource> newCum = new TreeMap<>();
... | 3.26 |
hadoop_RLESparseResourceAllocation_getMaximumPeriodicCapacity_rdh | /**
* Get the maximum capacity across specified time instances. The search-space
* is specified using the starting value, tick, and the periodic interval for
* search. Maximum resource allocation across tick, tick + period, tick + 2 *
* period,..., tick + n * period .. is returned.
*
* @param tick
* the starti... | 3.26 |
hadoop_RLESparseResourceAllocation_getLatestNonNullTime_rdh | /**
* Get the timestamp of the latest non-null resource allocation.
*
* @return the timestamp of the last resource allocation
*/
public long getLatestNonNullTime() {
readLock.lock();
try {
if (cumulativeCapacity.isEmpty()) {return -1;
} else {
// the last entry might contain null... | 3.26 |
hadoop_RLESparseResourceAllocation_isEmpty_rdh | /**
* Returns true if there are no non-zero entries.
*
* @return true if there are no allocations or false otherwise
*/
public boolean isEmpty() {
readLock.lock();
try {
if (cumulativeCapacity.isEmpty()) {
return true;
}
// Deletion leaves a single zero entry with a null ... | 3.26 |
hadoop_RLESparseResourceAllocation_getMinimumCapacityInInterval_rdh | /**
* Get the minimum capacity in the specified time range.
*
* @param interval
* the {@link ReservationInterval} to be searched
* @return minimum resource allocation
*/
public Resource getMinimumCapacityInInterval(ReservationInterval interval) {
... | 3.26 |
hadoop_RLESparseResourceAllocation_getEarliestStartTime_rdh | /**
* Get the timestamp of the earliest resource allocation.
*
* @return the timestamp of the first resource allocation
*/public long getEarliestStartTime() {
readLock.lock();
try {
if (cumulativeCapacity.isEmpty()) {
return -1;
} else {
return cumulativeCapacity.fir... | 3.26 |
hadoop_RLESparseResourceAllocation_removeInterval_rdh | /**
* Removes a resource for the specified interval.
*
* @param reservationInterval
* the interval for which the resource is to be
* removed
* @param totCap
* the resource to be removed
* @return true if removal is successful, false otherwise
*/
public boolean ... | 3.26 |
hadoop_ZookeeperUtils_buildQuorum_rdh | /**
* Build a quorum list, injecting a ":defaultPort" ref if needed on
* any entry without one
*
* @param hostAndPorts
* @param defaultPort
* @return */ public static String buildQuorum(List<HostAndPort> hostAndPorts, int defaultPort) {
List<String> entries = new ArrayList<String>(hostAndPorts.size());
... | 3.26 |
hadoop_ZookeeperUtils_buildHostsOnlyList_rdh | /**
* Build up to a hosts only list
*
* @param hostAndPorts
* @return a list of the hosts only
*/
public static String buildHostsOnlyList(List<HostAndPort> hostAndPorts) {
StringBuilder sb = new StringBuilder();
for (HostAndPort hostAndPort : hostAndPorts) {
sb.append(hostAndPort.getHost()).append(... | 3.26 |
hadoop_ZookeeperUtils_splitToHostsAndPorts_rdh | /**
* Split a quorum list into a list of hostnames and ports
*
* @param hostPortQuorumList
* split to a list of hosts and ports
* @return a list of values
*/
public static List<HostAndPort> splitToHostsAndPorts(String
hostPortQuorumList) {
// split an address hot
String[] strings = StringUtils.getString... | 3.26 |
hadoop_GangliaSink31_emitMetric_rdh | /**
* The method sends metrics to Ganglia servers. The method has been taken from
* org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
* order to keep it in sync.
*
* @param groupName
* The group name of the metric
* @param name
* The metric name
* @param type
* The type of the m... | 3.26 |
hadoop_HdfsConfiguration_init_rdh | /**
* This method is here so that when invoked, HdfsConfiguration is class-loaded
* if it hasn't already been previously loaded. Upon loading the class, the
* static initializer block above will be executed to add the deprecated keys
* and to add the default resources. It i... | 3.26 |
hadoop_OBSObjectBucketUtils_createEmptyObject_rdh | // Used to create an empty file that represents an empty directory
private static void createEmptyObject(final OBSFileSystem owner, final String objectName) throws ObsException, IOException {
for (int retryTime = 1; retryTime
< OBSCommonUtils.MAX_RETRY_TIME; retryTime++) {
try {innerCreateEmptyObject(ow... | 3.26 |
hadoop_OBSObjectBucketUtils_cloneObjectMetadata_rdh | /**
* Creates a copy of the passed {@link ObjectMetadata}. Does so without using
* the {@link ObjectMetadata#clone()} method, to avoid copying unnecessary
* headers.
*
* @param source
* the {@link ObjectMetadata} to copy
* @return a copy of {@link ObjectMetadata} with only relevant attributes
*/
private stati... | 3.26 |
hadoop_OBSObjectBucketUtils_renameFolder_rdh | /**
* Implement rename folder.
*
* @param owner
* OBS File System instance
* @param srcKey
* source folder key
* @param dstKey
* destination folder key
* @throws IOException
* any problem with rename folder
*/
static void renameFolder(final OBSFileSystem owner, final String srcKey, final String ... | 3.26 |
hadoop_OBSObjectBucketUtils_copyFile_rdh | /**
* Copy a single object in the bucket via a COPY operation.
*
* @param owner
* OBS File System instance
* @param srcKey
* source object path
* @param dstKey
* destination object path
* @param size
* object size
* @throws InterruptedIOException
* the operation was interrupted
* @throws IOExcept... | 3.26 |
hadoop_OBSObjectBucketUtils_renameBasedOnObject_rdh | /**
* The inner rename operation.
*
* @param owner
* OBS File System instance
* @param src
* path to be renamed
* @param dst
* new path after rename
* @return boolean
* @throws RenameFailedException
* if some criteria for a state changing rename
* was not met. This means work didn't happen;
* i... | 3.26 |
hadoop_OBSObjectBucketUtils_renameFile_rdh | /**
* Implement rename file.
*
* @param owner
* OBS File System instance
* @param srcKey
* source object key
* @param dstKey
* destination object key
* @param srcStatus
* source object status
* @throws IOException
* any problem with rename operation
*/
private static void renameFile(final OBSFile... | 3.26 |
hadoop_OBSObjectBucketUtils_newObjectMetadata_rdh | /**
* Create a new object metadata instance. Any standard metadata headers are
* added here, for example: encryption.
*
* @param length
* length of data to set in header.
* @return a new metadata instance
*/
static ObjectMetadata newObjectMetadata(final long length) {
final ObjectMetadata om = new ObjectMe... | 3.26 |
hadoop_OBSObjectBucketUtils_getObjectMetadata_rdh | /**
* Request object metadata; increments counters in the process.
*
* @param owner
* OBS File System instance
* @param key
* key
* @return the metadata
*/
... | 3.26 |
hadoop_OBSObjectBucketUtils_innerCreateEmptyObject_rdh | // Used to create an empty file that represents an empty directory
private static void innerCreateEmptyObject(final OBSFileSystem owner, final String objectName) throws ObsException, IOException {
final InputStream im = new InputStream() {
@Override
public int read() {
return -1;
... | 3.26 |
hadoop_StoreContext_incrementStatistic_rdh | /**
* Increment a statistic by a specific value.
* This increments both the instrumentation and storage statistics.
*
* @param statistic
* The operation to increment
* @param count
* the count to increment
*/
public void incrementStatistic(Statistic statistic, long count) {
instrumentation.incrementCoun... | 3.26 |
hadoop_StoreContext_isCSEEnabled_rdh | /**
* return if the store context have client side encryption enabled.
*
* @return boolean indicating if CSE is enabled or not.
*/
public boolean isCSEEnabled() {
return isCSEEnabled;
} | 3.26 |
hadoop_StoreContext_submit_rdh | /**
* Submit a closure for execution in the executor
* returned by {@link #getExecutor()}.
*
* @param <T>
* type of future
* @param future
* future for the result.
* @param call
* callable to invoke.
* @return the future passed in
*/
public <T> CompletableFuture<T> submit(final CompletableFuture<T> fut... | 3.26 |
hadoop_StoreContext_keyToPath_rdh | /**
* Convert a key to a fully qualified path.
*
* @param key
* input key
* @return the fully qualified path including URI scheme and bucket name.
*/
public Path keyToPath(String key) {
return f1.keyToPath(key);
} | 3.26 |
hadoop_StoreContext_pathToKey_rdh | /**
* Turns a path (relative or otherwise) into an S3 key.
*
* @param path
* input path, may be relative to the working dir
* @return a key excluding the leading "/", or, if it is the root path, ""
*/
public String pathToKey(Path path) {
return f1.pathToKey(path);
} | 3.26 |
hadoop_StoreContext_fullKey_rdh | /**
* Build the full S3 key for a request from the status entry,
* possibly adding a "/" if it represents directory and it does
* not have a trailing slash already.
*
* @param stat
* status to build the key from
* @return a key for a delete request
*/ public String fullKey(final S3AFileStatus stat) {
Stri... | 3.26 |
hadoop_StoreContext_makeQualified_rdh | /**
* Qualify a path.
*
* @param path
* path to qualify/normalize
* @return possibly new path.
*/
public Path makeQualified(Path path)
{
return f1.makeQualified(path);
} | 3.26 |
hadoop_StoreContext_m1_rdh | /**
* Increment a statistic by 1.
* This increments both the instrumentation and storage statistics.
*
* @param statistic
* The operation to increment
*/
public void m1(Statistic statistic) {
incrementStatistic(statistic, 1);
} | 3.26 |
hadoop_StoreContext_decrementGauge_rdh | /**
* Decrement a gauge by a specific value.
*
* @param statistic
* The operation to decrement
* @param count
* the count to decrement
*/
public void decrementGauge(Statistic statistic, long count) {
instrumentation.decrementGauge(statistic, count);
} | 3.26 |
hadoop_StoreContext_getStorageStatistics_rdh | /**
* Get the storage statistics of this filesystem.
*
* @return the storage statistics
*/
public S3AStorageStatistics getStorageStatistics() {
return storageStatistics;
} | 3.26 |
hadoop_StoreContext_getAuditor_rdh | /**
* Get the auditor.
*
* @return auditor.
*/
public AuditSpanSource<AuditSpanS3A> getAuditor() {
return auditor;
} | 3.26 |
hadoop_StoreContext_createThrottledExecutor_rdh | /**
* Create a new executor with the capacity defined in
* {@link #executorCapacity}.
*
* @return a new executor for exclusive use by the caller.
*/
public ExecutorService createThrottledExecutor() {
return createThrottledExecutor(f0);
} | 3.26 |
hadoop_StoreContext_getOwner_rdh | /**
* Get the owner of the filesystem.
*
* @return the user who created this filesystem.
*/
public UserGroupInformation getOwner()
{
return owner;
} | 3.26 |
hadoop_StoreContext_getBucketLocation_rdh | /**
* Get the location of the bucket.
*
* @return the bucket location.
* @throws IOException
* failure.
*/
public String getBucketLocation() throws IOException {
return f1.getBucketLocation();} | 3.26 |
hadoop_StoreContext_incrementGauge_rdh | /**
* Increment a gauge by a specific value.
*
* @param statistic
* The operation to increment
* @param count
* the count to increment
*/
public void incrementGauge(Statistic statistic, long count) {
instrumentation.incrementGauge(statistic, count);
} | 3.26 |
hadoop_StoreContext_getActiveAuditSpan_rdh | /**
* Return the active audit span.
* This is thread local -it MUST be passed into workers.
* To ensure the correct span is used, it SHOULD be
* collected as early as possible, ideally during construction/
* or service init/start.
*
* @return active audit span.
*/
@Override
public AuditSpan getActiveAuditSpan()... | 3.26 |
hadoop_StoreContext_getRequestFactory_rdh | /**
* Get the request factory.
*
* @return the factory for requests.
*/
public RequestFactory getRequestFactory() {
return f1.getRequestFactory();} | 3.26 |
hadoop_StoreContext_createTempFile_rdh | /**
* Create a temporary file somewhere.
*
* @param prefix
* prefix for the temporary file
* @param size
* expected size.
* @return a file reference.
* @throws IOException
* failure.
*/
public File createTempFile(String prefix, long size) throws IOException {
return f1.createTempFile(prefix, size);
... | 3.26 |
hadoop_DNSOperationsFactory_createInstance_rdh | /**
* Create and initialize a registry operations instance.
* Access rights will be determined from the configuration.
*
* @param name
* name of the instance
* @param impl
* the DNS implementation.
* @param conf
* configuration
* @return a registry operations instance
*/
public static DNSOperations cre... | 3.26 |
hadoop_AppToFlowRowKey_getRowKey_rdh | /**
* Constructs a row key prefix for the app_flow table.
*
* @return byte array with the row key
*/
public byte[] getRowKey() {
return appIdKeyConverter.encode(appId);
} | 3.26 |
hadoop_AppToFlowRowKey_parseRowKey_rdh | /**
* Given the raw row key as bytes, returns the row key as an object.
*
* @param rowKey
* a rowkey represented as a byte array.
* @return an <cite>AppToFlowRowKey</cite> object.
*/
public static AppToFlowRowKey parseRowKey(byte[] rowKey) {
String appId = new AppIdKeyConverter().decode(rowKey);
return ... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.