Package org.apache.hadoop.fs.shell

Examples of org.apache.hadoop.fs.shell.PathData


    MockFileSystem.reset();
    fs = new MockFileSystem();
    conf = fs.getConf();
    fileStatus = mock(FileStatus.class);
    fs.setFileStatus("test", fileStatus);
    item = new PathData("/one/two/test", conf);

    user = new User();
    addArgument(user, "user");
    user.initialise(new FindOptions());
  }
View Full Code Here


    FileStatus fileStatus;
   
    fileStatus = mock(FileStatus.class);
    when(fileStatus.getPermission()).thenReturn(FsPermission.valueOf("-rwxrwxrwx"));
    fs.setFileStatus("rwxrwxrwx", fileStatus);
    rwxrwxrwx = new PathData("rwxrwxrwx", fs.getConf());

    fileStatus = mock(FileStatus.class);
    when(fileStatus.getPermission()).thenReturn(FsPermission.valueOf("-rwx------"));
    fs.setFileStatus("rwx______", fileStatus);
    rwx______ = new PathData("rwx______", fs.getConf());

    fileStatus = mock(FileStatus.class);
    when(fileStatus.getPermission()).thenReturn(FsPermission.valueOf("-r--r--r--"));
    fs.setFileStatus("r__r__r__", fileStatus);
    r__r__r__ = new PathData("r__r__r__", fs.getConf());

    fileStatus = mock(FileStatus.class);
    when(fileStatus.getPermission()).thenReturn(FsPermission.valueOf("-rwxr-----"));
    fs.setFileStatus("rwxr_____", fileStatus);
    rwxr_____ = new PathData("rwxr_____", fs.getConf());

    fileStatus = mock(FileStatus.class);
    when(fileStatus.getPermission()).thenReturn(FsPermission.valueOf("---x-w--wx"));
    fs.setFileStatus("__x_w__wx", fileStatus);
    __x_w__wx = new PathData("__x_w__wx", fs.getConf());
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.fs.shell.PathData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.