code: protected static int getSizeInBytesFromCardinalityEtc(int card, int numRuns,
        boolean isRunEncoded) {
      if (isRunEncoded) {
        return 2 + numRuns * 2 * 2; // each run uses 2 shorts, plus the initial short giving num runs
      }
      boolean isBitmap = card > MappeableArrayContainer.DEFAULT_MAX_SIZE;
      if (isBitmap) {
        return MappeableBitmapContainer.MAX_CAPACITY / 8;
      } else {
        return card * 2;
      }
  
    }
docs: From the cardinality of a container, compute the corresponding size in bytes of the container.
  Additional information is required if the container is run encoded.
  
  @param card the cardinality if this is not run encoded, otherwise ignored
  @param numRuns number of runs if run encoded, othewise ignored
  @param isRunEncoded boolean
  
  @return the size in bytes