public final class KeySet extends GeneratedMessageV3 implements KeySetOrBuilder
KeySet
defines a collection of Cloud Spanner keys and/or key ranges. All
the keys are expected to be in the same table or index. The keys need
not be sorted in any particular way.
If the same key is specified multiple times in the set (for example
if two ranges, two keys, or a key and a range overlap), Cloud Spanner
behaves as if the key were only specified once.
Protobuf type google.spanner.v1.KeySet
Static Fields
ALL_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
Field Value
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER
Field Value
RANGES_FIELD_NUMBER
public static final int RANGES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static KeySet getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static KeySet.Builder newBuilder()
Returns
newBuilder(KeySet prototype)
public static KeySet.Builder newBuilder(KeySet prototype)
Parameter
Name | Description |
prototype | KeySet
|
Returns
public static KeySet parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static KeySet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static KeySet parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KeySet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static KeySet parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KeySet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KeySet parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static KeySet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KeySet parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static KeySet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static KeySet parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KeySet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<KeySet> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAll()
For convenience all
can be set to true
to indicate that this
KeySet
matches all keys in the table or index. Note that any keys
specified in keys
or ranges
are only yielded once.
bool all = 3;
Returns
getDefaultInstanceForType()
public KeySet getDefaultInstanceForType()
Returns
getKeys(int index)
public ListValue getKeys(int index)
A list of specific keys. Entries in keys
should have exactly as
many elements as there are columns in the primary or index key
with which this KeySet
is used. Individual key values are
encoded as described here.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
getKeysCount()
public int getKeysCount()
A list of specific keys. Entries in keys
should have exactly as
many elements as there are columns in the primary or index key
with which this KeySet
is used. Individual key values are
encoded as described here.
repeated .google.protobuf.ListValue keys = 1;
Returns
getKeysList()
public List<ListValue> getKeysList()
A list of specific keys. Entries in keys
should have exactly as
many elements as there are columns in the primary or index key
with which this KeySet
is used. Individual key values are
encoded as described here.
repeated .google.protobuf.ListValue keys = 1;
Returns
getKeysOrBuilder(int index)
public ListValueOrBuilder getKeysOrBuilder(int index)
A list of specific keys. Entries in keys
should have exactly as
many elements as there are columns in the primary or index key
with which this KeySet
is used. Individual key values are
encoded as described here.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
getKeysOrBuilderList()
public List<? extends ListValueOrBuilder> getKeysOrBuilderList()
A list of specific keys. Entries in keys
should have exactly as
many elements as there are columns in the primary or index key
with which this KeySet
is used. Individual key values are
encoded as described here.
repeated .google.protobuf.ListValue keys = 1;
Returns
Type | Description |
List<? extends com.google.protobuf.ListValueOrBuilder> | |
getParserForType()
public Parser<KeySet> getParserForType()
Returns
Overrides
getRanges(int index)
public KeyRange getRanges(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
getRangesCount()
public int getRangesCount()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
getRangesList()
public List<KeyRange> getRangesList()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
getRangesOrBuilder(int index)
public KeyRangeOrBuilder getRangesOrBuilder(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
getRangesOrBuilderList()
public List<? extends KeyRangeOrBuilder> getRangesOrBuilderList()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
Type | Description |
List<? extends com.google.spanner.v1.KeyRangeOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public KeySet.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KeySet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public KeySet.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions