Class ResultSetBuilder
- java.lang.Object
-
- org.apache.cassandra.cql3.selection.ResultSetBuilder
-
public final class ResultSetBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors)ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, GroupMaker groupMaker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.nio.ByteBuffer v)voidadd(Cell<?> c, int nowInSec)ResultSetbuild()Builds theResultSetlonggetSize()voidnewRow(DecoratedKey partitionKey, Clustering<?> clustering)Notifies thisBuilderthat a new row is being processed.booleanshouldReject(long thresholdBytes)booleanshouldWarn(long thresholdBytes)
-
-
-
Constructor Detail
-
ResultSetBuilder
public ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors)
-
ResultSetBuilder
public ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, GroupMaker groupMaker)
-
-
Method Detail
-
shouldWarn
public boolean shouldWarn(long thresholdBytes)
-
shouldReject
public boolean shouldReject(long thresholdBytes)
-
getSize
public long getSize()
-
add
public void add(java.nio.ByteBuffer v)
-
add
public void add(Cell<?> c, int nowInSec)
-
newRow
public void newRow(DecoratedKey partitionKey, Clustering<?> clustering)
Notifies thisBuilderthat a new row is being processed.- Parameters:
partitionKey- the partition key of the new rowclustering- the clustering of the new row
-
build
public ResultSet build()
Builds theResultSet
-
-