@Override
  public Object getValueInVM(Object key) throws EntryNotFoundException {
    if (dataStore == null) {
      throw new EntryNotFoundException(key.toString());
    }
    final int bucketId = PartitionedRegionHelper.getHashKey(this, null, key, null, null);
    return dataStore.getLocalValueInVM(key, bucketId);
  }
Gets and removes index by name.

@param indexName name of the index to be removed.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java