Package org.apache.druid.segment
Class IdMapping
java.lang.Object
org.apache.druid.segment.IdMapping
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintgetForwardedId(int id) Get the substitute index, given the originalintgetReverseId(int id) Get the original index, given the substituteintGet the number of values stored inforwardMapping
-
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 inforwardMapping
-