예제 #1
0
 /**
  * Set an encoded (inclusive) start partition key for the scan.
  *
  * @param partitionKey the encoded partition key
  * @return this instance
  */
 @InterfaceAudience.LimitedPrivate("Impala")
 public S lowerBoundPartitionKeyRaw(byte[] partitionKey) {
   if (Bytes.memcmp(partitionKey, lowerBoundPartitionKey) > 0) {
     this.lowerBoundPartitionKey = partitionKey;
   }
   return (S) this;
 }
예제 #2
0
 /**
  * Set an encoded (exclusive) end partition key for the scan.
  *
  * @param partitionKey the encoded partition key
  * @return this instance
  */
 @InterfaceAudience.LimitedPrivate("Impala")
 public S exclusiveUpperBoundPartitionKeyRaw(byte[] partitionKey) {
   if (upperBoundPartitionKey.length == 0
       || Bytes.memcmp(partitionKey, upperBoundPartitionKey) < 0) {
     this.upperBoundPartitionKey = partitionKey;
   }
   return (S) this;
 }
예제 #3
0
 /**
  * Like exclusiveUpperBound() but the encoded primary key is an opaque byte array obtained
  * elsewhere.
  *
  * @param endPrimaryKey bytes containing an encoded end key
  * @return this instance
  * @deprecated use {@link #exclusiveUpperBound(PartialRow)}
  */
 @Deprecated
 public S exclusiveUpperBoundRaw(byte[] endPrimaryKey) {
   if (upperBoundPrimaryKey == AsyncKuduClient.EMPTY_ARRAY
       || Bytes.memcmp(endPrimaryKey, upperBoundPrimaryKey) < 0) {
     this.upperBoundPrimaryKey = endPrimaryKey;
   }
   return (S) this;
 }
예제 #4
0
 /**
  * Like lowerBoundPrimaryKey() but the encoded primary key is an opaque byte array obtained
  * elsewhere.
  *
  * @param startPrimaryKey bytes containing an encoded start key
  * @return this instance
  * @deprecated use {@link #lowerBound(PartialRow)}
  */
 @Deprecated
 public S lowerBoundRaw(byte[] startPrimaryKey) {
   if (lowerBoundPrimaryKey == AsyncKuduClient.EMPTY_ARRAY
       || Bytes.memcmp(startPrimaryKey, lowerBoundPrimaryKey) > 0) {
     this.lowerBoundPrimaryKey = startPrimaryKey;
   }
   return (S) this;
 }