Class KeyRange (6.56.0)

public final class KeyRange extends GeneratedMessageV3 implements KeyRangeOrBuilder

KeyRange represents a range of rows in a table or index.

A range has a start key and an end key. These keys can be open or closed, indicating if the range includes rows with that key.

Keys are represented by "ValueList", where the ith value in the list corresponds to the ith component of the table or index primary key.

Protobuf type google.spanner.executor.v1.KeyRange

Implements

KeyRangeOrBuilder

Static Fields

LIMIT_FIELD_NUMBER

public static final int LIMIT_FIELD_NUMBER
Field Value
TypeDescription
int

START_FIELD_NUMBER

public static final int START_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static KeyRange getDefaultInstance()
Returns
TypeDescription
KeyRange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static KeyRange.Builder newBuilder()
Returns
TypeDescription
KeyRange.Builder

newBuilder(KeyRange prototype)

public static KeyRange.Builder newBuilder(KeyRange prototype)
Parameter
NameDescription
prototypeKeyRange
Returns
TypeDescription
KeyRange.Builder

parseDelimitedFrom(InputStream input)

public static KeyRange parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KeyRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static KeyRange parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static KeyRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static KeyRange parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static KeyRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static KeyRange parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static KeyRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static KeyRange parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KeyRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static KeyRange parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static KeyRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KeyRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<KeyRange> parser()
Returns
TypeDescription
Parser<KeyRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public KeyRange getDefaultInstanceForType()
Returns
TypeDescription
KeyRange

getLimit()

public ValueList getLimit()

The end key of this KeyRange.

.google.spanner.executor.v1.ValueList limit = 2;

Returns
TypeDescription
ValueList

The limit.

getLimitOrBuilder()

public ValueListOrBuilder getLimitOrBuilder()

The end key of this KeyRange.

.google.spanner.executor.v1.ValueList limit = 2;

Returns
TypeDescription
ValueListOrBuilder

getParserForType()

public Parser<KeyRange> getParserForType()
Returns
TypeDescription
Parser<KeyRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStart()

public ValueList getStart()

"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.

.google.spanner.executor.v1.ValueList start = 1;

Returns
TypeDescription
ValueList

The start.

getStartOrBuilder()

public ValueListOrBuilder getStartOrBuilder()

"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.

.google.spanner.executor.v1.ValueList start = 1;

Returns
TypeDescription
ValueListOrBuilder

getType()

public KeyRange.Type getType()

"start" and "limit" type for this KeyRange.

optional .google.spanner.executor.v1.KeyRange.Type type = 3;

Returns
TypeDescription
KeyRange.Type

The type.

getTypeValue()

public int getTypeValue()

"start" and "limit" type for this KeyRange.

optional .google.spanner.executor.v1.KeyRange.Type type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasLimit()

public boolean hasLimit()

The end key of this KeyRange.

.google.spanner.executor.v1.ValueList limit = 2;

Returns
TypeDescription
boolean

Whether the limit field is set.

hasStart()

public boolean hasStart()

"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.

.google.spanner.executor.v1.ValueList start = 1;

Returns
TypeDescription
boolean

Whether the start field is set.

hasType()

public boolean hasType()

"start" and "limit" type for this KeyRange.

optional .google.spanner.executor.v1.KeyRange.Type type = 3;

Returns
TypeDescription
boolean

Whether the type field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public KeyRange.Builder newBuilderForType()
Returns
TypeDescription
KeyRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected KeyRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
KeyRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public KeyRange.Builder toBuilder()
Returns
TypeDescription
KeyRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException