AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / Big Data / Sistema HDFS
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<hdfsConnection variable>.Rename (Function)
In french: <Variable hdfsConnexion>.Renomme
Renames a file or a directory found on a Hadoop server.
Example
// Connection
MyConnection is hdfsConnection
MyConnection.namenode = "MyServer"
MyConnection.User = "Admin"
MyConnection.OpenConnection()
// Rename the file on the server
MyConnection.Rename("/tmp/former.txt", "/tmp/new.txt")
Syntax
<Result> = <Connection>.Renames(<Former name> , <New name> [, <Options>])
<Result>: Boolean
  • True if the rename operation was performed,
  • False if a problem occurs. ErrorInfo is used to identify the error.
<Connection>: hdfsConnection variable
Name of the hdfsConnection variable that corresponds to connection to the Hadoop server.
<Former name>: Character string
Absolute path of the file or directory to rename on the Hadoop server. This path is case sensitive.
<New name>: Character string
New absolute path of the file or directory on the Hadoop server. This path is case sensitive.
<Options>: Optional Integer constant
Options for renaming:
hdfsDefault
(Default value)
If the destination file already exists, the renaming is not performed.
hdfsOverwriteIf the destination file already exists, it is replaced by the renamed file.
Component: wd290big.dll
Versión mínima requerida
  • Versión 24
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

Señalar un error o enviar una sugerencia | Ayuda local