public class Condition extends Object
Constructor and Description |
---|
Condition(byte[] cf,
byte[] cq)
Creates a new condition.
|
Condition(ByteSequence cf,
ByteSequence cq)
Creates a new condition.
|
Condition(CharSequence cf,
CharSequence cq)
Creates a new condition.
|
Condition(org.apache.hadoop.io.Text cf,
org.apache.hadoop.io.Text cq)
Creates a new condition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ByteSequence |
getFamily()
Gets the column family of this condition.
|
IteratorSetting[] |
getIterators()
Gets the iterators for this condition.
|
ByteSequence |
getQualifier()
Gets the column qualifier of this condition.
|
Long |
getTimestamp()
Gets the timestamp of this condition.
|
ByteSequence |
getValue()
Gets the value of this condition.
|
ByteSequence |
getVisibility()
Gets the column visibility of this condition.
|
int |
hashCode() |
Condition |
setIterators(IteratorSetting... iterators)
Set iterators to use when reading the columns value.
|
Condition |
setTimestamp(long ts)
Sets the version for the column to check.
|
Condition |
setValue(byte[] value)
This method sets the expected value of a column.
|
Condition |
setValue(ByteSequence value)
This method sets the expected value of a column.
|
Condition |
setValue(CharSequence value)
This method sets the expected value of a column.
|
Condition |
setValue(org.apache.hadoop.io.Text value)
This method sets the expected value of a column.
|
Condition |
setVisibility(ColumnVisibility cv)
Sets the visibility for the column to check.
|
public Condition(CharSequence cf, CharSequence cq)
cf
- column familycq
- column qualifierIllegalArgumentException
- if any argument is nullpublic Condition(byte[] cf, byte[] cq)
cf
- column familycq
- column qualifierIllegalArgumentException
- if any argument is nullpublic Condition(org.apache.hadoop.io.Text cf, org.apache.hadoop.io.Text cq)
cf
- column familycq
- column qualifierIllegalArgumentException
- if any argument is nullpublic Condition(ByteSequence cf, ByteSequence cq)
cf
- column familycq
- column qualifierIllegalArgumentException
- if any argument is nullpublic ByteSequence getFamily()
public ByteSequence getQualifier()
public Condition setTimestamp(long ts)
ts
- timestamppublic Long getTimestamp()
public Condition setValue(CharSequence value)
setValue(byte[])
.value
- valueIllegalArgumentException
- if value is nullpublic Condition setValue(byte[] value)
value
- valueIllegalArgumentException
- if value is nullpublic Condition setValue(org.apache.hadoop.io.Text value)
setValue(byte[])
.value
- valueIllegalArgumentException
- if value is nullpublic Condition setValue(ByteSequence value)
setValue(byte[])
.value
- valueIllegalArgumentException
- if value is nullpublic ByteSequence getValue()
public Condition setVisibility(ColumnVisibility cv)
cv
- column visibilityIllegalArgumentException
- if cv is nullpublic ByteSequence getVisibility()
public Condition setIterators(IteratorSetting... iterators)
iterators
- iteratorsIllegalArgumentException
- if iterators or any of its elements are null, or if any two iterators share the same name or prioritypublic IteratorSetting[] getIterators()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.