Package com.browseengine.bobo.util

Examples of com.browseengine.bobo.util.BigShortArray


    // we use < instead of <= to take into consideration "missing" value (zero element in the
    // dictionary)
    if (termCount < Byte.MAX_VALUE) {
      return new BigByteArray(maxDoc);
    } else if (termCount < Short.MAX_VALUE) {
      return new BigShortArray(maxDoc);
    } else return new BigIntArray(maxDoc);
  }
View Full Code Here


    // we use < instead of <= to take into consideration "missing" value (zero element in the
    // dictionary)
    if (termCount < Byte.MAX_VALUE) {
      return new BigByteArray(maxDoc);
    } else if (termCount < Short.MAX_VALUE) {
      return new BigShortArray(maxDoc);
    } else return new BigIntArray(maxDoc);
  }
View Full Code Here

  private final static BigSegmentedArray newInstance(TermCountSize termCountSize, int maxDoc) {
    if (termCountSize == TermCountSize.small) {
      return new BigByteArray(maxDoc);
    } else if (termCountSize == TermCountSize.medium) {
      return new BigShortArray(maxDoc);
    } else
      return new BigIntArray(maxDoc);
  }
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.util.BigShortArray

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.