Class TargetRange

java.lang.Object
com.google.cloud.spanner.spi.v1.TargetRange

@InternalApi public class TargetRange extends Object
Represents a key range with start and limit boundaries for routing.
  • Field Details

    • start

      public com.google.protobuf.ByteString start
    • limit

      public com.google.protobuf.ByteString limit
    • approximate

      public boolean approximate
  • Constructor Details

    • TargetRange

      public TargetRange(com.google.protobuf.ByteString start, com.google.protobuf.ByteString limit, boolean approximate)
  • Method Details

    • isPoint

      public boolean isPoint()
    • mergeFrom

      public void mergeFrom(TargetRange other)
      Merges another TargetRange into this one. The resulting range will be the union of the two ranges, taking the minimum start key and maximum limit key.