Class Schema.Builder

  • Enclosing class:
    Schema

    public static class Schema.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • columns

        public Schema.Builder columns​(List<Column> columns)
        The columns of a table.
        Parameters:
        columns - the value to set
        Returns:
        this builder
      • primaryKey

        public Schema.Builder primaryKey​(List<String> primaryKey)
        A list of column names that make up a key.
        Parameters:
        primaryKey - the value to set
        Returns:
        this builder
      • shardKey

        public Schema.Builder shardKey​(List<String> shardKey)
        A list of column names that make up a key.
        Parameters:
        shardKey - the value to set
        Returns:
        this builder
      • ttl

        public Schema.Builder ttl​(Integer ttl)
        The default Time-to-Live for the table, in days.
        Parameters:
        ttl - the value to set
        Returns:
        this builder
      • build

        public Schema build()