本文整理了Java中org.apache.gobblin.util.guid.Guid.fromHasGuid()
方法的一些代码示例,展示了Guid.fromHasGuid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Guid.fromHasGuid()
方法的具体详情如下:
包路径:org.apache.gobblin.util.guid.Guid
类名称: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)));
}
内容来源于网络,如有侵权,请联系作者删除!