private long nextContainerId(boolean isInitialGuaranteed) {
    long candidate = nextId.getAndIncrement();
    candidate <<= GUARANTEED_WIDTH;
    if (!isInitialGuaranteed) {
      candidate |= 1;
    }
    return candidate;
  }
See {@link #isContainerInitializedAsGuaranteed(ContainerId)}
@param isInitialGuaranteed
@return
llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/ContainerFactory.java