org.apache.hadoop.hive.ql.txn.compactor.Worker.setName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(242)

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

Worker.setName介绍

暂无

代码示例

代码示例来源:origin: apache/hive

@Override
public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception {
 super.init(stop, looped);
 StringBuilder name = new StringBuilder(hostname());
 name.append("-");
 name.append(getId());
 this.workerName = name.toString();
 setName(name.toString());
}

代码示例来源:origin: apache/drill

@Override
public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException {
 super.init(stop, looped);
 StringBuilder name = new StringBuilder(hostname());
 name.append("-");
 name.append(getId());
 this.name = name.toString();
 setName(name.toString());
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException {
 super.init(stop, looped);
 StringBuilder name = new StringBuilder(hostname());
 name.append("-");
 name.append(getId());
 this.name = name.toString();
 setName(name.toString());
}

代码示例来源:origin: stackoverflow.com

public void onResponse(String response) { 
       Log.d("2pg",response); 
       Toast.makeText(getApplicationContext(),response,Toast.LENGTH_LONG).show(); 
       recyclerView = (RecyclerView) findViewById(R.id.recyclerView); 
       //recyclerView.setAdapter(new CardAdapter(listWorkers, this)); 
       recyclerView.setHasFixedSize(true); 
       layoutManager = new LinearLayoutManager(getApplicationContext()); 
       recyclerView.setLayoutManager(layoutManager); 
       //Finally initializing our adapter 
       adapter = new CardAdapter(listWorkers, getApplicationContext()); 
       recyclerView.setAdapter(adapter); 
       getData();
     } 
public void getData(){
  Worker worker=new Worker(); 
  worker.setImageUrl("http://vorkal.com/images/vorkal_cover.PNG"); 
  worker.setName("name"); 
  worker.setLocation("location"); 
  worker.setRating(5); 
  worker.setId(1); 
  worker.setPhone(784512369); 
  worker.setOccupation("occupation"); 
  worker.setPrice(20); 
  worker.setReview("Review"); 
  listWorkers.add(worker); 
  adapter.notifydatasetchanged()
}

相关文章