Package com.browseengine.bobo.facets.data

Examples of com.browseengine.bobo.facets.data.TermStringList


      if(facetName.equalsIgnoreCase(NETWORK_FACET_NAME)) {
        try {
          networkFacetHandler = (RuntimeFacetHandler) boboReader.getFacetHandler(NETWORK_FACET_NAME);
          boboIndexReader = boboReader;
          TermStringList t = new TermStringList();
          t.add(NETWORK_TERMLIST_VALUE);
          termLists[index] = t;
        } catch (Exception ex) {
          // Being safe to not affect other facets.
          logger.warn("Error getting network facet");
        }
View Full Code Here


  private int[] freqs;
  TermValueList<String> dictionary = new TermStringList();

  @Before
  public void setup() {
    dictionary = new TermStringList();

    freqs = new int[27];
    dictionary.add(null);
    for(char ch = 'a'; ch <= 'z'; ch++) {
      dictionary.add("" + ch);
View Full Code Here

    int maxDoc = reader.maxDoc();
    int size = dataMap == null ? 1 : (dataMap.size() + 1);

    BigSegmentedArray order = new BigIntArray(maxDoc);
    TermValueList<?> list = _termListFactory == null ? new TermStringList(size) : _termListFactory
        .createTermList(size);

    int[] freqs = new int[size];
    int[] minIDs = new int[size];
    int[] maxIDs = new int[size];
View Full Code Here

  public FacetDataCache<?> load(BoboSegmentReader reader) throws IOException {
    int maxDoc = reader.maxDoc();

    BigIntArray order = new BigIntArray(maxDoc);

    TermValueList<?> mterms = _termListFactory == null ? new TermStringList() : _termListFactory
        .createTermList();

    IntArrayList minIDList = new IntArrayList();
    IntArrayList maxIDList = new IntArrayList();
    IntArrayList freqList = new IntArrayList();
View Full Code Here

    _numdocs = numdocs;

    _predefinedBuckets = predefinedBuckets;
    _collapsedCounts = null;

    _bucketValues = new TermStringList();
    _bucketValues.add("");

    String[] bucketArray = _predefinedBuckets.keySet().toArray(new String[0]);
    Arrays.sort(bucketArray);
    for (String bucket : bucketArray) {
View Full Code Here

  public FacetDataCache load(BoboIndexReader reader) throws IOException {
    int maxDoc = reader.maxDoc();

    BigIntArray order = new BigIntArray(maxDoc);

    TermValueList mterms = _termListFactory == null ? new TermStringList() : _termListFactory.createTermList();
   
    IntArrayList minIDList=new IntArrayList();
      IntArrayList maxIDList=new IntArrayList();
      IntArrayList freqList = new IntArrayList();
     
View Full Code Here

    log.info("latCount: " + _latDataCache.freqs.length + " longCount: " + _longDataCache.freqs.length);
    _latOrderArray = _latDataCache.orderArray;
    _longOrderArray = _longDataCache.orderArray;
    _docBase = docBase;
    _spec = spec;
    _predefinedRanges = new TermStringList();
    Collections.sort(predefinedRanges);
    _predefinedRanges.addAll(predefinedRanges);
   
    if(predefinedRanges != null) {
      _latPredefinedRangeIndexes = new int[_predefinedRanges.size()][2];
View Full Code Here

    _count=new int[_countlength];
    _array = _dataCache.orderArray;
    _docBase = docBase;
    _ospec=ospec;
    if(predefinedRanges != null) {
      _predefinedRanges = new TermStringList();
      Collections.sort(predefinedRanges);
      _predefinedRanges.addAll(predefinedRanges);
    }else {
        _predefinedRanges = null;
      }
View Full Code Here

    _numdocs = numdocs;
   
    _predefinedBuckets = predefinedBuckets;
    _collapsedCounts = null;
   
    _bucketValues = new TermStringList();
    _bucketValues.add("");
   
    String[] bucketArray = _predefinedBuckets.keySet().toArray(new String[0]);
    Arrays.sort(bucketArray);
    for (String bucket : bucketArray){
View Full Code Here

    _dataCache = dataCache;
    _xvals = dataCache.get_xValArray();
    _yvals = dataCache.get_yValArray();
    _zvals = dataCache.get_zValArray();
    _spec = fspec;
    _predefinedRanges = new TermStringList();
    Collections.sort(predefinedRanges);
    _predefinedRanges.addAll(predefinedRanges);
    _docBase = docBase;
    _countlength = predefinedRanges.size();
    _count = new int[_countlength];
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.facets.data.TermStringList

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.