Package it.unimi.dsi.mg4j.index.CompressionFlags

Examples of it.unimi.dsi.mg4j.index.CompressionFlags.Coding


    this.logInterval = logInterval;
    this.bloomFilterPrecision = bloomFilterPrecision;

    numIndices = strategy.numberOfLocalIndices();

    final Coding positionCoding = writerFlags.get( Component.POSITIONS );

    inputProperties = new Properties( inputBasename + DiskBasedIndex.PROPERTIES_EXTENSION );
    globalIndex = DiskBasedIndex.getInstance( inputBasename, inputProperties, false, positionCoding == Coding.GOLOMB || positionCoding == Coding.INTERPOLATIVE, false, null );
    indexReader = globalIndex.getReader();
View Full Code Here


    if ( termMap != null && termMap.size() != numberOfTerms ) throw new IllegalArgumentException( "The size of the term map (" + termMap.size() + ") is not equal to the number of terms (" + numberOfTerms + ")" );
    if ( prefixMap != null && prefixMap.size() != numberOfTerms ) throw new IllegalArgumentException( "The size of the prefix map (" + prefixMap.size() + ") is not equal to the number of terms (" + numberOfTerms + ")" );

    final Payload payload = (Payload)( properties.containsKey( Index.PropertyKeys.PAYLOADCLASS ) ? Class.forName( properties.getString( Index.PropertyKeys.PAYLOADCLASS ) ).newInstance() : null );
    final Coding frequencyCoding = flags.get( Component.FREQUENCIES );
    final Coding pointerCoding = flags.get( Component.POINTERS );
    final Coding countCoding = flags.get( Component.COUNTS );
    final Coding positionCoding = flags.get( Component.POSITIONS );
   
    if ( countCoding == null && positionCoding != null ) throw new IllegalArgumentException( "Index " + basename + " has positions but no counts (this can't happen)" );
   
    // Load document sizes if forced to do so, or if the pointer/position compression methods make it necessary.
    IntList sizes = null;
View Full Code Here

TOP

Related Classes of it.unimi.dsi.mg4j.index.CompressionFlags.Coding

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.