Package org.apache.cassandra.db.rows
Class BTreeRow.Builder
java.lang.Object
org.apache.cassandra.db.rows.BTreeRow.Builder
- All Implemented Interfaces:
Row.Builder
- Enclosing class:
- BTreeRow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Clustering<?>protected Row.Deletionprotected LivenessInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(boolean isSorted) protectedBuilder(BTreeRow.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a cell to this builder.voidaddComplexDeletion(ColumnMetadata column, DeletionTime complexDeletion) Adds a complex deletion.voidAdds the liveness information for the partition key columns of this row.voidaddRowDeletion(Row.Deletion deletion) Adds the deletion information for this row.build()Builds and return built row.Clustering<?>The clustering for the row that is currently being built.copy()Creates a copy of thisBuilder.booleanisSorted()Whether the builder is a sorted one or not.voidnewRow(Clustering<?> clustering) Prepares the builder to build a new row of clusteringclustering.protected voidreset()
-
Field Details
-
clustering
-
-
deletion
-
-
Constructor Details
-
Builder
protected Builder(boolean isSorted) -
Builder
-
-
Method Details
-
copy
Description copied from interface:Row.BuilderCreates a copy of thisBuilder.- Specified by:
copyin interfaceRow.Builder- Returns:
- a copy of this
Builder
-
isSorted
public boolean isSorted()Description copied from interface:Row.BuilderWhether the builder is a sorted one or not.- Specified by:
isSortedin interfaceRow.Builder- Returns:
- if the builder requires calls to be done in sorted order or not (see above).
-
newRow
Description copied from interface:Row.BuilderPrepares the builder to build a new row of clusteringclustering.This should always be the first call for a given row.
- Specified by:
newRowin interfaceRow.Builder- Parameters:
clustering- the clustering for the new row.
-
clustering
Description copied from interface:Row.BuilderThe clustering for the row that is currently being built.- Specified by:
clusteringin interfaceRow.Builder- Returns:
- the clustering for the row that is currently being built, or
nullifRow.Builder.newRow(org.apache.cassandra.db.Clustering<?>)hasn't yet been called.
-
reset
protected void reset() -
addPrimaryKeyLivenessInfo
Description copied from interface:Row.BuilderAdds the liveness information for the partition key columns of this row. This call is optional (skipping it is equivalent to callingaddPartitionKeyLivenessInfo(LivenessInfo.NONE)).- Specified by:
addPrimaryKeyLivenessInfoin interfaceRow.Builder- Parameters:
info- the liveness information for the partition key columns of the built row.
-
addRowDeletion
Description copied from interface:Row.BuilderAdds the deletion information for this row. This call is optional and can be skipped if the row is not deleted.- Specified by:
addRowDeletionin interfaceRow.Builder- Parameters:
deletion- the row deletion time, orDeletion.LIVEif the row isn't deleted.
-
addCell
Description copied from interface:Row.BuilderAdds a cell to this builder.- Specified by:
addCellin interfaceRow.Builder- Parameters:
cell- the cell to add.
-
addComplexDeletion
Description copied from interface:Row.BuilderAdds a complex deletion.- Specified by:
addComplexDeletionin interfaceRow.Builder- Parameters:
column- the column for which to add thecomplexDeletion.complexDeletion- the complex deletion time to add.
-
build
Description copied from interface:Row.BuilderBuilds and return built row.- Specified by:
buildin interfaceRow.Builder- Returns:
- the last row built by this builder.
-