Interface SchemaDefinition.Builder

    • Method Detail

      • allColumns

        SchemaDefinition.Builder allColumns​(Collection<ColumnDefinition> allColumns)

        The regular columns of the table.

        Parameters:
        allColumns - The regular columns of the table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allColumns

        SchemaDefinition.Builder allColumns​(ColumnDefinition... allColumns)

        The regular columns of the table.

        Parameters:
        allColumns - The regular columns of the table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • partitionKeys

        SchemaDefinition.Builder partitionKeys​(Collection<PartitionKey> partitionKeys)

        The columns that are part of the partition key of the table .

        Parameters:
        partitionKeys - The columns that are part of the partition key of the table .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • partitionKeys

        SchemaDefinition.Builder partitionKeys​(PartitionKey... partitionKeys)

        The columns that are part of the partition key of the table .

        Parameters:
        partitionKeys - The columns that are part of the partition key of the table .
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clusteringKeys

        SchemaDefinition.Builder clusteringKeys​(Collection<ClusteringKey> clusteringKeys)

        The columns that are part of the clustering key of the table.

        Parameters:
        clusteringKeys - The columns that are part of the clustering key of the table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clusteringKeys

        SchemaDefinition.Builder clusteringKeys​(ClusteringKey... clusteringKeys)

        The columns that are part of the clustering key of the table.

        Parameters:
        clusteringKeys - The columns that are part of the clustering key of the table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • staticColumns

        SchemaDefinition.Builder staticColumns​(Collection<StaticColumn> staticColumns)

        The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition.

        Parameters:
        staticColumns - The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • staticColumns

        SchemaDefinition.Builder staticColumns​(StaticColumn... staticColumns)

        The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition.

        Parameters:
        staticColumns - The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • staticColumns

        SchemaDefinition.Builder staticColumns​(Consumer<StaticColumn.Builder>... staticColumns)

        The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition.

        This is a convenience method that creates an instance of the StaticColumn.Builder avoiding the need to create one manually via StaticColumn.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #staticColumns(List).

        Parameters:
        staticColumns - a consumer that will call methods on StaticColumn.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #staticColumns(java.util.Collection)