Package io.druid.segment.data

Examples of io.druid.segment.data.EmptyIndexedInts


  public IndexedInts getBitmapIndex(String dimension, String value)
  {
    Map<String, MutableBitmap> dimInverted = invertedIndexes.get(dimension);

    if (dimInverted == null) {
      return new EmptyIndexedInts();
    }

    final MutableBitmap bitmapIndex = dimInverted.get(value);

    if (bitmapIndex == null) {
      return new EmptyIndexedInts();
    }

    return new IndexedInts()
    {
      @Override
View Full Code Here


  public IndexedInts getBitmapIndex(String dimension, String value)
  {
    final Column column = input.getColumn(dimension);

    if (column == null) {
      return new EmptyIndexedInts();
    }

    final BitmapIndex bitmaps = column.getBitmapIndex();
    if (bitmaps == null) {
      return new EmptyIndexedInts();
    }

    return new BitmapCompressedIndexedInts(bitmaps.getBitmap(value));
  }
View Full Code Here

TOP

Related Classes of io.druid.segment.data.EmptyIndexedInts

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.