本文整理汇总了Java中org.apache.hadoop.fs.contract.ContractTestUtils.createAndVerifyFile方法的典型用法代码示例。如果您正苦于以下问题:Java ContractTestUtils.createAndVerifyFile方法的具体用法?Java ContractTestUtils.createAndVerifyFile怎么用?Java ContractTestUtils.createAndVerifyFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.fs.contract.ContractTestUtils
的用法示例。
在下文中一共展示了ContractTestUtils.createAndVerifyFile方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testOpenCreate
import org.apache.hadoop.fs.contract.ContractTestUtils; //导入方法依赖的package包/类
@Test
public void testOpenCreate() throws IOException {
Path dir = new Path("/tests3a");
ContractTestUtils.createAndVerifyFile(fs, dir, 1024);
ContractTestUtils.createAndVerifyFile(fs, dir, 5 * 1024 * 1024);
ContractTestUtils.createAndVerifyFile(fs, dir, 20 * 1024 * 1024);
/*
Enable to test the multipart upload
try {
ContractTestUtils.createAndVerifyFile(fs, dir,
(long)6 * 1024 * 1024 * 1024);
} catch (IOException e) {
fail(e.getMessage());
}
*/
}
示例2: testFastMultiPartUpload
import org.apache.hadoop.fs.contract.ContractTestUtils; //导入方法依赖的package包/类
@Test
public void testFastMultiPartUpload() throws Exception {
conf.setBoolean(Constants.FAST_UPLOAD, true);
fs = S3ATestUtils.createTestFileSystem(conf);
ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 16 * 1024 *
1024);
}
示例3: testRegularUpload
import org.apache.hadoop.fs.contract.ContractTestUtils; //导入方法依赖的package包/类
@Test
public void testRegularUpload() throws IOException {
ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 1024 * 1024);
}
示例4: testMultiPartUpload
import org.apache.hadoop.fs.contract.ContractTestUtils; //导入方法依赖的package包/类
@Test
public void testMultiPartUpload() throws IOException {
ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 6 * 1024 *
1024);
}
示例5: testRegularMultiPartUpload
import org.apache.hadoop.fs.contract.ContractTestUtils; //导入方法依赖的package包/类
@Test
public void testRegularMultiPartUpload() throws Exception {
fs = S3ATestUtils.createTestFileSystem(conf);
ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 16 * 1024 *
1024);
}