@Override
  public boolean isEmpty() {
    return createStats("primaryKeyIndex").getNumberOfKeys() == 0;
  }
Return the number of values for the specified key in this index.
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/PrimaryKeyIndex.java