接口 SchemaStorage
public interface SchemaStorage
Schema storage.
-
方法概要
修饰符和类型方法说明voidclose()get(String key, SchemaVersion version) default CompletableFuture<SchemaVersion>put(String key, Function<CompletableFuture<List<CompletableFuture<StoredSchema>>>, CompletableFuture<org.apache.commons.lang3.tuple.Pair<byte[], byte[]>>> fn) Put the schema to the schema storage.voidstart()versionFromBytes(byte[] version)
-
方法详细资料
-
put
-
put
default CompletableFuture<SchemaVersion> put(String key, Function<CompletableFuture<List<CompletableFuture<StoredSchema>>>, CompletableFuture<org.apache.commons.lang3.tuple.Pair<byte[], byte[]>>> fn) Put the schema to the schema storage.- 参数:
key- The schema IDfn- The function to calculate the value and hash that need to put to the schema storage The input of the function is all the existing schemas that used to do the schemas compatibility check- 返回:
- The schema version of the stored schema
-
get
-
getAll
-
delete
-
delete
-
versionFromBytes
-
start
- 抛出:
Exception
-
close
- 抛出:
Exception
-