// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.IOException;
import java.util.Map;

public interface SnapshotInputMappingIndex<Key, Value, Input> {
  @NotNull
  Map<Key, Value> readData(int hashId) throws IOException;

  @NotNull
  Map<Key, Value> readDataOrMap(@Nullable Input content);

  int getHashId(@Nullable Input content) throws IOException;

  void flush() throws IOException;

  void clear() throws IOException;

  void close() throws IOException;
}

@@ -171,16 +171,60 @@
 exing;%0A%0A
+import org.jetbrains.annotations.ApiStatus;%0A
 import o
@@ -352,16 +352,40 @@
 l.Map;%0A%0A
+@ApiStatus.Experimental%0A
 public i

add experimental annotation