@@ -100,6 +100,15 @@ public interface RowStep extends Build {
100
100
*/
101
101
ColumnFamilyStep row (final byte [] row );
102
102
103
+ /**
104
+ * Set the row of the {@link Key} that this builder will build to the parameter.
105
+ *
106
+ * @param row the row to use for the key
107
+ * @return this builder
108
+ * @since 3.1.0
109
+ */
110
+ ColumnFamilyStep row (final ByteSequence row );
111
+
103
112
/**
104
113
* Set the row of the {@link Key} that this builder will build to the parameter.
105
114
*
@@ -136,6 +145,15 @@ public interface ColumnFamilyStep extends ColumnVisibilityStep {
136
145
*/
137
146
ColumnQualifierStep family (final byte [] columnFamily );
138
147
148
+ /**
149
+ * Set the column family of the {@link Key} that this builder will build to the parameter.
150
+ *
151
+ * @param columnFamily the column family to use for the {@link Key}
152
+ * @return this builder
153
+ * @since 3.1.0
154
+ */
155
+ ColumnQualifierStep family (final ByteSequence columnFamily );
156
+
139
157
/**
140
158
* Set the column family of the {@link Key} that this builder will build to the parameter.
141
159
*
@@ -180,6 +198,15 @@ public interface ColumnQualifierStep extends ColumnVisibilityStep {
180
198
*/
181
199
ColumnVisibilityStep qualifier (final byte [] columnQualifier );
182
200
201
+ /**
202
+ * Set the column qualifier of the {@link Key} that this builder will build to the parameter.
203
+ *
204
+ * @param columnQualifier the column qualifier to use for the {@link Key}
205
+ * @return this builder
206
+ * @since 3.1.0
207
+ */
208
+ ColumnVisibilityStep qualifier (final ByteSequence columnQualifier );
209
+
183
210
/**
184
211
* Set the column qualifier of the {@link Key} that this builder will build to the parameter.
185
212
*
@@ -225,6 +252,15 @@ public interface ColumnVisibilityStep extends Build {
225
252
*/
226
253
Build visibility (final byte [] columnVisibility );
227
254
255
+ /**
256
+ * Set the column qualifier of the {@link Key} that this builder will build to the parameter.
257
+ *
258
+ * @param columnVisibility the column visibility to use for the {@link Key}
259
+ * @return this builder
260
+ * @since 3.1.0
261
+ */
262
+ Build visibility (ByteSequence columnVisibility );
263
+
228
264
/**
229
265
* Set the column qualifier of the {@link Key} that this builder will build to the parameter.
230
266
*
@@ -312,6 +348,19 @@ public ColumnFamilyStep row(final byte[] row) {
312
348
return row (row , 0 , row .length );
313
349
}
314
350
351
+ @ Override
352
+ public ColumnFamilyStep row (ByteSequence row ) {
353
+ if (row .isBackedByArray ()) {
354
+ this .row = row .getBackingArray ();
355
+ this .rowOffset = row .offset ();
356
+ } else {
357
+ this .row = row .toArray ();
358
+ this .rowOffset = 0 ;
359
+ }
360
+ this .rowLength = row .length ();
361
+ return this ;
362
+ }
363
+
315
364
@ Override
316
365
public ColumnFamilyStep row (final Text row ) {
317
366
return row (row .getBytes (), 0 , row .getLength ());
@@ -335,6 +384,19 @@ public ColumnQualifierStep family(final byte[] family) {
335
384
return family (family , 0 , family .length );
336
385
}
337
386
387
+ @ Override
388
+ public ColumnQualifierStep family (ByteSequence columnFamily ) {
389
+ if (columnFamily .isBackedByArray ()) {
390
+ this .family = columnFamily .getBackingArray ();
391
+ this .familyOffset = columnFamily .offset ();
392
+ } else {
393
+ this .family = columnFamily .toArray ();
394
+ this .familyOffset = 0 ;
395
+ }
396
+ this .familyLength = columnFamily .length ();
397
+ return this ;
398
+ }
399
+
338
400
@ Override
339
401
public ColumnQualifierStep family (Text family ) {
340
402
return family (family .getBytes (), 0 , family .getLength ());
@@ -358,6 +420,19 @@ public ColumnVisibilityStep qualifier(final byte[] qualifier) {
358
420
return qualifier (qualifier , 0 , qualifier .length );
359
421
}
360
422
423
+ @ Override
424
+ public ColumnVisibilityStep qualifier (ByteSequence columnQualifier ) {
425
+ if (columnQualifier .isBackedByArray ()) {
426
+ this .qualifier = columnQualifier .getBackingArray ();
427
+ this .qualifierOffset = columnQualifier .offset ();
428
+ } else {
429
+ this .qualifier = columnQualifier .toArray ();
430
+ this .qualifierOffset = 0 ;
431
+ }
432
+ this .qualifierLength = columnQualifier .length ();
433
+ return this ;
434
+ }
435
+
361
436
@ Override
362
437
public ColumnVisibilityStep qualifier (Text qualifier ) {
363
438
return qualifier (qualifier .getBytes (), 0 , qualifier .getLength ());
@@ -381,6 +456,19 @@ public Build visibility(final byte[] visibility) {
381
456
return visibility (visibility , 0 , visibility .length );
382
457
}
383
458
459
+ @ Override
460
+ public Build visibility (ByteSequence columnVisibility ) {
461
+ if (columnVisibility .isBackedByArray ()) {
462
+ this .visibility = columnVisibility .getBackingArray ();
463
+ this .visibilityOffset = columnVisibility .offset ();
464
+ } else {
465
+ this .visibility = columnVisibility .toArray ();
466
+ this .visibilityOffset = 0 ;
467
+ }
468
+ this .visibilityLength = columnVisibility .length ();
469
+ return this ;
470
+ }
471
+
384
472
@ Override
385
473
public Build visibility (Text visibility ) {
386
474
return visibility (visibility .getBytes (), 0 , visibility .getLength ());
0 commit comments