public class Entity
extends java.lang.Object
implements java.io.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(DummyPartition p,
boolean complete) |
Entity(Partition p)
Constructor for a partition.
|
Entity(Partition p,
boolean complete) |
Entity(java.lang.String d,
boolean islocal)
Constructor for a file.
|
Entity(java.lang.String d,
boolean islocal,
boolean complete) |
Entity(Table t)
Constructor for a table.
|
Entity(Table t,
boolean complete) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Equals function.
|
java.lang.String |
getD() |
java.net.URI |
getLocation()
Get the location of the entity.
|
java.lang.String |
getName() |
Partition |
getP() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Get the parameter map of the Entity.
|
Partition |
getPartition()
Get the partition associated with the entity.
|
Table |
getT() |
Table |
getTable()
Get the table associated with the entity.
|
Entity.Type |
getTyp() |
Entity.Type |
getType()
Get the type of the entity.
|
int |
hashCode()
Hashcode function.
|
boolean |
isComplete() |
void |
setComplete(boolean complete) |
void |
setD(java.lang.String d) |
void |
setName(java.lang.String name) |
void |
setP(Partition p) |
void |
setT(Table t) |
void |
setTyp(Entity.Type typ) |
java.lang.String |
toString()
toString function.
|
public Entity()
public Entity(Table t)
t
- Table that is read or written to.public Entity(Table t, boolean complete)
public Entity(Partition p)
p
- Partition that is read or written to.public Entity(Partition p, boolean complete)
public Entity(DummyPartition p, boolean complete)
public Entity(java.lang.String d, boolean islocal)
d
- The name of the directory that is being read or written to.islocal
- Flag to decide whether this directory is local or in dfs.public Entity(java.lang.String d, boolean islocal, boolean complete)
public boolean isComplete()
public void setComplete(boolean complete)
public java.lang.String getName()
public void setName(java.lang.String name)
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 java.lang.String getD()
public void setD(java.lang.String d)
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public Entity.Type getType()
public java.net.URI getLocation() throws java.lang.Exception
java.lang.Exception
public Partition getPartition()
public Table getTable()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2012 The Apache Software Foundation