Uses of Class
com.google.cloud.spanner.Type
Packages that use Type
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of Type in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return TypeModifier and TypeMethodDescriptionstatic TypeReturns a descriptor for an array ofelementType.static TypeType.bool()Returns the descriptor for theBOOL type.static TypeType.bytes()Returns the descriptor for theBYTEStype: a variable-length byte string.static TypeType.date()Returns the descriptor for theDATEtype: a timezone independent date in the range [0001-01-01, 9999-12-31).static TypeType.float32()Returns the descriptor for theFLOAT32type: a floating point type with the same value domain as a Javafloat.static TypeType.float64()Returns the descriptor for theFLOAT64type: a floating point type with the same value domain as a Javadouble.Type.getArrayElementType()Returns the type descriptor for elements of thisARRAYtype.AbstractStructReader.getColumnType(int columnIndex) AbstractStructReader.getColumnType(String columnName) ForwardingStructReader.getColumnType(int columnIndex) ForwardingStructReader.getColumnType(String columnName) StructReader.getColumnType(int columnIndex) StructReader.getColumnType(String columnName) ForwardingStructReader.getType()StructReader.getType()Type.StructField.getType()abstract TypeValue.getType()Returns the type of this value.static TypeType.int64()Returns the descriptor for theINT64type: an integral type with the same value domain as a Javalong.static TypeType.json()Returns the descriptor for theJSONtype.static TypeType.numeric()Returns the descriptor for theNUMERICtype.static TypeType.pgJsonb()Returns the descriptor for theJSONBtype.static TypeType.pgNumeric()Returns the descriptor for theNUMERICtype with thePG_NUMERICtype annotation.static TypeType.pgOid()Returns the descriptor for thePG_OIDtype.static TypeTo get the descriptor for thePROTOtype.static TypeTo get the descriptor for theENUMtype.static TypeType.string()Returns the descriptor for theSTRINGtype: a variable-length Unicode character string.static TypeType.struct(Type.StructField... fields) Returns a descriptor for aSTRUCTtype: an ordered collection of named and typed fields.static TypeType.struct(Iterable<Type.StructField> fields) Returns a descriptor for aSTRUCTtype: an ordered collection of named and typed fields.static TypeType.timestamp()Returns the descriptor for theTIMESTAMPtype: a nano precision timestamp in the range [0000-01-01 00:00:00, 9999-12-31 23:59:59.999999999 UTC].Methods in com.google.cloud.spanner with parameters of type TypeModifier and TypeMethodDescriptionstatic TypeReturns a descriptor for an array ofelementType.static ResultSetCreates a pre-populatedResultSetstatic Type.StructFieldstatic ValueReturns aSTRUCTvalue ofTypetype.static ValueValue.structArray(Type elementType, Iterable<Struct> v) Returns anARRAY<STRUCT<...>>value.Binds a nullableStructreference with givenTypetoValue.struct(type,valueValueBinder.toStructArray(Type elementType, Iterable<Struct> values) Binds toValue.structArray(fieldTypes, values)