Package com.google.cloud.spanner.spi.v1
Class TargetRange
java.lang.Object
com.google.cloud.spanner.spi.v1.TargetRange
Represents a key range with start and limit boundaries for routing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleancom.google.protobuf.ByteStringcom.google.protobuf.ByteString -
Constructor Summary
ConstructorsConstructorDescriptionTargetRange(com.google.protobuf.ByteString start, com.google.protobuf.ByteString limit, boolean approximate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPoint()voidmergeFrom(TargetRange other) Merges another TargetRange into this one.
-
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
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.
-