Class Key.Builder

java.lang.Object
com.google.cloud.spanner.Key.Builder
Enclosing class:
Key

public static class Key.Builder extends Object
Builder for Key instances.
  • Method Details

    • append

      public Key.Builder append(@Nullable Boolean value)
      Appends a BOOL value to the key.
    • append

      public Key.Builder append(long value)
      Appends an INT64 value to the key.
    • append

      public Key.Builder append(@Nullable Long value)
      Appends an INT64 value to the key.
    • append

      public Key.Builder append(double value)
      Appends a FLOAT64 value to the key.
    • append

      public Key.Builder append(@Nullable Double value)
      Appends a FLOAT64 value to the key.
    • append

      public Key.Builder append(@Nullable BigDecimal value)
      Appends a NUMERIC value to the key.
    • append

      public Key.Builder append(@Nullable String value)
      Appends a STRING value to the key.
    • append

      public Key.Builder append(@Nullable com.google.cloud.ByteArray value)
      Appends a BYTES value to the key.
    • append

      public Key.Builder append(@Nullable com.google.cloud.Timestamp value)
      Appends a TIMESTAMP value to the key
    • append

      public Key.Builder append(@Nullable com.google.cloud.Date value)
      Appends a DATE value to the key
    • appendObject

      public Key.Builder appendObject(@Nullable Object value)
      Appends an object following the same conversion rules as Key.of(Object...). When using the Builder, most code should prefer using the strongly typed append(...) methods, for both performance and the benefit of compile-time checking.
    • build

      public Key build()