name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hadoop_CacheDirectiveStats_getFilesNeeded_rdh
/** * * @return The number of files needed. */ public long getFilesNeeded() { return filesNeeded; }
3.26
hadoop_CacheDirectiveStats_getBytesCached_rdh
/** * * @return The bytes cached. */ public long getBytesCached() { return bytesCached; }
3.26
hadoop_CacheDirectiveStats_setFilesCached_rdh
/** * Sets the files cached by this directive. * * @param filesCached * The number of files cached. * @return This builder, for call chaining. */ public Builder setFilesCached(long filesCached) { this.filesCached = filesCached; return this; }
3.26
hadoop_CacheDirectiveStats_setBytesNeeded_rdh
/** * Sets the bytes needed by this directive. * * @param bytesNeeded * The bytes needed. * @return This builder, for call chaining. */ public Builder setBytesNeeded(long bytesNeeded) { this.bytesNeeded = bytesNeeded; return this; }
3.26
hadoop_CacheDirectiveStats_setBytesCached_rdh
/** * Sets the bytes cached by this directive. * * @param bytesCached * The bytes cached. * @return This builder, for call chaining. */ public Builder setBytesCached(long bytesCached) {this.bytesCached = bytesCached; return this; }
3.26
hadoop_CacheDirectiveStats_setFilesNeeded_rdh
/** * Sets the files needed by this directive. * * @param filesNeeded * The number of files needed * @return This builder, for call chaining. */ public Builder setFilesNeeded(long filesNeeded) { this.filesNeeded = filesNeeded; return this; }
3.26
hadoop_CacheDirectiveStats_setHasExpired_rdh
/** * Sets whether this directive has expired. * * @param hasExpired * if this directive has expired * @return This builder, for call chaining. */ public Builder setHasExpired(boolean hasExpired) { this.hasExpired = hasExpired; return this; }
3.26
hadoop_CacheDirectiveStats_getBytesNeeded_rdh
/** * * @return The bytes needed. */ public long getBytesNeeded() { return bytesNeeded; }
3.26
hadoop_CacheDirectiveStats_getFilesCached_rdh
/** * * @return The number of files cached. */ public long getFilesCached() { return filesCached; }
3.26
hadoop_HdfsNamedFileStatus_getStoragePolicy_rdh
/** * * @return the storage policy id */ @Override public byte getStoragePolicy() { return storagePolicy; }
3.26
hadoop_HdfsNamedFileStatus_getSymlinkInBytes_rdh
/** * Opaque referant for the symlink, to be resolved at the client. */ @Override public byte[] getSymlinkInBytes() { return uSymlink; }
3.26
hadoop_HdfsNamedFileStatus_getErasureCodingPolicy_rdh
/** * Get the erasure coding policy if it's set. * * @return the erasure coding policy */ @Override public ErasureCodingPolicy getErasureCodingPolicy() { return ecPolicy; }
3.26
hadoop_HdfsNamedFileStatus_getLocalNameInBytes_rdh
/** * Get the Java UTF8 representation of the local name. * * @return the local name in java UTF8 */ @Override public byte[] getLocalNameInBytes() { return uPath; }
3.26
hadoop_DatanodeProtocolClientSideTranslatorPB_isMethodSupported_rdh
// ProtocolMetaInterface @Override public boolean isMethodSupported(String methodName) throws IOException { return RpcClientUtil.isMethodSupported(rpcProxy, DatanodeProtocolPB.class, RpcKind.RPC_PROTOCOL_BUFFER, RPC.getProtocolVersion(DatanodeProtocolPB.class), methodName); }
3.26
hadoop_DeviceMappingManager_defaultScheduleAction_rdh
// Default scheduling logic private void defaultScheduleAction(Set<Device> allowed, Map<Device, ContainerId> used, Set<Device> assigned, ContainerId containerId, int count) { LOG.debug((((("Using default scheduler. Allowed:" + allowed) + ",Used:") + used) + ", containerId:") + containerId); for (Device device ...
3.26
hadoop_NativeSingleLineParser_aggregateSkyline_rdh
/** * Aggregates different jobs' {@link ResourceSkyline}s within the same * pipeline together. * * @param resourceSkyline * newly extracted {@link ResourceSkyline}. * @param recurrenceId * the {@link RecurrenceId} which the resourceSkyline * belongs to. * @param sk...
3.26
hadoop_QuorumException_create_rdh
/** * Create a QuorumException instance with a descriptive message detailing * the underlying exceptions, as well as any successful responses which * were returned. * * @param <K> * the keys for the quorum calls * @param <V> * the success response type * @param successes * any successful responses retur...
3.26
hadoop_DiskBalancerWorkStatus_getCurrentState_rdh
/** * Gets current Status. * * @return - Json String */ public List<DiskBalancerWorkEntry> getCurrentState() { return currentState; }
3.26
hadoop_DiskBalancerWorkStatus_setSourcePath_rdh
/** * Sets the Source Path. * * @param sourcePath * - Volume Path. */ public void setSourcePath(String sourcePath) { this.f1 = sourcePath; }
3.26
hadoop_DiskBalancerWorkStatus_currentStateString_rdh
/** * Return current state as a string. * * @throws IOException */ public String currentStateString() throws IOException { return MAPPER_WITH_INDENT_OUTPUT.writeValueAsString(currentState); }
3.26
hadoop_DiskBalancerWorkStatus_setDestPath_rdh
/** * Sets the destination path. * * @param destPath * - Path */ public void setDestPath(String destPath) { this.destPath = destPath; }
3.26
hadoop_DiskBalancerWorkStatus_getIntResult_rdh
/** * Get int value of result. * * @return int */ public int getIntResult() { return result; }
3.26
hadoop_DiskBalancerWorkStatus_setWorkItem_rdh
/** * Sets the work item. * * @param workItem * - sets the work item information */ public void setWorkItem(DiskBalancerWorkItem workItem) { this.workItem = workItem; }
3.26
hadoop_DiskBalancerWorkStatus_addWorkEntry_rdh
/** * Adds a new work entry to the list. * * @param entry * - DiskBalancerWorkEntry */ public void addWorkEntry(DiskBalancerWorkEntry entry) { Preconditions.checkNotNull(entry); currentState.add(entry);}
3.26
hadoop_DiskBalancerWorkStatus_getSourcePath_rdh
/** * Returns the source path. * * @return - Source path */ public String getSourcePath() { return f1; }
3.26
hadoop_DiskBalancerWorkStatus_getDestPath_rdh
/** * Gets the Destination path. * * @return - Path */ public String getDestPath() { return destPath; }
3.26
hadoop_DiskBalancerWorkStatus_getWorkItem_rdh
/** * Gets the current status of work for these volumes. * * @return - Work Item */ public DiskBalancerWorkItem getWorkItem() { return workItem; }
3.26
hadoop_DiskBalancerWorkStatus_getResult_rdh
/** * Returns result. * * @return long */ public Result getResult() { return result; }
3.26
hadoop_DiskBalancerWorkStatus_parseJson_rdh
/** * Returns a DiskBalancerWorkStatus object from the Json . * * @param json * - json String * @return DiskBalancerWorkStatus * @throws IOException */ public static DiskBalancerWorkStatus parseJson(String json) throws IOException { return READER_WORKSTATUS.readValue(json); }
3.26
hadoop_PlacementConstraintManagerService_getValidSourceTag_rdh
/** * This method will return a single allocation tag. It should be called after * validating the tags by calling {@link #validateSourceTags}. * * @param sourceTags * the source allocation tags * @return the single source tag */ protected String getValidSourceTag(Set<String> sourceTags) { return sourceTags...
3.26
hadoop_PlacementConstraintManagerService_validateSourceTags_rdh
/** * Validates whether the allocation tags that will enable a constraint have * the expected format. At the moment we support a single allocation tag per * constraint. * * @param sourceTags * the source allocation tags * @return true if the tags have the expected format */ protected boolean validateSourceTag...
3.26
hadoop_PatternValidator_validate_rdh
/** * Validate the name -restricting it to the set defined in * * @param name * name to validate * @throws IllegalArgumentException * if not a valid name */ public void validate(String name) { if (!matches(name)) { throw new IllegalArgumentException(String.format(E_INVALID_NAME, name, pattern)); ...
3.26
hadoop_SchedulingRequest_executionType_rdh
/** * Set the <code>executionType</code> of the request. * * @see SchedulingRequest#setExecutionType(ExecutionTypeRequest) * @param executionType * <code>executionType</code> of the request * @return {@link SchedulingRequest.SchedulingRequestBuilder} */ @Public @Unstable public SchedulingRequestBuilder executi...
3.26
hadoop_SchedulingRequest_priority_rdh
/** * Set the <code>priority</code> of the request. * * @param priority * <code>priority</code> of the request * @return {@link SchedulingRequest.SchedulingRequestBuilder} * @see SchedulingRequest#setPriority(Priority) */ @Public @Unstable public SchedulingRequestBuilder priority(Priority priority) { f0.se...
3.26
hadoop_SchedulingRequest_build_rdh
/** * Return generated {@link SchedulingRequest} object. * * @return {@link SchedulingRequest} */ @Public @Unstable public SchedulingRequest build() {return f0; }
3.26
hadoop_SchedulingRequest_resourceSizing_rdh
/** * Set the <code>executionType</code> of the request. * * @see SchedulingRequest#setResourceSizing(ResourceSizing) * @param resourceSizing * <code>resourceSizing</code> of the request * @return {@link SchedulingRequest.SchedulingRequestBuilder} */ @Public @Unstable public SchedulingRequestBuilder resourceSi...
3.26
hadoop_SchedulingRequest_allocationRequestId_rdh
/** * Set the <code>allocationRequestId</code> of the request. * * @see SchedulingRequest#setAllocationRequestId(long) * @param allocationRequestId * <code>allocationRequestId</code> of the * request * @return {@link SchedulingRequest.SchedulingRequestBuilder} */ @Public @Unstable public SchedulingRequestBu...
3.26
hadoop_SchedulingRequest_allocationTags_rdh
/** * Set the <code>allocationTags</code> of the request. * * @see SchedulingRequest#setAllocationTags(Set) * @param allocationTags * <code>allocationsTags</code> of the request * @return {@link SchedulingRequest.SchedulingRequestBuilder} */ @Public @Unstable public SchedulingRequestBuilder allocationTags(Set...
3.26
hadoop_EncodingState_checkParameters_rdh
/** * Check and validate decoding parameters, throw exception accordingly. * * @param inputs * input buffers to check * @param outputs * output buffers to check */ <T> void checkParameters(T[] inputs, T[] outputs) { if (inputs.length != encoder.getNumDataUnits()) { throw new HadoopIllegalArgumen...
3.26
hadoop_S3AInputPolicy_getFirstSupportedPolicy_rdh
/** * Scan the list of input policies, returning the first one supported. * * @param policies * list of policies. * @param defaultPolicy * fallback * @return a policy or the defaultPolicy, which may be null */ public static S3AInputPolicy getFirstSupportedPolicy(Collection<String> policies, @Nullable S3AInp...
3.26
hadoop_S3AInputPolicy_getPolicy_rdh
/** * Choose an access policy. * * @param name * strategy name from a configuration option, etc. * @param defaultPolicy * default policy to fall back to. * @return the chosen strategy */ public static S3AInputPolicy getPolicy(String name, @Nullable S3AInputPolicy defaultPolicy) { String trimmed = name.trim(...
3.26
hadoop_BalanceProcedureScheduler_remove_rdh
/** * Remove the job from scheduler if it finishes. */ public BalanceJob remove(BalanceJob job) { BalanceJob inner = findJob(job); if (inner == null) { return null; } else if (job.isJobDone()) { synchronized(this) { return jobSet.remove(inner); } } return null...
3.26
hadoop_BalanceProcedureScheduler_submit_rdh
/** * Submit the job. */ public synchronized void submit(BalanceJob job) throws IOException { if (!running.get()) { throw new IOException("Scheduler is shutdown."); } String jobId = m0(); job.setId(jobId); job.setScheduler(this); journal.saveJob(job); jobSet.put(job, job); running...
3.26
hadoop_BalanceProcedureScheduler_waitUntilDone_rdh
/** * Wait permanently until the job is done. */ public void waitUntilDone(BalanceJob job) { BalanceJob found = findJob(job); if ((found == null) || found.isJobDone()) { return; } while (!found.isJobDone()) { try { found.waitJobDone(); } catch (InterruptedExcep...
3.26
hadoop_BalanceProcedureScheduler_shutDown_rdh
/** * Shutdown the scheduler. */ public synchronized void shutDown() { if (!running.get()) { return; } running.set(false); readerThread.interrupt(); roosterThread.interrupt(); ...
3.26
hadoop_BalanceProcedureScheduler_getAllJobs_rdh
/** * Return all jobs in the scheduler. */ public Collection<BalanceJob> getAllJobs() { return jobSet.values(); }
3.26
hadoop_BalanceProcedureScheduler_writeJournal_rdh
/** * Save current status to journal. */ boolean writeJournal(BalanceJob job) { try { journal.saveJob(job); return true; } catch (Exception e) { f0.warn("Save procedure failed, add to recoverQueue. job=" + job, e); recoverQueue.add(job); return false; } }
3.26
hadoop_BalanceProcedureScheduler_isRunning_rdh
/** * The running state of the scheduler. */ public boolean isRunning() { return running.get(); }
3.26
hadoop_BalanceProcedureScheduler_init_rdh
/** * Init the scheduler. * * @param recoverJobs * whether to recover all the jobs from journal or not. */ public synchronized void init(boolean recoverJobs) throws IOException { this.runningQueue = new LinkedBlockingQueue<>(); this.delayQueue = new DelayQueue<>(); this.recoverQueue = new LinkedBlock...
3.26
hadoop_BalanceProcedureScheduler_recoverAllJobs_rdh
/** * Search all jobs and add them to recoverQueue. It's called once after the * scheduler starts. */ private void recoverAllJobs() throws IOException { BalanceJob[] jobs = journal.listAllJobs(); for (BalanceJob job : jobs) { recoverQueue.add(job); jobSet.put(job, job); f0.info("...
3.26
hadoop_BalanceProcedureScheduler_delay_rdh
/** * Delay this job. */ void delay(BalanceJob job, long delayInMilliseconds) { delayQueue.add(new DelayWrapper(job, delayInMilliseconds)); f0.info("Need delay {}ms. Add to delayQueue. job={}", delayInMilliseconds, job); }
3.26
hadoop_BalanceProcedureScheduler_shutDownAndWait_rdh
/** * Shutdown scheduler and wait at most timeout seconds for procedures to * finish. * * @param timeout * Wait at most timeout seconds for procedures to finish. */ public synchronized void shutDownAndWait(int timeout) { shutDown(); while (readerThread.isAlive()) { try { readerThr...
3.26
hadoop_HAProxyFactory_setAlignmentContext_rdh
/** * Set the alignment context to be used when creating new proxies using * this factory. Not all implementations will use this alignment context. */ default void setAlignmentContext(AlignmentContext alignmentContext) { // noop }
3.26
hadoop_XMLParser_transitionTo_rdh
/** * Attempt to transition to another state. * * @param nextState * The new state to transition to. * @throws IOException * If the transition from the current state to * {@code nextState} is not allowed. */ private void transitionTo(State nextState) throws IOException { if (currentState.m0(nextSt...
3.26
hadoop_XMLParser_parseLine_rdh
/** * Accept a single line of the XML file, and return a {@link BlockInfo} for * any blocks contained within that line. Update internal state dependent on * other XML values seen, e.g. the beginning of a file. * * @param line * The XML line to parse. * @return {@code BlockInfo}s for any blocks found. */ List<...
3.26
hadoop_XMLParser_valuesFromXMLString_rdh
/** * * @param xml * An XML string * @param field * The field whose value(s) should be extracted * @return List of the field's values. */ private static List<String> valuesFromXMLString(String xml, String field) { Matcher m = Pattern.compile(((("<" + field) + ">(.+?)</") + field) + ">").matcher(xml);...
3.26
hadoop_ObserverReadProxyProviderWithIPFailover_cloneDelegationTokenForVirtualIP_rdh
/** * Clone delegation token for the virtual IP. Specifically * clone the dt that corresponds to the name service uri, * to the configured corresponding virtual IP. * * @param conf * configuration * @param haURI * the ha uri, a name service id in this case. */ private void cloneDelegationTokenForVirtualIP(...
3.26
hadoop_PersistentCommitData_saveFile_rdh
/** * Save to a file. * This uses the createFile() API, which S3A supports for * faster load and declaring sequential access, always * * @param <T> * type of persistent format * @param fs * filesystem * @param path * path to save to * @param instance * data to save * @param serializer * serializ...
3.26
hadoop_PersistentCommitData_saveToStream_rdh
/** * Save to a file. * This uses the createFile() API, which S3A supports for * faster load and declaring sequential access, always * * @param <T> * type of persistent format * @param path * path to save to (used for logging) * @param instance * data to save * @param builder * builder already prepa...
3.26
hadoop_PersistentCommitData_load_rdh
/** * Load an instance from a status, then validate it. * This uses the openFile() API, which S3A supports for * faster load and declaring sequential access, always * * @param <T> * type of persistent format * @param fs * filesystem * @param status * status of file to load * @param serializer * seri...
3.26
hadoop_TimelineEvents_addEvent_rdh
/** * Add a single event to the existing event list * * @param event * a single event */ public void addEvent(TimelineEvent event) { events.add(event); }
3.26
hadoop_TimelineEvents_setEntityType_rdh
/** * Set the entity type * * @param entityType * the entity type */ public void setEntityType(String entityType) { this.entityType = entityType; }
3.26
hadoop_TimelineEvents_addEvents_rdh
/** * Add a list of {@link EventsOfOneEntity} instances into the existing list * * @param allEvents * a list of {@link EventsOfOneEntity} instances */ public void addEvents(List<EventsOfOneEntity> allEvents) { this.allEvents.addAll(allEvents); }
3.26
hadoop_TimelineEvents_getEvents_rdh
/** * Get a list of events * * @return a list of events */ @XmlElement(name = "events") public List<TimelineEvent> getEvents() { return events; }
3.26
hadoop_TimelineEvents_setEntityId_rdh
/** * Set the entity Id * * @param entityId * the entity Id */ public void setEntityId(String entityId) { this.entityId = entityId; }
3.26
hadoop_TimelineEvents_getAllEvents_rdh
/** * Get a list of {@link EventsOfOneEntity} instances * * @return a list of {@link EventsOfOneEntity} instances */ @XmlElement(name = "events") public List<EventsOfOneEntity> getAllEvents() { return allEvents; }
3.26
hadoop_TimelineEvents_getEntityType_rdh
/** * Get the entity type * * @return the entity type */ @XmlElement(name = "entitytype") public String getEntityType() { return entityType; }
3.26
hadoop_TimelineEvents_setEvents_rdh
/** * Set the event list to the given list of events * * @param events * a list of events */ public void setEvents(List<TimelineEvent> events) { this.events = events; }
3.26
hadoop_TimelineEvents_getEntityId_rdh
/** * Get the entity Id * * @return the entity Id */ @XmlElement(name = "entity") public String getEntityId() { return entityId; }
3.26
hadoop_ErasureCodingPolicyState_write_rdh
/** * Write to out. */ public void write(DataOutput out) throws IOException { out.writeByte(ordinal()); }
3.26
hadoop_ErasureCodingPolicyState_read_rdh
/** * Read from in. */ public static ErasureCodingPolicyState read(DataInput in) throws IOException { return fromValue(in.readByte()); }
3.26
hadoop_FederationStateStoreUtils_convertMasterKeyToDelegationKey_rdh
/** * Convert MasterKey to DelegationKey. * * @param masterKey * masterKey. * @return DelegationKey. */ private static DelegationKey convertMasterKeyToDelegationKey(RouterMasterKey masterKey) { ByteBuffer keyByteBuf = masterKey.getKeyBytes(); byte[] keyBytes = new byte[keyByteBuf.remaining()]; ke...
3.26
hadoop_FederationStateStoreUtils_logAndThrowStoreException_rdh
/** * Throws an <code>FederationStateStoreException</code> due to an error in * <code>FederationStateStore</code>. * * @param t * the throwable raised in the called class. * @param log * the logger interface. * @param errMsgFormat * the error message format string. * @param args * referenced by the f...
3.26
hadoop_FederationStateStoreUtils_setUsername_rdh
/** * Sets a specific username for <code>HikariDataSource</code> SQL connections. * * @param dataSource * the <code>HikariDataSource</code> connections * @param userNameDB * the value to set */ public static void setUsername(HikariDataSource dataSource, String userNameDB) { if (userNameDB != null) { ...
3.26
hadoop_FederationStateStoreUtils_encodeWritable_rdh
/** * Encode for Writable objects. * This method will convert the writable object to a base64 string. * * @param key * Writable Key. * @return base64 string. * @throws IOException * raised on errors performing I/O. */ public static String encodeWritable(Writable key) throws IOException { ByteArrayOutp...
3.26
hadoop_FederationStateStoreUtils_setProperty_rdh
/** * Sets a specific value for a specific property of * <code>HikariDataSource</code> SQL connections. * * @param dataSource * the <code>HikariDataSource</code> connections * @param property * the property to set * @param value * the value to set */ public static void setProperty(HikariDataSource dataS...
3.26
hadoop_FederationStateStoreUtils_setPassword_rdh
/** * Sets a specific password for <code>HikariDataSource</code> SQL connections. * * @param dataSource * the <code>HikariDataSource</code> connections * @param password * the value to set */ public static void setPassword(HikariDataSource dataSource, String password) { if (password != null) { ...
3.26
hadoop_FederationStateStoreUtils_decodeWritable_rdh
/** * Decode Base64 string to Writable object. * * @param w * Writable Key. * @param idStr * base64 string. * @throws IOException * raised on errors performing I/O. */ public static void decodeWritable(Writable w, String idStr) throws IOException {DataInputStream in = new DataInputStream(new ByteArrayInp...
3.26
hadoop_FederationStateStoreUtils_logAndThrowException_rdh
/** * Throws an exception due to an error in <code>FederationStateStore</code>. * * @param log * the logger interface * @param errMsg * the error message * @param t * the throwable raised in the called class. * @throws YarnEx...
3.26
hadoop_FederationStateStoreUtils_returnToPool_rdh
/** * Returns the SQL <code>FederationStateStore</code> connections to the pool. * * @param log * the logger interface * @param cstmt * the interface used to execute SQL stored procedures * @param conn * the SQL connection * @throws YarnException * on failure */ public static void returnToPool(Logger...
3.26
hadoop_FederationStateStoreUtils_logAndThrowInvalidInputException_rdh
/** * Throws an <code>FederationStateStoreInvalidInputException</code> due to an * error in <code>FederationStateStore</code>. * * @param log * the logger interface * @param errMsg * the error message * @throws YarnException * on failure */ public static void logAndThrowInvalidInputException(Logger log,...
3.26
hadoop_FederationStateStoreUtils_logAndThrowRetriableException_rdh
/** * Throws an <code>FederationStateStoreRetriableException</code> due to an * error in <code>FederationStateStore</code>. * * @param log * the logger interface. * @param errMsgFormat * the error message format string. * @param args * referenced by the format specifiers in the format string. * @throws ...
3.26
hadoop_TaskAttemptScanDirectoryStage_scanDirectoryTree_rdh
/** * Recursively scan a directory tree. * The manifest will contain all files to rename * (source and dest) and directories to create. * All files are processed before any of the subdirs are. * This helps in statistics gathering. * There's some optimizations which could be done with async * fetching of the iter...
3.26
hadoop_TaskAttemptScanDirectoryStage_executeStage_rdh
/** * Build the Manifest. * * @return the manifest * @throws IOException * failure. */ @Override protected TaskManifest executeStage(final Void arguments) throws IOException { final Path taskAttemptDir = getRequiredTaskAttemptDir(); final TaskManifest manifest = createTaskManifest(getStageConfig());...
3.26
hadoop_VisualizeStateMachine_getGraphFromClasses_rdh
/** * 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. ...
3.26
hadoop_VirtualRecordReader_nextKeyValue_rdh
// The map function per split should be invoked only once. @Override public boolean nextKeyValue() throws IOException, InterruptedException { if (numRows > 0) { numRows--; return true; } else { return false; } }
3.26
hadoop_User_getName_rdh
/** * Get the full name of the user. */ @Override public String getName() { return fullName; }
3.26
hadoop_User_getLastLogin_rdh
/** * Get the time of the last login. * * @return the number of milliseconds since the beginning of time. */ public long getLastLogin() { return lastLogin; }
3.26
hadoop_User_setLogin_rdh
/** * Set the login object * * @param login */ public void setLogin(LoginContext login) { this.login = login; }
3.26
hadoop_User_getLogin_rdh
/** * Returns login object * * @return login */ public LoginContext getLogin() { return login; }
3.26
hadoop_User_getShortName_rdh
/** * Get the user name up to the first '/' or '@' * * @return the leading part of the user name */ public String getShortName() { return shortName; }
3.26
hadoop_User_setLastLogin_rdh
/** * Set the last login time. * * @param time * the number of milliseconds since the beginning of time */ public void setLastLogin(long time) { lastLogin = time; }
3.26
hadoop_NativeBatchProcessor_flushOutput_rdh
/** * Called by native side, clean output buffer so native side can continue * processing */ private void flushOutput(int length) throws IOException { if (null != rawInputBuffer) { rawInputBuffer.position(0); rawInputBuffer.limit(length); if (null != dataReceiver) { try {data...
3.26
hadoop_MultipartUploaderBuilderImpl_permission_rdh
/** * Set permission for the file. */ @Override public B permission(@Nonnull final FsPermission perm) { checkNotNull(perm); permission = perm; return getThisBuilder(); }
3.26
hadoop_MultipartUploaderBuilderImpl_replication_rdh
/** * Set replication factor. */ @Override public B replication(short replica) { replication = replica; return getThisBuilder(); }
3.26
hadoop_MultipartUploaderBuilderImpl_create_rdh
/** * Create an FSDataOutputStream at the specified path. */ @Override public B create() { flags.add(CreateFlag.CREATE); return getThisBuilder(); }
3.26
hadoop_MultipartUploaderBuilderImpl_overwrite_rdh
/** * Set to true to overwrite the existing file. * Set it to false, an exception will be thrown when calling {@link #build()} * if the file exists. */ @Override public B overwrite(boolean overwrite) { if (overwrite) { flags.add(CreateFlag.OVERWRITE); } else { flags.remove(CreateFlag.OVER...
3.26
hadoop_MultipartUploaderBuilderImpl_append_rdh
/** * Append to an existing file (optional operation). */ @Override public B append() { flags.add(CreateFlag.APPEND); return getThisBuilder(); }
3.26
hadoop_MultipartUploaderBuilderImpl_checksumOpt_rdh
/** * Set checksum opt. */ @Override public B checksumOpt(@Nonnull final ChecksumOpt chksumOpt) { checkNotNull(chksumOpt); checksumOpt = chksumOpt; return getThisBuilder(); }
3.26
hadoop_AbfsOutputStreamStatisticsImpl_queueShrunk_rdh
/** * {@inheritDoc } * * Records the number of times AbfsOutputStream try to remove the completed * write operations from the beginning of write operation task queue. */ @Override public void queueShrunk() { ioStatisticsStore.incrementCounter(StreamStatisticNames.QUEUE_SHRUNK_OPS); }
3.26