public final class KeySet extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ALL_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RANGES_FIELD_NUMBER
public static final int RANGES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static KeySet getDefaultInstance()
| Returns |
| Type |
Description |
KeySet |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static KeySet.Builder newBuilder()
newBuilder(KeySet prototype)
public static KeySet.Builder newBuilder(KeySet prototype)
| Parameter |
| Name |
Description |
prototype |
KeySet
|
public static KeySet parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
KeySet |
|
public static KeySet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
KeySet |
|
parseFrom(byte[] data)
public static KeySet parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
KeySet |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KeySet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
KeySet |
|
parseFrom(ByteString data)
public static KeySet parseFrom(ByteString data)
| Returns |
| Type |
Description |
KeySet |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KeySet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
KeySet |
|
public static KeySet parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
KeySet |
|
public static KeySet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
KeySet |
|
public static KeySet parseFrom(InputStream input)
| Returns |
| Type |
Description |
KeySet |
|
public static KeySet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
KeySet |
|
parseFrom(ByteBuffer data)
public static KeySet parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
KeySet |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KeySet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
KeySet |
|
parser()
public static Parser<KeySet> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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 |
| Type |
Description |
boolean |
The all.
|
getDefaultInstanceForType()
public KeySet getDefaultInstanceForType()
| Returns |
| Type |
Description |
KeySet |
|
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
int |
|
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;
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 |
| Name |
Description |
index |
int
|
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()
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
int |
|
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;
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
int |
|
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public KeySet.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected KeySet.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public KeySet.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides