public static class BTreeBackedRow.Builder extends java.lang.Object implements Row.Builder
| Modifier and Type | Field and Description |
|---|---|
protected Clustering |
clustering |
protected Columns |
columns |
protected DeletionTime |
deletion |
protected LivenessInfo |
primaryKeyLivenessInfo |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(Columns columns,
boolean isSorted) |
protected |
Builder(Columns columns,
boolean isSorted,
int nowInSecs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(Cell cell)
Adds a cell to this builder.
|
void |
addComplexDeletion(ColumnDefinition 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(DeletionTime 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.
|
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 final Columns columns
protected Clustering clustering
protected LivenessInfo primaryKeyLivenessInfo
protected DeletionTime deletion
protected Builder(Columns columns, boolean isSorted)
protected Builder(Columns columns, boolean isSorted, int nowInSecs)
public 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(DeletionTime deletion)
Row.BuilderaddRowDeletion in interface Row.Builderdeletion - the row deletion time, or DeletionTime.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(ColumnDefinition 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 © 2015 The Apache Software Foundation