Package com.hdfsTools.impl

Examples of com.hdfsTools.impl.checkImpl


   * @return List<FileStatus>
   * @throws IOException
   */
  public List<FileStatus> doList(String directory) throws IOException {

    checkDao check = new checkImpl();
    List<FileStatus> list = check.doList(directory, getConf());
    for (FileStatus file : list) {

      System.out.println("id:" + file.getPath().hashCode() + "----path:"
          + file.getPath() + "-----name:" + file.getPath().getName());
    }
View Full Code Here


   * @return
   * @throws IOException
   */
  public List<FileStatus> doListFile(String directory) throws IOException {

    checkDao check = new checkImpl();
    List<FileStatus> list = check.doListFile(directory, getConf());
    for (FileStatus file : list) {
      System.out.println("id:" + file.getPath().hashCode() + "path:"
          + file.getPath() + "name:" + file.getPath().getName());
    }
    return list;
View Full Code Here

   * @throws IOException
   */
  public List<FileStatus> doListDirectory(String directory)
      throws IOException {

    checkDao check = new checkImpl();
    return check.doListDirectory(directory, getConf());
  }
View Full Code Here

   * @throws IOException
   */

  public long getfileSize(String path) throws IOException {

    checkDao check = new checkImpl();
    long size = check.getfileSize(path, getConf());
    System.out.println("the size is:" + size);
    return size;
  }
View Full Code Here

TOP

Related Classes of com.hdfsTools.impl.checkImpl

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.