Skip to content

Commit a204075

Browse files
IGNITE-27942 Messages cleanup (#12786)
1 parent b70ab63 commit a204075

191 files changed

Lines changed: 0 additions & 5180 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/CalciteErrorMessage.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,13 @@ public UUID queryId() {
5555
return qryId;
5656
}
5757

58-
/** */
59-
public void queryId(UUID qryId) {
60-
this.qryId = qryId;
61-
}
62-
6358
/**
6459
* @return Fragment ID.
6560
*/
6661
public long fragmentId() {
6762
return fragmentId;
6863
}
6964

70-
/** */
71-
public void fragmentId(long fragmentId) {
72-
this.fragmentId = fragmentId;
73-
}
74-
7565
/** {@inheritDoc} */
7666
@Override public MessageType type() {
7767
return MessageType.QUERY_ERROR_MESSAGE;

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/GenericValueMessage.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,6 @@ public GenericValueMessage(Object val) {
4848
return val;
4949
}
5050

51-
/**
52-
* @return Serialized value.
53-
*/
54-
public byte[] serialized() {
55-
return serialized;
56-
}
57-
58-
/**
59-
* @param serialized Serialized value.
60-
*/
61-
public void serialized(byte[] serialized) {
62-
this.serialized = serialized;
63-
}
64-
6551
/** {@inheritDoc} */
6652
@Override public void prepareMarshal(GridCacheSharedContext<?, ?> ctx) throws IgniteCheckedException {
6753
if (val != null && serialized == null)

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/InboxCloseMessage.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,41 +55,20 @@ public UUID queryId() {
5555
return qryId;
5656
}
5757

58-
/**
59-
* @param queryId New query ID.
60-
*/
61-
public void queryId(UUID qryId) {
62-
this.qryId = qryId;
63-
}
64-
6558
/**
6659
* @return Fragment ID.
6760
*/
6861
public long fragmentId() {
6962
return fragmentId;
7063
}
7164

72-
/**
73-
* @param fragmentId New fragment ID.
74-
*/
75-
public void fragmentId(long fragmentId) {
76-
this.fragmentId = fragmentId;
77-
}
78-
7965
/**
8066
* @return Exchange ID.
8167
*/
8268
public long exchangeId() {
8369
return exchangeId;
8470
}
8571

86-
/**
87-
* @param exchangeId New exchange ID.
88-
*/
89-
public void exchangeId(long exchangeId) {
90-
this.exchangeId = exchangeId;
91-
}
92-
9372
/** {@inheritDoc} */
9473
@Override public MessageType type() {
9574
return MessageType.QUERY_INBOX_CANCEL_MESSAGE;

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/QueryBatchAcknowledgeMessage.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -58,53 +58,25 @@ public QueryBatchAcknowledgeMessage(UUID qryId, long fragmentId, long exchangeId
5858
return qryId;
5959
}
6060

61-
/**
62-
* @param qryId New query ID.
63-
*/
64-
public void queryId(UUID qryId) {
65-
this.qryId = qryId;
66-
}
67-
6861
/** {@inheritDoc} */
6962
@Override public long fragmentId() {
7063
return fragmentId;
7164
}
7265

73-
/**
74-
* @param fragmentId New fragment ID.
75-
*/
76-
public void fragmentId(long fragmentId) {
77-
this.fragmentId = fragmentId;
78-
}
79-
8066
/**
8167
* @return Exchange ID.
8268
*/
8369
public long exchangeId() {
8470
return exchangeId;
8571
}
8672

87-
/**
88-
* @param exchangeId New exchange ID.
89-
*/
90-
public void exchangeId(long exchangeId) {
91-
this.exchangeId = exchangeId;
92-
}
93-
9473
/**
9574
* @return Batch ID.
9675
*/
9776
public int batchId() {
9877
return batchId;
9978
}
10079

101-
/**
102-
* @param batchId New batch ID.
103-
*/
104-
public void batchId(int batchId) {
105-
this.batchId = batchId;
106-
}
107-
10880
/** {@inheritDoc} */
10981
@Override public MessageType type() {
11082
return MessageType.QUERY_ACKNOWLEDGE_MESSAGE;

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/QueryBatchMessage.java

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -74,88 +74,39 @@ public QueryBatchMessage(UUID qryId, long fragmentId, long exchangeId, int batch
7474
return qryId;
7575
}
7676

77-
/**
78-
* @param qryId Query ID.
79-
*/
80-
public void queryId(UUID qryId) {
81-
this.qryId = qryId;
82-
}
83-
8477
/** {@inheritDoc} */
8578
@Override public long fragmentId() {
8679
return fragmentId;
8780
}
8881

89-
/**
90-
* @param fragmentId Fragment ID.
91-
*/
92-
public void fragmentId(long fragmentId) {
93-
this.fragmentId = fragmentId;
94-
}
95-
9682
/**
9783
* @return Exchange ID.
9884
*/
9985
public long exchangeId() {
10086
return exchangeId;
10187
}
10288

103-
/**
104-
* @param exchangeId Exchange ID.
105-
*/
106-
public void exchangeId(long exchangeId) {
107-
this.exchangeId = exchangeId;
108-
}
109-
11089
/**
11190
* @return Batch ID.
11291
*/
11392
public int batchId() {
11493
return batchId;
11594
}
11695

117-
/**
118-
* @param batchId Batch ID.
119-
*/
120-
public void batchId(int batchId) {
121-
this.batchId = batchId;
122-
}
123-
12496
/**
12597
* @return Last batch flag.
12698
*/
12799
public boolean last() {
128100
return last;
129101
}
130102

131-
/**
132-
* @param last Last batch flag.
133-
*/
134-
public void last(boolean last) {
135-
this.last = last;
136-
}
137-
138103
/**
139104
* @return Rows.
140105
*/
141106
public List<Object> rows() {
142107
return rows;
143108
}
144109

145-
/**
146-
* @return Message rows.
147-
*/
148-
public List<ValueMessage> messageRows() {
149-
return mRows;
150-
}
151-
152-
/**
153-
* @param mRows Message rows.
154-
*/
155-
public void messageRows(List<ValueMessage> mRows) {
156-
this.mRows = mRows;
157-
}
158-
159110
/** {@inheritDoc} */
160111
@Override public void prepareMarshal(GridCacheSharedContext<?, ?> ctx) throws IgniteCheckedException {
161112
if (mRows != null || rows == null)

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/QueryCloseMessage.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ public UUID queryId() {
4545
return qryId;
4646
}
4747

48-
/**
49-
* @param qryId New query ID.
50-
*/
51-
public void queryId(UUID qryId) {
52-
this.qryId = qryId;
53-
}
54-
5548
/** {@inheritDoc} */
5649
@Override public MessageType type() {
5750
return MessageType.QUERY_CLOSE_MESSAGE;

modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/message/QueryStartRequest.java

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -119,43 +119,18 @@ public String schema() {
119119
return schema;
120120
}
121121

122-
/** */
123-
public void schema(String schema) {
124-
this.schema = schema;
125-
}
126-
127122
/** {@inheritDoc} */
128123
@Override public UUID queryId() {
129124
return qryId;
130125
}
131126

132-
/** */
133-
public void queryId(UUID qryId) {
134-
this.qryId = qryId;
135-
}
136-
137127
/**
138128
* @return Registered local query ID on originating node.
139129
*/
140130
public long originatingQueryId() {
141131
return originatingQryId;
142132
}
143133

144-
/** */
145-
public void originatingQueryId(long originatingQryId) {
146-
this.originatingQryId = originatingQryId;
147-
}
148-
149-
/** */
150-
public @Nullable byte[] parametersBytes() {
151-
return paramsBytes;
152-
}
153-
154-
/** */
155-
public void parametersBytes(@Nullable byte[] paramsBytes) {
156-
this.paramsBytes = paramsBytes;
157-
}
158-
159134
/** {@inheritDoc} */
160135
@Override public long fragmentId() {
161136
return fragmentDesc.fragmentId();
@@ -168,47 +143,27 @@ public FragmentDescription fragmentDescription() {
168143
return fragmentDesc;
169144
}
170145

171-
/** */
172-
public void fragmentDescription(FragmentDescription fragmentDesc) {
173-
this.fragmentDesc = fragmentDesc;
174-
}
175-
176146
/**
177147
* @return Topology version.
178148
*/
179149
public AffinityTopologyVersion topologyVersion() {
180150
return ver;
181151
}
182152

183-
/** */
184-
public void topologyVersion(AffinityTopologyVersion ver) {
185-
this.ver = ver;
186-
}
187-
188153
/**
189154
* @return Fragment plan.
190155
*/
191156
public String root() {
192157
return root;
193158
}
194159

195-
/** */
196-
public void root(String root) {
197-
this.root = root;
198-
}
199-
200160
/**
201161
* @return Total count of fragments in query for this node.
202162
*/
203163
public int totalFragmentsCount() {
204164
return totalFragmentsCnt;
205165
}
206166

207-
/** */
208-
public void totalFragmentsCount(int totalFragmentsCnt) {
209-
this.totalFragmentsCnt = totalFragmentsCnt;
210-
}
211-
212167
/**
213168
* @return Query parameters.
214169
*/
@@ -232,38 +187,18 @@ public long timeout() {
232187
return timeout;
233188
}
234189

235-
/** */
236-
public void timeout(long timeout) {
237-
this.timeout = timeout;
238-
}
239-
240-
/** */
241-
public void parametersBytes(long timeout) {
242-
this.timeout = timeout;
243-
}
244-
245190
/**
246191
* @return Transaction entries to mixin on query processing.
247192
*/
248193
public @Nullable Collection<QueryTxEntry> queryTransactionEntries() {
249194
return qryTxEntries;
250195
}
251196

252-
/** */
253-
public void queryTransactionEntries(@Nullable Collection<QueryTxEntry> qryTxEntries) {
254-
this.qryTxEntries = qryTxEntries;
255-
}
256-
257197
/** */
258198
public @Nullable Map<String, String> applicationAttributes() {
259199
return appAttrs;
260200
}
261201

262-
/** */
263-
public void applicationAttributes(@Nullable Map<String, String> appAttrs) {
264-
this.appAttrs = appAttrs;
265-
}
266-
267202
/** {@inheritDoc} */
268203
@Override public void prepareMarshal(GridCacheSharedContext<?, ?> ctx) throws IgniteCheckedException {
269204
if (paramsBytes == null && params != null)

0 commit comments

Comments
 (0)