public class DseRowsMetadata extends RowsMetadata
| Modifier and Type | Field and Description |
|---|---|
int |
continuousPageNumber |
boolean |
isLastContinuousPage |
columnCount, columnSpecs, flags, newResultMetadataId, pagingState, pkIndices| Modifier | Constructor and Description |
|---|---|
|
DseRowsMetadata(int columnCount,
ByteBuffer pagingState,
int[] pkIndices,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage)
Builds a new instance with
NO_METADATA == true. |
protected |
DseRowsMetadata(int flags,
List<ColumnSpec> columnSpecs,
int columnCount,
ByteBuffer pagingState,
int[] pkIndices,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage) |
|
DseRowsMetadata(List<ColumnSpec> columnSpecs,
ByteBuffer pagingState,
int[] pkIndices,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage)
Builds a new instance with
NO_METADATA == false; the column count is set to the number
of column specifications in the provided list. |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
computeFlags(boolean noMetadata,
List<ColumnSpec> columnSpecs,
ByteBuffer pagingState,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage) |
static <B> DseRowsMetadata |
decode(B source,
PrimitiveCodec<B> decoder,
boolean withPkIndices,
int protocolVersion) |
<B> void |
encode(B dest,
PrimitiveCodec<B> encoder,
boolean withPkIndices,
int protocolVersion) |
int |
encodedSize(boolean withPkIndices,
int protocolVersion) |
computeFlagspublic final int continuousPageNumber
public final boolean isLastContinuousPage
public DseRowsMetadata(List<ColumnSpec> columnSpecs, ByteBuffer pagingState, int[] pkIndices, byte[] newResultMetadataId, int continuousPageNumber, boolean isLastContinuousPage)
NO_METADATA == false; the column count is set to the number
of column specifications in the provided list.continuousPageNumber - must be negative if this is not a continuous paging response.public DseRowsMetadata(int columnCount,
ByteBuffer pagingState,
int[] pkIndices,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage)
NO_METADATA == true.continuousPageNumber - must be negative if this is not a continuous paging response.protected DseRowsMetadata(int flags,
List<ColumnSpec> columnSpecs,
int columnCount,
ByteBuffer pagingState,
int[] pkIndices,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage)
protected static int computeFlags(boolean noMetadata,
List<ColumnSpec> columnSpecs,
ByteBuffer pagingState,
byte[] newResultMetadataId,
int continuousPageNumber,
boolean isLastContinuousPage)
public <B> void encode(B dest,
PrimitiveCodec<B> encoder,
boolean withPkIndices,
int protocolVersion)
encode in class RowsMetadatapublic int encodedSize(boolean withPkIndices,
int protocolVersion)
encodedSize in class RowsMetadatapublic static <B> DseRowsMetadata decode(B source, PrimitiveCodec<B> decoder, boolean withPkIndices, int protocolVersion)
Copyright © 2017–2022. All rights reserved.