Package com.flaptor.indextank.index.rti.inverted

Examples of com.flaptor.indextank.index.rti.inverted.InvertedIndex


    this.facetingManager = facetingManager;
    Preconditions.checkNotNull(scorer);
        Preconditions.checkArgument(rtiSize > 0);
        this.scorer = scorer;
    this.rtiSize = rtiSize;
        this.index = new InvertedIndex(scorer, parser, rtiSize, this.facetingManager);
        this.markedIndex = null;
    }
View Full Code Here


   
    public void mark() {
      synchronized (this) {
        Preconditions.checkState(markedIndex == null, "Cannot mark twice. clearToMark should be called before marking again.");
        markedIndex = index;
        index = new InvertedIndex(scorer, parser, rtiSize, facetingManager);
      }
    }
View Full Code Here

      }
    }

    public Map<String, String> getStats() {
        Map<String, String> stats = Maps.newHashMap();
        InvertedIndex current = index;
        InvertedIndex marked = markedIndex;
        stats.put("rti_size", String.valueOf(rtiSize));
        stats.putAll(current.getStats("rti_current_index_"));
        if (marked != null) {
            stats.putAll(current.getStats("rti_marked_index_"));
        }
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.index.rti.inverted.InvertedIndex

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.