Package it.unimi.dsi.mg4j.index

Examples of it.unimi.dsi.mg4j.index.CachingOutputBitStream


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

    tempFile = File.createTempFile( "MG4J", ".data", tempFileDir );
    cacheBitStreamOut = new CachingOutputBitStream( tempFile, tempBufferSize );
    cacheBitStreamIn = new InputBitStream( tempFile, bufferSize );
    cacheBitStreamInWrapper = new InputBitStream( cacheBitStreamOut.buffer() );
    /* In this case, we must reallocate position as by merging occurences we might
     * obtain an occurrence list as large as the concatenation of all largest
     * lists. We use this estimate to allocate position, and update maxCount in
View Full Code Here


    final CachingOutputBitStream[] temp = new CachingOutputBitStream[ numIndices ];
    IndexIterator indexIterator;
   
    for ( int i = 0; i < numIndices; i++ ) {
      tempFile[ i ] = new File( localBasename[ i ] + ".temp" );
      temp[ i ] = new CachingOutputBitStream( tempFile[ i ], bufferSize );
      direct[ i ] = new InputBitStream( temp[ i ].buffer() );
      indirect[ i ] = new InputBitStream( tempFile[ i ] );
      if ( bloomFilterPrecision != 0 ) bloomFilter[ i ] = new BloomFilter( globalIndex.numberOfTerms, bloomFilterPrecision );
    }
    int usedIndices;
View Full Code Here

TOP

Related Classes of it.unimi.dsi.mg4j.index.CachingOutputBitStream

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.