Class IdMapping.Builder

  • Enclosing class:
    IdMapping

    public static class IdMapping.Builder
    extends Object
    • Method Detail

      • addMapping

        public void addMapping​(int forwardId)
        Adds a lookup for the 'forwarded' index to the current highest index value, and a reverse lookup from this substitute index back to the original. This method can only be called when cardinality is known, to ensure that reverseMapping is initialized correctly.
      • addForwardMapping

        public void addForwardMapping​(int forwardId)
        Adds a lookup for the 'forwarded' index to the current highest index value. This method can only be used when the cardinality is unknown, otherwise addMapping(int) should be used instead since the reverseMapping is only computed if knownCardinality is false