Class IdMapping

java.lang.Object
org.apache.druid.segment.IdMapping

public class IdMapping extends Object
Map some set of dictionary id to a smaller set of dictionaryIds (or... the same if you are wasteful), providing a translation layer between them
  • Method Details

    • getForwardedId

      public int getForwardedId(int id)
      Get the substitute index, given the original
    • getReverseId

      public int getReverseId(int id)
      Get the original index, given the substitute
    • getValueCardinality

      public int getValueCardinality()
      Get the number of values stored in forwardMapping