@Override
  public boolean hasIndexFor(String column, IndexType<?, ?, ?> type) {
    File indexFile = getFileFor(column, type);
    return indexFile.exists();
  }
@Test
  public void nativeTextIndexIsRecognized()
      throws IOException {
    // See https://github.com/apache/pinot/issues/11529
    try (FilePerIndexDirectory fpi = new FilePerIndexDirectory(TEMP_DIR, _segmentMetadata, ReadMode.mmap);
        NativeTextIndexCreator fooCreator = new NativeTextIndexCreator("foo", TEMP_DIR)) {

      fooCreator.add("{\"clean\":\"this\"}");
      fooCreator.seal();

      assertTrue(fpi.hasIndexFor("foo", StandardIndexes.text()), "Native text index not found");
    }
  }