Package org.fastlsh.util

Examples of org.fastlsh.util.Permuter


        File rootDirHandle = new File(topLevelIndexDir, Constants.permutations);
        FileUtils.mkdirs(rootDirHandle);
        rootDir = rootDirHandle.getAbsolutePath();
        this.signatures = signatures;
        this.numPermutations = options.numPermutations;   
        this.permuter = new Permuter(options.numHashes);

        initializeMap();
    }
View Full Code Here


        long start = System.currentTimeMillis();       
        Signature [] bitSets = makeRandomBitSets(numBitSets, cardinality);
        long end = System.currentTimeMillis();
        System.out.println("Took: " + (end - start) + " millis to initialize " + numBitSets + " bitsets of cardinality " + cardinality + ".");

        Permuter permuter = new Permuter(cardinality);
        PermutationIndexWriter.permuteAndSort(permuter, bitSets);
        LexicographicBitSetComparator comparator = new LexicographicBitSetComparator();
        start = System.currentTimeMillis();
        Arrays.sort(bitSets, comparator);
        end = System.currentTimeMillis();
View Full Code Here

TOP

Related Classes of org.fastlsh.util.Permuter

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.