Package org.apache.cassandra.cql3
Class ResultSet.ResultMetadata
java.lang.Object
org.apache.cassandra.cql3.ResultSet.ResultMetadata
- Enclosing class:
- ResultSet
The metadata for the results of executing a query or prepared statement.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CBCodec<ResultSet.ResultMetadata>static final ResultSet.ResultMetadatafinal List<ColumnSpecification> -
Constructor Summary
ConstructorsConstructorDescriptionResultMetadata(List<ColumnSpecification> names) ResultMetadata(List<ColumnSpecification> names, PagingState pagingState) ResultMetadata(MD5Digest digest, List<ColumnSpecification> names) -
Method Summary
Modifier and TypeMethodDescriptionaddNonSerializedColumns(Collection<? extends ColumnSpecification> columns) Adds the specified columns which will not be serialized.copy()booleanstatic ResultSet.ResultMetadatafromPrepared(CQLStatement statement) intgetFlags()inthashCode()Return only the column names requested by the user, excluding those added for post-query re-orderings, see definition of names and columnCount.voidsetHasMorePages(PagingState pagingState) voidvoidtoString()int
-
Field Details
-
codec
-
EMPTY
-
names
-
-
Constructor Details
-
ResultMetadata
-
ResultMetadata
-
ResultMetadata
-
-
Method Details
-
copy
-
requestNames
Return only the column names requested by the user, excluding those added for post-query re-orderings, see definition of names and columnCount. -
valueCount
public int valueCount() -
getFlags
-
getColumnCount
public int getColumnCount() -
getPagingState
-
addNonSerializedColumns
public ResultSet.ResultMetadata addNonSerializedColumns(Collection<? extends ColumnSpecification> columns) Adds the specified columns which will not be serialized.- Parameters:
columns- the columns
-
setHasMorePages
-
setSkipMetadata
public void setSkipMetadata() -
setMetadataChanged
public void setMetadataChanged() -
getResultMetadataId
-
fromPrepared
-
equals
-
hashCode
public int hashCode() -
toString
-