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, boolean unmask)
ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, boolean unmask, GroupMaker groupMaker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.nio.ByteBuffer v)
void
add(Cell<?> c, long nowInSec)
void
add(ColumnData columnData, long nowInSec)
ResultSet
build()
Builds theResultSet
long
getSize()
void
newRow(ProtocolVersion protocolVersion, DecoratedKey partitionKey, Clustering<?> clustering, java.util.List<ColumnMetadata> columns)
Notifies thisBuilder
that a new row is being processed.boolean
shouldReject(long thresholdBytes)
boolean
shouldWarn(long thresholdBytes)
-
-
-
Constructor Detail
-
ResultSetBuilder
public ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, boolean unmask)
-
ResultSetBuilder
public ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, boolean unmask, 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, long nowInSec)
-
add
public void add(ColumnData columnData, long nowInSec)
-
newRow
public void newRow(ProtocolVersion protocolVersion, DecoratedKey partitionKey, Clustering<?> clustering, java.util.List<ColumnMetadata> columns)
Notifies thisBuilder
that 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
-
-