Interface Row.Builder

    • Method Detail

      • copy

        Row.Builder copy()
        Creates a copy of this Builder.
        Returns:
        a copy of this Builder
      • isSorted

        boolean isSorted()
        Whether the builder is a sorted one or not.
        Returns:
        if the builder requires calls to be done in sorted order or not (see above).
      • newRow

        void newRow​(Clustering<?> clustering)
        Prepares the builder to build a new row of clustering clustering.

        This should always be the first call for a given row.

        Parameters:
        clustering - the clustering for the new row.
      • addPrimaryKeyLivenessInfo

        void addPrimaryKeyLivenessInfo​(LivenessInfo info)
        Adds the liveness information for the partition key columns of this row. This call is optional (skipping it is equivalent to calling addPartitionKeyLivenessInfo(LivenessInfo.NONE)).
        Parameters:
        info - the liveness information for the partition key columns of the built row.
      • addRowDeletion

        void addRowDeletion​(Row.Deletion deletion)
        Adds the deletion information for this row. This call is optional and can be skipped if the row is not deleted.
        Parameters:
        deletion - the row deletion time, or Deletion.LIVE if the row isn't deleted.
      • addCell

        void addCell​(Cell<?> cell)
        Adds a cell to this builder.
        Parameters:
        cell - the cell to add.
      • addComplexDeletion

        void addComplexDeletion​(ColumnMetadata column,
                                DeletionTime complexDeletion)
        Adds a complex deletion.
        Parameters:
        column - the column for which to add the complexDeletion.
        complexDeletion - the complex deletion time to add.
      • build

        Row build()
        Builds and return built row.
        Returns:
        the last row built by this builder.