Class BasePinotFS

    • Constructor Detail

      • BasePinotFS

        public BasePinotFS()
    • Method Detail

      • move

        public boolean move​(URI srcUri,
                            URI dstUri,
                            boolean overwrite)
                     throws IOException
        Description copied from interface: PinotFS
        Moves the file or directory from the src to dst. Does not keep the original file. If the dst has parent directories that haven't been created, this method will create all the necessary parent directories. Note: In Pinot we recommend the full paths of both src and dst be specified. For example, if a file /a/b/c is moved to a file /x/y/z, in the case of overwrite, the directory /a/b still exists, but will not contain the file 'c'. Instead, /x/y/z will contain the contents of 'c'. If src is a directory /a/b which contains two files /a/b/c and /a/b/d, and the dst is /x/y, the result would be that the directory /a/b under /a gets removed and dst directory contains two files which is /x/y/c and /x/y/d. If src is a directory /a/b needs to be moved under another directory /x/y, please specify the dst to /x/y/b.
        Specified by:
        move in interface PinotFS
        Parameters:
        srcUri - URI of the original file
        dstUri - URI of the final file location
        overwrite - true if we want to overwrite the dstURI, false otherwise
        Returns:
        true if move is successful
        Throws:
        IOException - on IO failure