org.apache.hadoop.hive.hwi
Class HWIAuth

java.lang.Object
  extended by org.apache.hadoop.hive.hwi.HWIAuth
All Implemented Interfaces:
Comparable

public class HWIAuth
extends Object
implements Comparable

Represents an authenticated user. This class is stored in the users session. It is also used as a key for the HiveSessionManager


Constructor Summary
HWIAuth()
           
 
Method Summary
 int compareTo(Object obj)
          HWIAuth is used in SortedSets(s) the compartTo method is required.
 boolean equals(Object obj)
          HWIAuth is used in Map(s) the equals method is required.
 String[] getGroups()
           
 String getUser()
           
 int hashCode()
          HWIAuth is used in Map(s) the hashCode method is required.
 void setGroups(String[] groups)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWIAuth

public HWIAuth()
Method Detail

getUser

public String getUser()

setUser

public void setUser(String user)

getGroups

public String[] getGroups()

setGroups

public void setGroups(String[] groups)

compareTo

public int compareTo(Object obj)
HWIAuth is used in SortedSets(s) the compartTo method is required.

Specified by:
compareTo in interface Comparable
Returns:
chained call to String.compareTo based on user property

hashCode

public int hashCode()
HWIAuth is used in Map(s) the hashCode method is required.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
HWIAuth is used in Map(s) the equals method is required.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2013 The Apache Software Foundation