Package it.unimi.dsi.fastutil.ints

Examples of it.unimi.dsi.fastutil.ints.IntHeapSemiIndirectPriorityQueue


   */
  protected AbstractUnionDocumentIterator( final DocumentIterator... documentIterator ) throws IOException {
    super( documentIterator );
    this.curr = new int[ n ];

    queue = new IntHeapSemiIndirectPriorityQueue( curr );

    intervalIterators = new Reference2ReferenceArrayMap<Index,IntervalIterator>( indices.size() );
    currentIterators = new Reference2ReferenceArrayMap<Index,IntervalIterator>( indices.size() );
    unmodifiableCurrentIterators = Reference2ReferenceMaps.unmodifiable( currentIterators );

View Full Code Here


      final int skipBufferSize,
      final long logInterval ) throws IOException, ConfigurationException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
    super( outputBasename, inputBasename, metadataOnly, false, bufferSize, writerFlags, interleaved, skips, quantum, height, skipBufferSize, logInterval );

    doc = new int[ numIndices ];
    documentQueue = new IntHeapSemiIndirectPriorityQueue( doc, numIndices );
  }
View Full Code Here

    this.indexReader = indexReader;
    this.usedIndex = usedIndex;
   
    strategy = indexReader.index.strategy;
    globalDocumentPointer = new int[ n ];
    queue = new IntHeapSemiIndirectPriorityQueue( globalDocumentPointer, n );
   
    int result;
    for( int i = n; i-- != 0; ) {
      if ( ( result = documentIterator[ i ].nextDocument() ) != -1 ) {
        indices.addAll( documentIterator[ i ].indices() );
View Full Code Here

    /** The number of results extracted in {@link #cache} since the last call to {@link #reset()}. */
    private int extracted;

    public MultiTermIntervalIterator() {
      super( n );
      positionQueue = new IntHeapSemiIndirectPriorityQueue( curr );
      cache = new int[ 4 ];
    }
View Full Code Here

    public AndIndexIntervalIterator( final Index index ) {
      super( n );
      // We just set up some internal data, but we perform no initialisation.
      this.index = index;
      queue = new IntHeapSemiIndirectPriorityQueue( curr );
    }
View Full Code Here

    private final int[] positionFront;
   
    public OrIndexIntervalIterator( final Index index ) {
      super( n );
      this.index = index;
      positionQueue = new IntHeapSemiIndirectPriorityQueue( curr );
      positionFront = new int[ n ];
    }
View Full Code Here

TOP

Related Classes of it.unimi.dsi.fastutil.ints.IntHeapSemiIndirectPriorityQueue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.