Package it.unimi.dsi.mg4j.index.cluster

Examples of it.unimi.dsi.mg4j.index.cluster.ContiguousDocumentalStrategy


      clusterProperties.setProperty( IndexCluster.PropertyKeys.BLOOM, false );
      clusterProperties.setProperty( IndexCluster.PropertyKeys.FLAT, true );

      if ( indexingType == IndexingType.STANDARD ) {
        clusterProperties.setProperty( Index.PropertyKeys.INDEXCLASS, DocumentalConcatenatedCluster.class.getName() );
        BinIO.storeObject( new ContiguousDocumentalStrategy( cutPoints.toIntArray() ), basename + CLUSTER_STRATEGY_EXTENSION );
      }
      else {
        clusterProperties.setProperty( Index.PropertyKeys.INDEXCLASS, DocumentalMergedCluster.class.getName() );
        BinIO.storeObject( new IdentityDocumentalStrategy( batch, totDocuments ), basename + CLUSTER_STRATEGY_EXTENSION );
      }
View Full Code Here


      clusterProperties.setProperty( DocumentalCluster.PropertyKeys.BLOOM, false );
      clusterProperties.setProperty( IndexCluster.PropertyKeys.FLAT, false );

      if ( indexingIsStandard ) {
        clusterProperties.setProperty( Index.PropertyKeys.INDEXCLASS, DocumentalConcatenatedCluster.class.getName() );
        BinIO.storeObject( new ContiguousDocumentalStrategy( cutPoints.toIntArray() ), basename + CLUSTER_STRATEGY_EXTENSION );
      }
      else { // Remapped
        clusterProperties.setProperty( Index.PropertyKeys.INDEXCLASS, DocumentalMergedCluster.class.getName() );
        BinIO.storeObject( new IdentityDocumentalStrategy( batch, totDocuments ), basename + CLUSTER_STRATEGY_EXTENSION );
      }
View Full Code Here

TOP

Related Classes of it.unimi.dsi.mg4j.index.cluster.ContiguousDocumentalStrategy

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.