当前位置: 首页>>代码示例>>Java>>正文


Java TestWritable.testWritable方法代码示例

本文整理汇总了Java中org.apache.hadoop.io.TestWritable.testWritable方法的典型用法代码示例。如果您正苦于以下问题:Java TestWritable.testWritable方法的具体用法?Java TestWritable.testWritable怎么用?Java TestWritable.testWritable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.hadoop.io.TestWritable的用法示例。


在下文中一共展示了TestWritable.testWritable方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testWritable

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testWritable() throws Exception {
  TestWritable.testWritable(new BlockTokenIdentifier());
  BlockTokenSecretManager sm = new BlockTokenSecretManager(
      blockKeyUpdateInterval, blockTokenLifetime, 0, "fake-pool", null);
  TestWritable.testWritable(generateTokenId(sm, block1,
      EnumSet.allOf(BlockTokenSecretManager.AccessMode.class)));
  TestWritable.testWritable(generateTokenId(sm, block2,
      EnumSet.of(BlockTokenSecretManager.AccessMode.WRITE)));
  TestWritable.testWritable(generateTokenId(sm, block3,
      EnumSet.noneOf(BlockTokenSecretManager.AccessMode.class)));
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:TestBlockToken.java

示例2: testWritable

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testWritable() throws Exception {
  TestWritable.testWritable(new BlockTokenIdentifier());
  BlockTokenSecretManager sm = new BlockTokenSecretManager(
      blockKeyUpdateInterval, blockTokenLifetime, 0, 1, "fake-pool", null);
  TestWritable.testWritable(generateTokenId(sm, block1,
      EnumSet.allOf(BlockTokenIdentifier.AccessMode.class)));
  TestWritable.testWritable(generateTokenId(sm, block2,
      EnumSet.of(BlockTokenIdentifier.AccessMode.WRITE)));
  TestWritable.testWritable(generateTokenId(sm, block3,
      EnumSet.noneOf(BlockTokenIdentifier.AccessMode.class)));
}
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:13,代码来源:TestBlockToken.java

示例3: testReadWrite

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testReadWrite() throws Exception {
  
  MockQuery baseQuery = dataStore.newQuery();
  baseQuery.setStartKey("start");
  baseQuery.setLimit(42);
  
  PartitionQueryImpl<String, MockPersistent> 
    query = new PartitionQueryImpl<>(baseQuery);
  
  TestWritable.testWritable(query);
}
 
开发者ID:jianglibo,项目名称:gora-boot,代码行数:13,代码来源:TestPartitionQueryImpl.java

示例4: testReadWrite

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testReadWrite() throws Exception {
  
  List<PartitionQuery<String, MockPersistent>> partitions = 
    getPartitions();

  for(PartitionQuery<String, MockPersistent> partition : partitions) {
    GoraInputSplit split = new GoraInputSplit(conf, partition);
    TestWritable.testWritable(split);
  }
}
 
开发者ID:jianglibo,项目名称:gora-boot,代码行数:12,代码来源:TestGoraInputSplit.java

示例5: testWritable

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testWritable() throws Exception {
  TestWritable.testWritable(new BlockTokenIdentifier());
  BlockTokenSecretManager sm =
      new NameNodeBlockTokenSecretManager(blockKeyUpdateInterval,
          blockTokenLifetime, "fake-pool", null, new MyLeaderNameSystem());
  TestWritable.testWritable(generateTokenId(sm, block1,
      EnumSet.allOf(BlockTokenSecretManager.AccessMode.class)));
  TestWritable.testWritable(generateTokenId(sm, block2,
      EnumSet.of(BlockTokenSecretManager.AccessMode.WRITE)));
  TestWritable.testWritable(generateTokenId(sm, block3,
      EnumSet.noneOf(BlockTokenSecretManager.AccessMode.class)));
}
 
开发者ID:hopshadoop,项目名称:hops,代码行数:14,代码来源:TestBlockToken.java

示例6: testWritable

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testWritable() throws Exception {
  TestWritable.testWritable(new BlockTokenIdentifier());
  BlockTokenSecretManager sm = new BlockTokenSecretManager(true,
      blockKeyUpdateInterval, blockTokenLifetime);
  TestWritable.testWritable(generateTokenId(sm, block1, EnumSet
      .allOf(BlockTokenSecretManager.AccessMode.class)));
  TestWritable.testWritable(generateTokenId(sm, block2, EnumSet
      .of(BlockTokenSecretManager.AccessMode.WRITE)));
  TestWritable.testWritable(generateTokenId(sm, block3, EnumSet
      .noneOf(BlockTokenSecretManager.AccessMode.class)));
}
 
开发者ID:Seagate,项目名称:hadoop-on-lustre,代码行数:13,代码来源:TestBlockToken.java

示例7: testReadWrite

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
@Test
public void testReadWrite() throws Exception {
  
  MockQuery baseQuery = dataStore.newQuery();
  baseQuery.setStartKey("start");
  baseQuery.setLimit(42);
  
  PartitionQueryImpl<String, MockPersistent> 
    query = new PartitionQueryImpl<String, MockPersistent>(baseQuery);
  
  TestWritable.testWritable(query);
}
 
开发者ID:galaxyeye,项目名称:gora-0.3-simplified,代码行数:13,代码来源:TestPartitionQueryImpl.java

示例8: testWritable

import org.apache.hadoop.io.TestWritable; //导入方法依赖的package包/类
/** test Writable */
public void testWritable() throws Exception {
  UnixUserGroupInformation ugi = new UnixUserGroupInformation(
      USER_NAME, GROUP_NAMES);
  TestWritable.testWritable(ugi, new Configuration());
}
 
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:7,代码来源:TestUnixUserGroupInformation.java


注:本文中的org.apache.hadoop.io.TestWritable.testWritable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。