org.apache.gobblin.util.guid.Guid.fromHasGuid()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(142)

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

Guid.fromHasGuid介绍

[英]Generate a Guid for an array of HasGuid.
[中]为HasGuid数组生成Guid。

代码示例

代码示例来源:origin: apache/incubator-gobblin

/**
 * Creates a new {@link Guid} which is a unique, replicable representation of the pair (this, objs).
 * @param objs an array of {@link HasGuid}.
 * @return a new {@link Guid}.
 * @throws IOException
 */
public Guid append(HasGuid... objs) throws IOException {
 if (objs == null || objs.length == 0) {
  return this;
 }
 return fromHasGuid(ArrayUtils.add(objs, new SimpleHasGuid(this)));
}

代码示例来源:origin: apache/incubator-gobblin

CopyConfiguration.builder(fs, state.getProperties()).preserve(PreserveAttributes.fromMnemonicString("")).build()).build();
CopySource.setWorkUnitGuid(state, Guid.fromHasGuid(copyableFile));

代码示例来源:origin: org.apache.gobblin/gobblin-utility

/**
 * Creates a new {@link Guid} which is a unique, replicable representation of the pair (this, objs).
 * @param objs an array of {@link HasGuid}.
 * @return a new {@link Guid}.
 * @throws IOException
 */
public Guid append(HasGuid... objs) throws IOException {
 if (objs == null || objs.length == 0) {
  return this;
 }
 return fromHasGuid(ArrayUtils.add(objs, new SimpleHasGuid(this)));
}

相关文章