本文整理了Java中scala.collection.immutable.Map.size()
方法的一些代码示例,展示了Map.size()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Map.size()
方法的具体详情如下:
包路径:scala.collection.immutable.Map
类名称:Map
方法名:size
暂无
代码示例来源:origin: apache/samza
if (asyncTaskCount > 0 && asyncTaskCount < taskInstances.size()) {
throw new SamzaException("Mixing StreamTask and AsyncStreamTask is not supported");
代码示例来源:origin: org.apache.samza/samza-core_2.12
if (asyncTaskCount > 0 && asyncTaskCount < taskInstances.size()) {
throw new SamzaException("Mixing StreamTask and AsyncStreamTask is not supported");
代码示例来源:origin: org.apache.samza/samza-core_2.11
if (asyncTaskCount > 0 && asyncTaskCount < taskInstances.size()) {
throw new SamzaException("Mixing StreamTask and AsyncStreamTask is not supported");
代码示例来源:origin: org.apache.samza/samza-core
if (asyncTaskCount > 0 && asyncTaskCount < taskInstances.size()) {
throw new SamzaException("Mixing StreamTask and AsyncStreamTask is not supported");
代码示例来源:origin: org.apache.samza/samza-core_2.10
if (asyncTaskCount > 0 && asyncTaskCount < taskInstances.size()) {
throw new SamzaException("Mixing StreamTask and AsyncStreamTask is not supported");
代码示例来源:origin: ch.epfl.gsn/gsn-core
public static AddressBean address(WrapperConf w){
KeyValueImp [] p=new KeyValueImp[w.params().size()];
Iterable<String> keys=JavaConversions.asJavaIterable(w.params().keys());
int i=0;
for (String k:keys){
p[i]=new KeyValueImp(k,w.params().apply(k));
i++;
}
AddressBean a = new AddressBean(w.wrapper(),p);
if(w.partialKey().isDefined()){
a.setPartialOrderKey(w.partialKey().get());
}
DataField [] out=new DataField[(w.output().size())];
for (int j=0;j<out.length;j++){
out[j]=dataField(w.output().apply(j));
}
a.setVsconfig(out);
return a;
}
代码示例来源:origin: ch.epfl.gsn/gsn-core
v.setOutputStreamRate(((Integer)vs.processing().rate().get()));
v.setPriority(vs.priority());
KeyValueImp [] addr=new KeyValueImp[vs.address().size()];
Iterable<String> keys=JavaConversions.asJavaIterable(vs.address().keys());
int i=0;
内容来源于网络,如有侵权,请联系作者删除!