Tabnine Logo
it.unimi.dsi.fastutil.ints
Code IndexAdd Tabnine to your IDE (free)

How to use it.unimi.dsi.fastutil.ints

Best Java code snippets using it.unimi.dsi.fastutil.ints (Showing top 20 results out of 882)

origin: apache/incubator-druid

public static IntList toIntList(IntIterator iterator)
{
 final IntList integers = new IntArrayList();
 while (iterator.hasNext()) {
  integers.add(iterator.nextInt());
 }
 return IntLists.unmodifiable(integers);
}
origin: prestodb/presto

public FeatureUnitNormalizer()
{
  mins = new Int2DoubleOpenHashMap();
  maxs = new Int2DoubleOpenHashMap();
  mins.defaultReturnValue(Double.POSITIVE_INFINITY);
  maxs.defaultReturnValue(Double.NEGATIVE_INFINITY);
}
origin: prestodb/presto

  @Override
  public int size()
  {
    return positionLinks.size();
  }
}
origin: apache/incubator-pinot

private static int[] filterInts(IntSet intSet, int[] source) {
 IntList intList = new IntArrayList();
 for (int value : source) {
  if (intSet.contains(value)) {
   intList.add(value);
  }
 }
 if (intList.size() == source.length) {
  return source;
 } else {
  return intList.toIntArray();
 }
}
origin: apache/incubator-druid

private void putSketch(final ByteBuffer buffer, final int position, final UpdateDoublesSketch sketch)
{
 Int2ObjectMap<UpdateDoublesSketch> map = sketches.computeIfAbsent(buffer, buf -> new Int2ObjectOpenHashMap<>());
 map.put(position, sketch);
}
origin: apache/incubator-pinot

public IntToIdMap() {
 _valueToIdMap = new Int2IntOpenHashMap();
 _valueToIdMap.defaultReturnValue(INVALID_KEY);
 _idToValueMap = new IntArrayList();
}
origin: prestodb/presto

  private IntArrayList generatePositionList(int numRows, int numPositions)
  {
    IntArrayList positions = new IntArrayList(numPositions);
    for (int i = 0; i < numPositions; i++) {
      positions.add((7 * i + 3) % numRows);
    }
    Collections.sort(positions);
    return positions;
  }
}
origin: prestodb/presto

  private void initializeEntryIndicesList(int entryCount)
  {
    entryIndicesList = new IntList[entryCount];
    for (int i = 0; i < entryIndicesList.length; i++) {
      entryIndicesList[i] = new IntArrayList();
    }
  }
}
origin: guoguibing/librec

  @Override
  public AbstractInt2ObjectMap.BasicEntry<IntArrayList> next() {
    int key = setIerator.nextInt();
    IntArrayList value = dataTable.get(key);
    return new AbstractInt2ObjectMap.BasicEntry<>(key, value);
  }
}
origin: apache/incubator-druid

@Override
public Int2ObjectMap<Aggregator[]> makeDimExtractionAggregateStore()
{
 return new Int2ObjectOpenHashMap<>();
}
origin: prestodb/presto

@Override
public Optional<Node> getAssignedNode(int bucketedId)
{
  return Optional.ofNullable(bucketToNode.get(bucketedId));
}
origin: apache/incubator-druid

@Override
public boolean hasNext()
{
 return baseIterator.hasNext();
}
origin: prestodb/presto

private void readValues(BlockBuilder blockBuilder, int valuesToRead, Type type, IntList definitionLevels, IntList repetitionLevels)
{
  processValues(valuesToRead, ignored -> {
    readValue(blockBuilder, type);
    definitionLevels.add(definitionLevel);
    repetitionLevels.add(repetitionLevel);
  });
}
origin: apache/incubator-druid

@Override
public void close()
{
 mutableBitmapCollection.clear();
}
origin: apache/incubator-druid

@Override
public int getValueCardinality()
{
 return forwardMapping.size();
}
origin: prestodb/presto

private void clearEntryIndices(int entryCount)
{
  verify(entryCount <= entryIndicesList.length);
  for (int i = 0; i < entryCount; i++) {
    entryIndicesList[i].clear();
  }
}
origin: apache/incubator-druid

public boolean isEmpty()
{
 synchronized (this) {
  return historicalServers.isEmpty() && realtimeServers.isEmpty();
 }
}
origin: apache/incubator-druid

private void putUnion(final ByteBuffer buffer, final int position, final DoublesUnion union)
{
 Int2ObjectMap<DoublesUnion> map = unions.computeIfAbsent(buffer, buf -> new Int2ObjectOpenHashMap<>());
 map.put(position, union);
}
origin: prestodb/presto

public FactoryBuilder(int size, PagesHashStrategy pagesHashStrategy, LongArrayList addresses)
{
  this.size = size;
  this.comparator = new PositionComparator(pagesHashStrategy, addresses);
  this.pagesHashStrategy = pagesHashStrategy;
  this.addresses = addresses;
  positionLinks = new Int2ObjectOpenHashMap<>();
}
origin: apache/incubator-druid

private void putSketchIntoCache(final ByteBuffer buf, final int position, final HllSketch sketch)
{
 final Int2ObjectMap<HllSketch> map = sketchCache.computeIfAbsent(buf, b -> new Int2ObjectOpenHashMap<>());
 map.put(position, sketch);
}
it.unimi.dsi.fastutil.ints

Most used classes

  • IntArrayList
    A type-specific array-based list; provides some additional methods that use polymorphism to avoid (u
  • Int2ObjectMap
    A type-specific Map; provides some additional methods that use polymorphism to avoid (un)boxing, and
  • Int2ObjectOpenHashMap
    A type-specific hash map with a fast, small-footprint implementation. Instances of this class use a
  • IntSet
    A type-specific Set; provides some additional methods that use polymorphism to avoid (un)boxing. Add
  • IntOpenHashSet
    A type-specific hash set with with a fast, small-footprint implementation. Instances of this class
  • IntList,
  • Int2IntOpenHashMap,
  • Int2ObjectMap$Entry,
  • Int2IntMap,
  • Int2DoubleOpenHashMap,
  • IntArrays,
  • IntSortedSet,
  • Int2DoubleMap$Entry,
  • IntCollection,
  • IntListIterator,
  • Int2IntMap$Entry,
  • Int2ObjectMap$FastEntrySet,
  • IntIterators,
  • IntRBTreeSet
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now