Class NamedWriteableRegistry

java.lang.Object
org.opensearch.core.common.io.stream.NamedWriteableRegistry

@PublicApi(since="1.0.0") public class NamedWriteableRegistry extends Object
A registry for Writeable.Reader readers of NamedWriteable.

The registration is keyed by the combination of the category class of NamedWriteable, and a name unique to that category.

Opensearch.api:
  • Constructor Details

  • Method Details

    • getReader

      public <T> Writeable.Reader<? extends T> getReader(Class<T> categoryClass, String name)
      Returns a reader for a NamedWriteable object identified by the name provided as argument and its category.