forked from aws/aws-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScanRequest.java
More file actions
602 lines (554 loc) · 26.2 KB
/
ScanRequest.java
File metadata and controls
602 lines (554 loc) · 26.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.dynamodb.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
/**
* Container for the parameters to the {@link com.amazonaws.services.dynamodb.AmazonDynamoDB#scan(ScanRequest) Scan operation}.
* <p>
* Retrieves one or more items and its attributes by performing a full scan of a table.
* </p>
* <p>
* Provide a <code>ScanFilter</code> to get more specific results.
* </p>
*
* @see com.amazonaws.services.dynamodb.AmazonDynamoDB#scan(ScanRequest)
*/
@Deprecated
public class ScanRequest extends AmazonWebServiceRequest implements Serializable {
/**
* The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>3 - 255<br/>
* <b>Pattern: </b>[a-zA-Z0-9_.-]+<br/>
*/
private String tableName;
/**
* List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*/
private java.util.List<String> attributesToGet;
/**
* The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
* <p>
* <b>Constraints:</b><br/>
* <b>Range: </b>1 - <br/>
*/
private Integer limit;
/**
* If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*/
private Boolean count;
/**
* Evaluates the scan results and returns only the desired values.
*/
private java.util.Map<String,Condition> scanFilter;
/**
* Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
*/
private Key exclusiveStartKey;
/**
* Default constructor for a new ScanRequest object. Callers should use the
* setter or fluent setter (with...) methods to initialize this object after creating it.
*/
public ScanRequest() {}
/**
* Constructs a new ScanRequest object.
* Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param tableName The name of the table in which you want to scan.
* Allowed characters are <code>a-z</code>, <code>A-Z</code>,
* <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen)
* and <code>.</code> (period).
*/
public ScanRequest(String tableName) {
this.tableName = tableName;
}
/**
* The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>3 - 255<br/>
* <b>Pattern: </b>[a-zA-Z0-9_.-]+<br/>
*
* @return The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
*/
public String getTableName() {
return tableName;
}
/**
* The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>3 - 255<br/>
* <b>Pattern: </b>[a-zA-Z0-9_.-]+<br/>
*
* @param tableName The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
*/
public void setTableName(String tableName) {
this.tableName = tableName;
}
/**
* The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
* <p>
* Returns a reference to this object so that method calls can be chained together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>3 - 255<br/>
* <b>Pattern: </b>[a-zA-Z0-9_.-]+<br/>
*
* @param tableName The name of the table in which you want to scan. Allowed characters
* are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>,
* <code>_</code> (underscore), <code>-</code> (hyphen) and
* <code>.</code> (period).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withTableName(String tableName) {
this.tableName = tableName;
return this;
}
/**
* List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*
* @return List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
*/
public java.util.List<String> getAttributesToGet() {
return attributesToGet;
}
/**
* List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*
* @param attributesToGet List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
*/
public void setAttributesToGet(java.util.Collection<String> attributesToGet) {
if (attributesToGet == null) {
this.attributesToGet = null;
return;
}
java.util.List<String> attributesToGetCopy = new java.util.ArrayList<String>(attributesToGet.size());
attributesToGetCopy.addAll(attributesToGet);
this.attributesToGet = attributesToGetCopy;
}
/**
* List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
* <p>
* Returns a reference to this object so that method calls can be chained together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*
* @param attributesToGet List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withAttributesToGet(String... attributesToGet) {
if (getAttributesToGet() == null) setAttributesToGet(new java.util.ArrayList<String>(attributesToGet.length));
for (String value : attributesToGet) {
getAttributesToGet().add(value);
}
return this;
}
/**
* List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
* <p>
* Returns a reference to this object so that method calls can be chained together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - <br/>
*
* @param attributesToGet List of <code>Attribute</code> names. If attribute names are not
* specified then all attributes will be returned. If some attributes are
* not found, they will not appear in the result.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withAttributesToGet(java.util.Collection<String> attributesToGet) {
if (attributesToGet == null) {
this.attributesToGet = null;
} else {
java.util.List<String> attributesToGetCopy = new java.util.ArrayList<String>(attributesToGet.size());
attributesToGetCopy.addAll(attributesToGet);
this.attributesToGet = attributesToGetCopy;
}
return this;
}
/**
* The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
* <p>
* <b>Constraints:</b><br/>
* <b>Range: </b>1 - <br/>
*
* @return The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
*/
public Integer getLimit() {
return limit;
}
/**
* The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
* <p>
* <b>Constraints:</b><br/>
* <b>Range: </b>1 - <br/>
*
* @param limit The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
*/
public void setLimit(Integer limit) {
this.limit = limit;
}
/**
* The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
* <p>
* Returns a reference to this object so that method calls can be chained together.
* <p>
* <b>Constraints:</b><br/>
* <b>Range: </b>1 - <br/>
*
* @param limit The maximum number of items to return. If Amazon DynamoDB hits this
* limit while scanning the table, it stops the scan and returns the
* matching values up to the limit, and a <code>LastEvaluatedKey</code>
* to apply in a subsequent operation to continue the scan. Also, if the
* scanned data set size exceeds 1 MB before Amazon DynamoDB hits this
* limit, it stops the scan and returns the matching values up to the
* limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent
* operation to continue the scan.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*
* @return If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*/
public Boolean isCount() {
return count;
}
/**
* If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*
* @param count If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*/
public void setCount(Boolean count) {
this.count = count;
}
/**
* If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param count If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withCount(Boolean count) {
this.count = count;
return this;
}
/**
* If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*
* @return If set to <code>true</code>, Amazon DynamoDB returns a total number of
* items for the <code>Scan</code> operation, even if the operation has
* no matching items for the assigned filter. Do not set
* <code>Count</code> to <code>true</code> while providing a list of
* <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a
* validation error.
*/
public Boolean getCount() {
return count;
}
/**
* Evaluates the scan results and returns only the desired values.
*
* @return Evaluates the scan results and returns only the desired values.
*/
public java.util.Map<String,Condition> getScanFilter() {
return scanFilter;
}
/**
* Evaluates the scan results and returns only the desired values.
*
* @param scanFilter Evaluates the scan results and returns only the desired values.
*/
public void setScanFilter(java.util.Map<String,Condition> scanFilter) {
this.scanFilter = scanFilter;
}
/**
* Evaluates the scan results and returns only the desired values.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param scanFilter Evaluates the scan results and returns only the desired values.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withScanFilter(java.util.Map<String,Condition> scanFilter) {
setScanFilter(scanFilter);
return this;
}
/**
* Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
*
* @return Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
*/
public Key getExclusiveStartKey() {
return exclusiveStartKey;
}
/**
* Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
*
* @param exclusiveStartKey Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
*/
public void setExclusiveStartKey(Key exclusiveStartKey) {
this.exclusiveStartKey = exclusiveStartKey;
}
/**
* Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param exclusiveStartKey Primary key of the item from which to continue an earlier scan. An
* earlier scan might provide this value if that scan operation was
* interrupted before scanning the entire table; either because of the
* result set size or the <code>Limit</code> parameter. The
* <code>LastEvaluatedKey</code> can be passed back in a new scan request
* to continue the operation from that point.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ScanRequest withExclusiveStartKey(Key exclusiveStartKey) {
this.exclusiveStartKey = exclusiveStartKey;
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getTableName() != null) sb.append("TableName: " + getTableName() + ", ");
if (getAttributesToGet() != null) sb.append("AttributesToGet: " + getAttributesToGet() + ", ");
if (getLimit() != null) sb.append("Limit: " + getLimit() + ", ");
if (isCount() != null) sb.append("Count: " + isCount() + ", ");
if (getScanFilter() != null) sb.append("ScanFilter: " + getScanFilter() + ", ");
if (getExclusiveStartKey() != null) sb.append("ExclusiveStartKey: " + getExclusiveStartKey() + ", ");
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode());
hashCode = prime * hashCode + ((getAttributesToGet() == null) ? 0 : getAttributesToGet().hashCode());
hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode());
hashCode = prime * hashCode + ((isCount() == null) ? 0 : isCount().hashCode());
hashCode = prime * hashCode + ((getScanFilter() == null) ? 0 : getScanFilter().hashCode());
hashCode = prime * hashCode + ((getExclusiveStartKey() == null) ? 0 : getExclusiveStartKey().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof ScanRequest == false) return false;
ScanRequest other = (ScanRequest)obj;
if (other.getTableName() == null ^ this.getTableName() == null) return false;
if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false;
if (other.getAttributesToGet() == null ^ this.getAttributesToGet() == null) return false;
if (other.getAttributesToGet() != null && other.getAttributesToGet().equals(this.getAttributesToGet()) == false) return false;
if (other.getLimit() == null ^ this.getLimit() == null) return false;
if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false) return false;
if (other.isCount() == null ^ this.isCount() == null) return false;
if (other.isCount() != null && other.isCount().equals(this.isCount()) == false) return false;
if (other.getScanFilter() == null ^ this.getScanFilter() == null) return false;
if (other.getScanFilter() != null && other.getScanFilter().equals(this.getScanFilter()) == false) return false;
if (other.getExclusiveStartKey() == null ^ this.getExclusiveStartKey() == null) return false;
if (other.getExclusiveStartKey() != null && other.getExclusiveStartKey().equals(this.getExclusiveStartKey()) == false) return false;
return true;
}
}