Package org.apache.hadoop.hdfs.protocol.ClientProxyResponses

Examples of org.apache.hadoop.hdfs.protocol.ClientProxyResponses.PartialListingResponse


      fs.mkdirs(path);
      for (int i = 0; i < 3; i++) {
        fs.create(new Path(path, "newfile" + i));
        assertTrue(fs.exists(new Path(path, "newfile" + i)));
      }
      PartialListingResponse res = (PartialListingResponse) method.invoke(this, path);
      assertEquals(3, res.getListing().getFileStatusList().size());
      int i = 0;
      for (HdfsFileStatus file : res.getListing().getFileStatusList()) {
        assertEquals("newfile" + i++, file.getLocalName());
      }
      fs.delete(path, true, true);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.protocol.ClientProxyResponses.PartialListingResponse

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.