public class ColumnVisibility extends Object
ColumnVisibility(byte[])
for the
definition of an expression.Modifier and Type | Class and Description |
---|---|
static class |
ColumnVisibility.Node |
static class |
ColumnVisibility.NodeComparator |
static class |
ColumnVisibility.NodeType |
Constructor and Description |
---|
ColumnVisibility()
Empty visibility.
|
ColumnVisibility(byte[] expression)
Set the column visibility for a Mutation.
|
ColumnVisibility(String expression)
|
ColumnVisibility(org.apache.hadoop.io.Text expression) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ColumnVisibility otherLe)
Compares two ColumnVisibilities for string equivalence, not as a meaningful comparison of terms and conditions.
|
boolean |
equals(Object obj)
|
byte[] |
flatten() |
byte[] |
getExpression()
Accessor for the underlying byte string.
|
ColumnVisibility.Node |
getParseTree() |
int |
hashCode() |
String |
toString() |
public ColumnVisibility()
public ColumnVisibility(String expression)
expression
- public ColumnVisibility(org.apache.hadoop.io.Text expression)
public ColumnVisibility(byte[] expression)
expression
- An expression of the rights needed to see this mutation. The expression is a sequence of characters from the set [A-Za-z0-9_-] along with the
binary operators "&" and "|" indicating that both operands are necessary, or the either is necessary. The following are valid expressions for
visibility:
A A|B (A|B)&(C|D) orange|(red&yellow)The following are not valid expressions for visibility:
A|B&C A=B A|B| A&|B () ) dog|!cat
public byte[] getExpression()
public byte[] flatten()
public boolean equals(ColumnVisibility otherLe)
public ColumnVisibility.Node getParseTree()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.