All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browseengine.bobo.facets.data.TermFixedLengthLongArrayListFactory Maven / Gradle / Ivy

Go to download

Bobo is a Faceted Search implementation written purely in Java, an extension of Apache Lucene

The newest version!
package com.browseengine.bobo.facets.data;

public class TermFixedLengthLongArrayListFactory implements TermListFactory {
  protected int width;

  public TermFixedLengthLongArrayListFactory(int width) {
    this.width = width;
  }

  public TermValueList createTermList(int capacity) {
    return new TermFixedLengthLongArrayList(width, capacity);
  }

  public TermValueList createTermList() {
    return createTermList(-1);
  }

  public Class getType() {
    return long[].class;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy