public final class GroupingState
extends java.lang.Object
GroupMaker state.
 The state contains the primary key of the last row that has been processed by the previous
 GroupMaker used. It can be passed to a GroupMaker to allow to resuming the grouping.
 
 GroupingState is only used for internal paging. When a new page is requested by a client the initial state
 will always be empty.
If the state has a partition key but no clustering, it means that the previous group ended at the end of the previous partition. If the clustering is not null it means that we are in the middle of a group.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | GroupingState.Serializer | 
| Modifier and Type | Field and Description | 
|---|---|
| static GroupingState | EMPTY_STATE | 
| static GroupingState.Serializer | serializer | 
| Constructor and Description | 
|---|
| GroupingState(java.nio.ByteBuffer partitionKey,
             Clustering clustering) | 
| Modifier and Type | Method and Description | 
|---|---|
| Clustering | clustering()Returns the last row clustering or  nullif either no rows has been processed yet or the last
 row was a static row. | 
| boolean | hasClustering()Checks if the state contains a Clustering for the last row that has been processed. | 
| java.nio.ByteBuffer | partitionKey()Returns the last row partition key or  nullif no rows has been processed yet. | 
public static final GroupingState.Serializer serializer
public static final GroupingState EMPTY_STATE
public GroupingState(java.nio.ByteBuffer partitionKey,
                     Clustering clustering)
public java.nio.ByteBuffer partitionKey()
null if no rows has been processed yet.null if no rows has been processed yetpublic Clustering clustering()
null if either no rows has been processed yet or the last
 row was a static row.null if either no rows has been processed yet or the last
 row was a static rowpublic boolean hasClustering()
true if the state contains a Clustering for the last row that has been processed,
 false otherwise.Copyright © 2018 The Apache Software Foundation