Class PartitionedTableTypePlugin

All Implemented Interfaces:
Plugin, Registration, ObjectType

@AutoService(ObjectType.class) public class PartitionedTableTypePlugin extends ObjectTypeBase.FetchOnly
Protobuf serialization of all PartitionedTable subtypes. This sends the basic metadata of the partitioned table, and a ticket to the underlying table that tracks the keys and the actual table objects.
  • Constructor Details

    • PartitionedTableTypePlugin

      public PartitionedTableTypePlugin()
  • Method Details

    • name

      public String name()
      Description copied from interface: ObjectType
      The name of the object type.
      Returns:
      the name
    • isType

      public boolean isType(Object object)
      Description copied from interface: ObjectType
      Returns true if, and only if, the object is compatible with this object type.
      Parameters:
      object - the object
      Returns:
      true if the object is compatible
    • writeCompatibleObjectTo

      public void writeCompatibleObjectTo(Exporter exporter, Object object, OutputStream out) throws IOException
      Description copied from class: ObjectTypeBase.FetchOnly
      Serializes object as bytes to out. Must only be called with a compatible object. Server-side objects that should be sent as references to the client (but not themselves serialized in this payload) can be exported using the exporter - each returned Exporter.Reference will have an index, denoting its position on the array of exported objects to be received by the client.
      Specified by:
      writeCompatibleObjectTo in class ObjectTypeBase.FetchOnly
      Parameters:
      exporter - the exporter
      object - the compatible object
      out - the output stream
      Throws:
      IOException - if output stream operations failed, the export will then fail, and the client will get a generic error