@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class Stat
extends Shell
Shell.CommandExecutor, Shell.ExitCodeException, Shell.OSType, Shell.ShellCommandExecutorENV_DEBUG_OPTS, ENV_HADOOP_HOME, ENV_HADOOP_OPTS, ENV_MAPR_JMX_OPTS, ENV_NAME_REGEX, FREEBSD, inheritParentEnv, isSetsidAvailable, LINK_COMMAND, LINUX, LOG, MAC, osType, OTHER, PPC_64, READ_LINK_COMMAND, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, SOLARIS, SYSPROP_HADOOP_HOME_DIR, timeOutInterval, TOKEN_SEPARATOR_REGEX, USER_NAME_COMMAND, WINDOWS, WINDOWS_MAX_SHELL_LENGHT, WINDOWS_MAX_SHELL_LENGTH, WindowsProcessLaunchLock, WINUTILS| Constructor | Description |
|---|---|
Stat(Path path,
long blockSize,
boolean deref,
FileSystem fs) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String[] |
getExecString() |
return an array containing the command name and its parameters.
|
FileStatus |
getFileStatus() |
|
static boolean |
isAvailable() |
Whether Stat is supported on the current platform.
|
protected void |
parseExecResult(java.io.BufferedReader lines) |
Parse the execution result.
|
appendScriptExtension, appendScriptExtension, bashQuote, checkIsBashSupported, checkUserExists, checkWindowsCommandLineLength, destroyAllShellProcesses, execCommand, execCommand, execCommand, getAllShells, getCheckProcessIsAliveCommand, getEnvironment, getEnvironmentVariableRegex, getExitCode, getGetPermissionCommand, getGroupsCommand, getGroupsForUserCommand, getGroupsIDForUserCommand, getHadoopHome, getMemlockLimit, getProcess, getQualifiedBin, getQualifiedBinPath, getReadlinkCommand, getRunScriptCommand, getSetOwnerCommand, getSetPermissionCommand, getSetPermissionCommand, getSignalKillCommand, getSymlinkCommand, getUsersForNetgroupCommand, getWaitingThread, getWinUtilsFile, getWinUtilsPath, hasWinutilsPath, isJava7OrAbove, isJavaVersionAtLeast, isTimedOut, run, setEnvironment, setWorkingDirectorypublic Stat(Path path, long blockSize, boolean deref, FileSystem fs) throws java.io.IOException
java.io.IOExceptionpublic FileStatus getFileStatus() throws java.io.IOException
java.io.IOExceptionpublic static boolean isAvailable()
protected java.lang.String[] getExecString()
ShellgetExecString in class Shellprotected void parseExecResult(java.io.BufferedReader lines)
throws java.io.IOException
ShellparseExecResult in class Shelllines - lines.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.