cascading.tap.Tap.createResource()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(85)

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

Tap.createResource介绍

[英]Method createResource creates the underlying resource.
[中]方法createResource创建基础资源。

代码示例

代码示例来源:origin: elastic/elasticsearch-hadoop

@Override
public boolean createResource(Object conf) throws IOException {
  return actualTap.createResource(conf);
}

代码示例来源:origin: cwensel/cascading

@Override
public boolean createResource( Config conf ) throws IOException
 {
 return parent.createResource( conf );
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean createResource( FlowProcess<? extends Config> flowProcess ) throws IOException
 {
 return original.createResource( flowProcess );
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean createResource( Config conf ) throws IOException
 {
 return original.createResource( conf );
 }

代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop

@Override
public boolean createResource(Object conf) throws IOException {
  return actualTap.createResource(conf);
}

代码示例来源:origin: cwensel/cascading

@Override
public boolean createResource( TConfig conf ) throws IOException
 {
 return original.createResource( configProvider.apply( conf ) );
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean createResource( FlowProcess<? extends TConfig> flowProcess ) throws IOException
 {
 return original.createResource( processProvider.apply( flowProcess ) );
 }

代码示例来源:origin: cwensel/cascading

/**
 * Method createResource creates the underlying resource.
 *
 * @param flowProcess of type FlowProcess
 * @return boolean
 * @throws IOException when there is an error making directories
 */
public boolean createResource( FlowProcess<? extends Config> flowProcess ) throws IOException
 {
 return createResource( flowProcess.getConfig() );
 }

代码示例来源:origin: cwensel/cascading

@Override
public boolean createResource( Config conf ) throws IOException
 {
 for( Tap tap : getTaps() )
  {
  if( !tap.createResource( conf ) )
   return false;
  }
 return true;
 }

相关文章