public static class BTreeRow.Builder extends java.lang.Object implements Row.Builder
| Modifier and Type | Field and Description |
|---|---|
protected Clustering<?> |
clustering |
protected Row.Deletion |
deletion |
protected LivenessInfo |
primaryKeyLivenessInfo |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(boolean isSorted) |
protected |
Builder(BTreeRow.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(Cell<?> cell)
Adds a cell to this builder.
|
void |
addComplexDeletion(ColumnMetadata column,
DeletionTime complexDeletion)
Adds a complex deletion.
|
void |
addPrimaryKeyLivenessInfo(LivenessInfo info)
Adds the liveness information for the partition key columns of this row.
|
void |
addRowDeletion(Row.Deletion deletion)
Adds the deletion information for this row.
|
Row |
build()
Builds and return built row.
|
Clustering<?> |
clustering()
The clustering for the row that is currently being built.
|
BTreeRow.Builder |
copy()
Creates a copy of this
Builder. |
boolean |
isSorted()
Whether the builder is a sorted one or not.
|
void |
newRow(Clustering<?> clustering)
Prepares the builder to build a new row of clustering
clustering. |
protected void |
reset() |
protected Clustering<?> clustering
protected LivenessInfo primaryKeyLivenessInfo
protected Row.Deletion deletion
protected Builder(boolean isSorted)
protected Builder(BTreeRow.Builder builder)
public BTreeRow.Builder copy()
Row.BuilderBuilder.copy in interface Row.BuilderBuilderpublic boolean isSorted()
Row.BuilderisSorted in interface Row.Builderpublic void newRow(Clustering<?> clustering)
Row.Builderclustering.
This should always be the first call for a given row.
newRow in interface Row.Builderclustering - the clustering for the new row.public Clustering<?> clustering()
Row.Builderclustering in interface Row.Buildernull if Row.Builder.newRow(org.apache.cassandra.db.Clustering<?>) hasn't
yet been called.protected void reset()
public void addPrimaryKeyLivenessInfo(LivenessInfo info)
Row.BuilderaddPartitionKeyLivenessInfo(LivenessInfo.NONE)).addPrimaryKeyLivenessInfo in interface Row.Builderinfo - the liveness information for the partition key columns of the built row.public void addRowDeletion(Row.Deletion deletion)
Row.BuilderaddRowDeletion in interface Row.Builderdeletion - the row deletion time, or Deletion.LIVE if the row isn't deleted.public void addCell(Cell<?> cell)
Row.BuilderaddCell in interface Row.Buildercell - the cell to add.public void addComplexDeletion(ColumnMetadata column, DeletionTime complexDeletion)
Row.BuilderaddComplexDeletion in interface Row.Buildercolumn - the column for which to add the complexDeletion.complexDeletion - the complex deletion time to add.public Row build()
Row.Builderbuild in interface Row.BuilderCopyright © 2009-2022 The Apache Software Foundation