Package com.flaptor.hounder.indexer.util

Examples of com.flaptor.hounder.indexer.util.Hash


        for (int i = 0; i < hosts.length; i++) {
          Pair<String, Integer> host = PortUtil.parseHost(hosts[i]);
            indexers.add(new RmiIndexerStub(host.last(), host.first()));
        }

        hashFunction = new Hash(indexers.size());

        useXslt = config.getBoolean("multiIndexer.useXslt");
        if (useXslt) {
            try {
                xsltModule = new XsltModule();
View Full Code Here


        }

    setBaseDirectory();
    setIndexDirectory();
    setLatestCopyAsIndex();
        hashFunction = new Hash(indexDescriptor.getTotalNumberOfNodes());
    docIdName = config.getString("docIdName");

    ut = new UpdaterThread();
    logger.debug("Starting UpdaterThread.");
    ut.start();
View Full Code Here

    public BatchMultiIndexer(int clusterSize, File outputDirectory, String fragmentName) {
        Preconditions.checkArgument(clusterSize > 0, "Invalid clusterSize.");
        Preconditions.checkArgument(null != outputDirectory && outputDirectory.exists() && outputDirectory.isDirectory(), "check the output directory.");
        this.clusterSize = clusterSize;
        this.outputDirectory = outputDirectory;
        hashFunction = new Hash(clusterSize);
        indexManagers = new BatchIndexManager[clusterSize];
        for (int i = 0; i < clusterSize; i++) {
            IndexDescriptor id = new IndexDescriptor(clusterSize, i , fragmentName);
            indexManagers[i] = new BatchIndexManager(id, new File(outputDirectory, "index-" + String.valueOf(i)));
        }
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.indexer.util.Hash

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.