boolean isIndexOnPdxKeys() {
    return isIndexedPdxKeys;
  }
This makes current thread wait until all query threads are done using it.
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/AbstractIndex.java