public class Entity extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Entity.Type
The type of the entity.
|
| Constructor and Description |
|---|
Entity()
Only used by serialization.
|
Entity(org.apache.hadoop.hive.metastore.api.Database database,
boolean complete)
Constructor for a database.
|
Entity(org.apache.hadoop.hive.metastore.api.Database database,
String strObj,
String className,
Entity.Type type)
Create an entity representing a object with given name, database namespace and type
|
Entity(org.apache.hadoop.hive.metastore.api.DataConnector dataconnector,
boolean complete)
Constructor for a dataconnector.
|
Entity(DummyPartition p,
boolean complete) |
Entity(org.apache.hadoop.hive.metastore.api.Function f,
boolean complete)
Constructor for a function.
|
Entity(Partition p,
boolean complete)
Constructor for a partition.
|
Entity(org.apache.hadoop.fs.Path d,
boolean islocal,
boolean complete) |
Entity(String name,
Entity.Type t)
Constructor for a entity with string object representation (eg SERVICE_NAME)
|
Entity(Table t,
boolean complete)
Constructor for a table.
|
public Entity()
public Entity(org.apache.hadoop.hive.metastore.api.Database database, boolean complete)
database - Database that is read or written to.complete - Means the database is target, not for table or partition, etc.public Entity(org.apache.hadoop.hive.metastore.api.DataConnector dataconnector, boolean complete)
dataconnector - Database that is read or written to.complete - Means the dataconnector is targetpublic Entity(String name, Entity.Type t)
name - Used for service that action is being authorized on.
Currently hostname is used for service name.t - Type of entitypublic Entity(Table t, boolean complete)
t - Table that is read or written to.public Entity(Partition p, boolean complete)
p - Partition that is read or written to.public Entity(DummyPartition p, boolean complete)
public Entity(org.apache.hadoop.fs.Path d,
boolean islocal,
boolean complete)
public Entity(org.apache.hadoop.hive.metastore.api.Database database, String strObj, String className, Entity.Type type)
database - - database namespacestrObj - - object name as stringclassName - - function class nametype - - the entity type. this constructor only supports FUNCTION type currentlypublic Entity(org.apache.hadoop.hive.metastore.api.Function f, boolean complete)
f - Function that is read or written to.public boolean isComplete()
public void setComplete(boolean complete)
public String getName()
public org.apache.hadoop.hive.metastore.api.Database getDatabase()
public void setDatabase(org.apache.hadoop.hive.metastore.api.Database database)
public org.apache.hadoop.hive.metastore.api.DataConnector getDataConnector()
public void setDataConnector(org.apache.hadoop.hive.metastore.api.DataConnector connector)
public Entity.Type getTyp()
public void setTyp(Entity.Type typ)
public Table getT()
public void setT(Table t)
public Partition getP()
public void setP(Partition p)
public org.apache.hadoop.fs.Path getD()
public void setD(org.apache.hadoop.fs.Path d)
public String getClassName()
public void setClassName(String className)
public String getFunctionName()
public void setFunctionName(String funcName)
public String getServiceName()
public Entity.Type getType()
public boolean isPathType()
public URI getLocation() throws Exception
Exceptionpublic Partition getPartition()
public Table getTable()
public org.apache.hadoop.hive.metastore.api.Function getFunction()
public boolean isDummy()
Copyright © 2024 The Apache Software Foundation. All rights reserved.