@InterfaceAudience.Public @InterfaceStability.Evolving public class ColumnRangePredicate extends Object
Constructor and Description |
---|
ColumnRangePredicate(ColumnSchema column)
Create the predicate on the specified column
|
Modifier and Type | Method and Description |
---|---|
ColumnSchema |
getColumn()
Get the column used by this predicate
|
byte[] |
getLowerBound()
Get the lower bound in its raw representation
|
byte[] |
getUpperBound()
Get the upper bound in its raw representation
|
void |
setLowerBound(boolean lowerBound)
Set a boolean for the lower bound
|
void |
setLowerBound(byte lowerBound)
Set a byte for the lower bound
|
void |
setLowerBound(byte[] lowerBound)
Set a binary value for the lower bound
|
void |
setLowerBound(double lowerBound)
Set a double for the lower bound
|
void |
setLowerBound(float lowerBound)
Set a float for the lower bound
|
void |
setLowerBound(int lowerBound)
Set an int for the lower bound
|
void |
setLowerBound(long lowerBound)
Set a long for the lower bound
If 'lowerBound' is a timestamp see
PartialRow.addLong(String, long) for the
format. |
void |
setLowerBound(short lowerBound)
Set a short for the lower bound
|
void |
setLowerBound(String lowerBound)
Set a string for the lower bound
|
void |
setUpperBound(boolean upperBound)
Set a boolean for the upper bound
|
void |
setUpperBound(byte upperBound)
Set a byte for the upper bound
|
void |
setUpperBound(byte[] upperBound)
Set a binary value for the upper bound
|
void |
setUpperBound(double upperBound)
Set a double for the upper bound
|
void |
setUpperBound(float upperBound)
Set a float for the upper bound
|
void |
setUpperBound(int upperBound)
Set an int for the upper bound
|
void |
setUpperBound(long upperBound)
Set a long for the upper bound
If 'upperBound' is a timestamp see
PartialRow.addLong(String, long) for the
format. |
void |
setUpperBound(short upperBound)
Set a short for the upper bound
|
void |
setUpperBound(String upperBound)
Set a string for the upper bound
|
static byte[] |
toByteArray(List<ColumnRangePredicate> predicates)
Converts a list of predicates into an opaque byte array.
|
public ColumnRangePredicate(ColumnSchema column)
column
- public void setLowerBound(boolean lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(byte lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(short lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(int lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(long lowerBound)
PartialRow.addLong(String, long)
for the
format.lowerBound
- value for the lower boundpublic void setLowerBound(String lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(byte[] lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(float lowerBound)
lowerBound
- value for the lower boundpublic void setLowerBound(double lowerBound)
lowerBound
- value for the lower boundpublic void setUpperBound(boolean upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(byte upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(short upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(int upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(long upperBound)
PartialRow.addLong(String, long)
for the
format.upperBound
- value for the upper boundpublic void setUpperBound(String upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(byte[] upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(float upperBound)
upperBound
- value for the upper boundpublic void setUpperBound(double upperBound)
upperBound
- value for the upper boundpublic ColumnSchema getColumn()
public byte[] getLowerBound()
public byte[] getUpperBound()
public static byte[] toByteArray(List<ColumnRangePredicate> predicates)
predicates
- a list of predicatesCopyright © 2015. All rights reserved.