Class BinaryContext

java.lang.Object
org.gridgain.internal.dr.binary.BinaryContext

public class BinaryContext extends Object
Binary context holds binary metadata.
  • Constructor Details

    • BinaryContext

      public BinaryContext()
  • Method Details

    • schema

      @Nullable public @Nullable BinarySchema schema(int typeId, int schemaId)
      Returns a schema for a binary type by given type id and schema id, or null if a binary type metadata or a schema wasn't found.
    • typeId

      public int typeId(String clsName)
      Returns a type id by given class name.
    • binaryMetadata

      @Nullable public @Nullable BinaryMetadata binaryMetadata(int typeId)
      Returns binary type metadata by given type id, or null if was not found.
    • binarySchemas

      public Collection<Integer> binarySchemas(int typeId)
      Returns registered binary object schemas by type id.
    • registerBinaryMetadata

      public void registerBinaryMetadata(BinaryMetadata metadata)
      Registers binary type metadata.
    • registerBinarySchema

      public void registerBinarySchema(int typeId, BinarySchema schema)
      Registers binary object schema for given binary type id.