boolean isFlagSet(Flags flag) {
    return ((getFlags() & (1 << flag.ordinal())) != 0);
  }
Returns whether the passed in {@code flag} is set or not in the {@link IndexValue}
@param flag the {@link Flags} that needs to be checked if set in the {@link IndexValue}
@return {@code true} if the passed in {@link Flags} is set, {@code false} otherwise
ambry-store/src/main/java/com/github/ambry/store/IndexValue.java