org.apache.hadoop.hbase.security.visibility
Class CellVisibility

java.lang.Object
  extended by org.apache.hadoop.hbase.security.visibility.CellVisibility

@InterfaceAudience.Public
@InterfaceStability.Unstable
public class CellVisibility
extends Object

This contains a visibility expression which can be associated with a cell. When it is set with a Mutation, all the cells in that mutation will get associated with this expression. A visibility expression can contain visibility labels combined with logical operators AND(&), OR(|) and NOT(!)


Constructor Summary
CellVisibility(String expression)
           
 
Method Summary
 String getExpression()
           
static String quote(byte[] auth)
          Helps in quoting authentication Strings.
static String quote(String auth)
          Helps in quoting authentication Strings.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellVisibility

public CellVisibility(String expression)
Method Detail

getExpression

public String getExpression()
Returns:
The visibility expression

toString

public String toString()
Overrides:
toString in class Object

quote

public static String quote(String auth)
Helps in quoting authentication Strings. Use this if unicode characters to be used in expression or special characters like '(', ')', '"','\','&','|','!'


quote

public static String quote(byte[] auth)
Helps in quoting authentication Strings. Use this if unicode characters to be used in expression or special characters like '(', ')', '"','\','&','|','!'



Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.