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 Type
    Modifier and Type
    Method
    Description
    static Type
    Type.array(Type elementType)
    Returns a descriptor for an array of elementType.
    static Type
    Type.bool()
    Returns the descriptor for the BOOL type.
    static Type
    Type.bytes()
    Returns the descriptor for the BYTES type: a variable-length byte string.
    static Type
    Type.date()
    Returns the descriptor for the DATE type: a timezone independent date in the range [0001-01-01, 9999-12-31).
    static Type
    Type.float32()
    Returns the descriptor for the FLOAT32 type: a floating point type with the same value domain as a Java float.
    static Type
    Type.float64()
    Returns the descriptor for the FLOAT64 type: a floating point type with the same value domain as a Java double.
    Returns the type descriptor for elements of this ARRAY type.
    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 Type
    Value.getType()
    Returns the type of this value.
    static Type
    Type.int64()
    Returns the descriptor for the INT64 type: an integral type with the same value domain as a Java long.
    static Type
    Type.json()
    Returns the descriptor for the JSON type.
    static Type
    Type.numeric()
    Returns the descriptor for the NUMERIC type.
    static Type
    Type.pgJsonb()
    Returns the descriptor for the JSONB type.
    static Type
    Type.pgNumeric()
    Returns the descriptor for the NUMERIC type with the PG_NUMERIC type annotation.
    static Type
    Type.pgOid()
    Returns the descriptor for the PG_OID type.
    static Type
    Type.proto(String protoTypeFqn)
    To get the descriptor for the PROTO type.
    static Type
    Type.protoEnum(String protoTypeFqn)
    To get the descriptor for the ENUM type.
    static Type
    Type.string()
    Returns the descriptor for the STRING type: a variable-length Unicode character string.
    static Type
    Type.struct(Type.StructField... fields)
    Returns a descriptor for a STRUCT type: an ordered collection of named and typed fields.
    static Type
    Returns a descriptor for a STRUCT type: an ordered collection of named and typed fields.
    static Type
    Type.timestamp()
    Returns the descriptor for the TIMESTAMP type: 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 Type
    Modifier and Type
    Method
    Description
    static Type
    Type.array(Type elementType)
    Returns a descriptor for an array of elementType.
    static ResultSet
    ResultSets.forRows(Type type, Iterable<Struct> rows)
    Creates a pre-populated ResultSet
    Type.StructField.of(String name, Type type)
     
    static Value
    Value.struct(Type type, Struct v)
    Returns a STRUCT value of Type type.
    static Value
    Value.structArray(Type elementType, Iterable<Struct> v)
    Returns an ARRAY<STRUCT<...>> value.
    ValueBinder.to(Type type, Struct value)
    Binds a nullable Struct reference with given Type to Value.struct(type,value
    ValueBinder.toStructArray(Type elementType, Iterable<Struct> values)
    Binds to Value.structArray(fieldTypes, values)