Class MaterializedView

java.lang.Object
com.google.cloud.bigtable.admin.v2.models.MaterializedView

public final class MaterializedView extends Object
A class that wraps the MaterializedView protocol buffer object.

A MaterializedView represents subsets of a particular table based on rules. The access to each MaterializedView can be configured separately from the Table.

Users can perform read/write operation on a MaterializedView by providing a materializedView id besides a table id, in which case the semantics remain identical as reading/writing on a Table except that visibility is restricted to the subset of the Table that the MaterializedView represents.

  • Method Details

    • fromProto

      @InternalApi public static MaterializedView fromProto(@Nonnull MaterializedView proto)
      Wraps the protobuf. This method is considered an internal implementation detail and not meant to be used by applications.
    • getId

      public String getId()
      Gets the materialized view's id.
    • getInstanceId

      public String getInstanceId()
      Gets the id of the instance that owns this MaterializedView.
    • isDeletionProtected

      public boolean isDeletionProtected()
      Returns whether this materialized view is deletion protected.
    • getQuery

      public String getQuery()
      Gets the query of this materialized view.
    • toProto

      @InternalApi public MaterializedView toProto()
      Creates the request protobuf. This method is considered an internal implementation detail and not meant to be used by applications.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object