本文整理了Java中it.unimi.dsi.fastutil.ints.IntSet.iterator()
方法的一些代码示例,展示了IntSet.iterator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IntSet.iterator()
方法的具体详情如下:
包路径:it.unimi.dsi.fastutil.ints.IntSet
类名称:IntSet
方法名:iterator
暂无
代码示例来源:origin: apache/incubator-pinot
@Override
public byte[] serialize(IntSet intSet) {
int size = intSet.size();
byte[] bytes = new byte[Integer.BYTES + size * Integer.BYTES];
ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);
byteBuffer.putInt(size);
IntIterator iterator = intSet.iterator();
while (iterator.hasNext()) {
byteBuffer.putInt(iterator.nextInt());
}
return bytes;
}
代码示例来源:origin: apache/incubator-pinot
IntIterator iterator = matchingDictIds.iterator();
while (iterator.hasNext()) {
int matchingDictId = iterator.nextInt();
代码示例来源:origin: apache/incubator-pinot
IntIterator iterator = matchingDictIds.iterator();
while (iterator.hasNext()) {
if (!predicateEvaluator.applySV(iterator.nextInt())) {
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public int nonZeroElements() {
int res = 0;
IntIterator rowIter = indexesMap().keySet().iterator();
while (rowIter.hasNext()) {
int row = rowIter.nextInt();
res += indexesMap().get(row).size();
}
return res;
}
代码示例来源:origin: prestodb/presto
IntIterator iterator = pagesToCompact.iterator();
while (iterator.hasNext()) {
int pageId = iterator.nextInt();
代码示例来源:origin: com.linkedin.zoie/zoie-core
public IntIterator iterator()
{
return _set.iterator();
}
代码示例来源:origin: senseidb/zoie
public IntIterator intIterator() {
return _set.iterator();
}
代码示例来源:origin: senseidb/zoie
public IntIterator iterator() {
return _set.iterator();
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public IntIterator intIterator()
{
return _set.iterator();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
public IntIterator iterator() {
return _set.iterator();
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
public IntIterator intIterator() {
return _set.iterator();
}
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public void reset() {
iter = map.keySet().iterator();
}
};
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public Iterator<IntWritable> fastKeyIterator() {
return new ReusableIterator<IntIterator>(map.keySet().iterator()) {
@Override
public IntWritable next() {
reusableKey.set(iter.nextInt());
return reusableKey;
}
@Override
public void reset() {
iter = map.keySet().iterator();
}
};
}
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public void write(DataOutput out) throws IOException {
out.writeInt(set.size());
IntIterator iter = set.iterator();
while (iter.hasNext()) {
out.writeInt(iter.nextInt());
}
}
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public Iterable<IntWritable> getPartitionDestinationVertices(
int partitionId) {
Int2FloatOpenHashMap partitionMap = map.get(partitionId);
List<IntWritable> vertices =
Lists.newArrayListWithCapacity(partitionMap.size());
IntIterator iterator = partitionMap.keySet().iterator();
while (iterator.hasNext()) {
vertices.add(new IntWritable(iterator.nextInt()));
}
return vertices;
}
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public Iterable<IntWritable> getPartitionDestinationVertices(
int partitionId) {
Int2ObjectOpenHashMap<DataInputOutput> partitionMap =
map.get(partitionId);
List<IntWritable> vertices =
Lists.newArrayListWithCapacity(partitionMap.size());
IntIterator iterator = partitionMap.keySet().iterator();
while (iterator.hasNext()) {
vertices.add(new IntWritable(iterator.nextInt()));
}
return vertices;
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Nonnull
public int[] getUsers() {
final int size = rows.size();
final int[] keys = new int[size];
final IntIterator itor = rows.keySet().iterator();
for (int i = 0; i < size; i++) {
if (!itor.hasNext()) {
throw new IllegalStateException();
}
int key = itor.nextInt();
keys[i] = key;
}
return keys;
}
代码示例来源:origin: SquidDev-CC/plethora
private void clearImpl(IntSet objects) {
for (IntIterator iterator = objects.iterator(); iterator.hasNext(); ) {
int childId = iterator.nextInt();
removeImpl(childId);
iterator.remove();
}
}
代码示例来源:origin: SquidDev-CC/plethora
@Override
@SideOnly(Side.CLIENT)
public void draw(CanvasClient canvas) {
IntSet children = canvas.getChildren(id());
if (children == null) return;
GlStateManager.pushMatrix();
GlStateManager.translate(position.x, position.y, 0);
canvas.drawChildren(children.iterator());
GlStateManager.popMatrix();
}
}
代码示例来源:origin: SquidDev-CC/plethora
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onWorldRender(RenderWorldLastEvent event) {
CanvasClient canvas = getCanvas();
if (canvas == null) return;
synchronized (canvas) {
canvas.drawChildren(canvas.getChildren(ID_3D).iterator());
}
GlStateManager.color(1.0f, 1.0f, 1.0f);
GlStateManager.enableTexture2D();
GlStateManager.enableCull();
GlStateManager.enableDepth();
GlStateManager.disableAlpha();
}
}
内容来源于网络,如有侵权,请联系作者删除!