本文整理汇总了Java中org.cxio.metadata.MetaDataElement.setName方法的典型用法代码示例。如果您正苦于以下问题:Java MetaDataElement.setName方法的具体用法?Java MetaDataElement.setName怎么用?Java MetaDataElement.setName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.cxio.metadata.MetaDataElement
的用法示例。
在下文中一共展示了MetaDataElement.setName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCXMataDataTemplateForAspects
import org.cxio.metadata.MetaDataElement; //导入方法依赖的package包/类
public MetaDataCollection createCXMataDataTemplateForAspects(Collection<String> aspects) throws NdexException {
MetaDataCollection md= new MetaDataCollection();
for (String aspectName : aspects) {
String aspectVersion = NdexSupportedAspects.get(aspectName);
if ( aspectVersion == null)
throw new NdexException ("Aspect " + aspectName + " is not an NDEx supported aspect.");
MetaDataElement metadataElement = new MetaDataElement();
metadataElement .setName(aspectName);
metadataElement .setVersion(aspectVersion);
metadataElement .setConsistencyGroup(consistencyGroupId);
if ( aspectName .equals(NdexNetworkStatus.ASPECT_NAME))
metadataElement.setElementCount(1L);
md.add(metadataElement );
}
return md;
}
示例2: createCXMataDataTemplate
import org.cxio.metadata.MetaDataElement; //导入方法依赖的package包/类
public MetaDataCollection createCXMataDataTemplate() {
MetaDataCollection md= new MetaDataCollection();
for ( Map.Entry<String, String> e: NdexSupportedAspects.entrySet()) {
MetaDataElement metadataElement = new MetaDataElement();
metadataElement .setName(e.getKey());
metadataElement .setVersion(e.getValue());
metadataElement .setConsistencyGroup(consistencyGroupId);
md.add(metadataElement );
}
md.setElementCount(NdexNetworkStatus.ASPECT_NAME, 1l);
return md;
}
示例3: getMetaDataElementTempleteFromSrc
import org.cxio.metadata.MetaDataElement; //导入方法依赖的package包/类
private MetaDataElement getMetaDataElementTempleteFromSrc (String aspectName) {
MetaDataElement old = this.srcMetaDataCollection.getMetaDataElement(aspectName);
// if ( old == null)
// throw new NdexException("MetaData " + aspectName + " is missing in network " + this.networkId.toString());
MetaDataElement result = new MetaDataElement();
result.setConsistencyGroup(old !=null? old.getConsistencyGroup() : Long.valueOf(1l));
result.setName(aspectName);
result.setVersion(old!=null? old.getVersion() : "1.0");
// result.setLastUpdate(currentTime);
return result;
}