gpt4 book ai didi

alluxio.client.WriteType.toString()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 19:07:05 26 4
gpt4 key购买 nike

本文整理了Java中alluxio.client.WriteType.toString()方法的一些代码示例,展示了WriteType.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WriteType.toString()方法的具体详情如下:
包路径:alluxio.client.WriteType
类名称:WriteType
方法名:toString

WriteType.toString介绍

暂无

代码示例

代码示例来源:origin: Alluxio/alluxio

/**
  * Runs the task.
  *
  * @param configSource {@link MoveConfig} source
  * @param commandSource {@link MoveCommand} source
  * @param commandDestination {@link MoveCommand} destination
  * @param writeType {@link MoveConfig} writeType
  */
 private void runTask(String configSource, String commandSource, String commandDestination,
   WriteType writeType) throws Exception {
  new MoveDefinition(mMockFileSystemContext, mMockFileSystem).runTask(
    new MoveConfig(configSource, "", writeType.toString(), false),
    Lists.newArrayList(new MoveCommand(commandSource, commandDestination)),
    new JobWorkerContext(1, 1, mMockUfsManager));
 }
}

代码示例来源:origin: Alluxio/alluxio

/**
 * Tests that building an {@link OutStreamOptions} with the defaults works.
 */
@Test
public void defaults() throws IOException {
 AlluxioStorageType alluxioType = AlluxioStorageType.STORE;
 UnderStorageType ufsType = UnderStorageType.SYNC_PERSIST;
 mConf.set(PropertyKey.USER_BLOCK_SIZE_BYTES_DEFAULT, "64MB");
 mConf.set(PropertyKey.USER_FILE_WRITE_TYPE_DEFAULT, WriteType.CACHE_THROUGH.toString());
 mConf.set(PropertyKey.USER_FILE_WRITE_TIER_DEFAULT, Constants.LAST_TIER);
 OutStreamOptions options = OutStreamOptions.defaults(mConf);
 assertEquals(alluxioType, options.getAlluxioStorageType());
 assertEquals(64 * Constants.MB, options.getBlockSizeBytes());
 assertTrue(options.getLocationPolicy() instanceof LocalFirstPolicy);
 assertEquals("test_user", options.getOwner());
 assertEquals("test_group", options.getGroup());
 assertEquals(ModeUtils.applyFileUMask(Mode.defaults(),
   mConf.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)), options.getMode());
 assertEquals(Constants.NO_TTL, options.getTtl());
 assertEquals(TtlAction.DELETE, options.getTtlAction());
 assertEquals(ufsType, options.getUnderStorageType());
 assertEquals(WriteType.CACHE_THROUGH, options.getWriteType());
 assertEquals(Constants.LAST_TIER, options.getWriteTier());
}

代码示例来源:origin: org.alluxio/alluxio-core-client-internal

/**
  * @return the name : value pairs for all the fields
  */
 @Override
 public String toString() {
  StringBuilder sb = new StringBuilder("OutStreamOptions(");
  sb.append(super.toString()).append(", BlockSizeBytes: ").append(mBlockSizeBytes);
  sb.append(", TTL: ").append(mTtl);
  sb.append(", LocationPolicy: ").append(mLocationPolicy.toString());
  sb.append(", WriteType: ").append(mWriteType.toString());
  sb.append(")");
  return sb.toString();
 }
}

代码示例来源:origin: org.alluxio/alluxio-core-client-internal

/**
 * @return the name : value pairs for all the fields
 */
@Override
public String toString() {
 StringBuilder sb = new StringBuilder("CreateFileOptions(");
 sb.append(super.toString()).append(", BlockSizeBytes: ").append(mBlockSizeBytes);
 sb.append(", TTL: ").append(mTtl);
 sb.append(", Location Policy: ").append(mLocationPolicy);
 sb.append(", WriteType: ").append(mWriteType.toString());
 sb.append(")");
 return sb.toString();
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com