Class ResultSetBuilder
java.lang.Object
org.apache.cassandra.cql3.selection.ResultSetBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, boolean unmask) ResultSetBuilder(ResultSet.ResultMetadata metadata, Selection.Selectors selectors, boolean unmask, GroupMaker groupMaker) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ByteBuffer v) voidvoidadd(ColumnData columnData, long nowInSec) build()Builds theResultSetlonggetSize()voidnewRow(ProtocolVersion protocolVersion, DecoratedKey partitionKey, Clustering<?> clustering, List<ColumnMetadata> columns) Notifies thisBuilderthat a new row is being processed.booleanshouldReject(long thresholdBytes) booleanshouldWarn(long thresholdBytes)
-
Constructor Details
-
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 Details
-
shouldWarn
public boolean shouldWarn(long thresholdBytes) -
shouldReject
public boolean shouldReject(long thresholdBytes) -
getSize
public long getSize() -
add
-
add
-
add
-
newRow
public void newRow(ProtocolVersion protocolVersion, DecoratedKey partitionKey, Clustering<?> clustering, List<ColumnMetadata> columns) Notifies thisBuilderthat a new row is being processed.- Parameters:
partitionKey- the partition key of the new rowclustering- the clustering of the new row
-
build
Builds theResultSet
-