|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.backend.hadoop.datastorage.HPath
public abstract class HPath
| Field Summary | |
|---|---|
protected HDataStorage |
fs
|
protected org.apache.hadoop.fs.Path |
path
|
| Fields inherited from interface org.apache.pig.backend.datastorage.ElementDescriptor |
|---|
BLOCK_REPLICATION_KEY, BLOCK_SIZE_KEY, LENGTH_KEY, MODIFICATION_TIME_KEY |
| Constructor Summary | |
|---|---|
HPath(HDataStorage fs,
org.apache.hadoop.fs.Path path)
|
|
HPath(HDataStorage fs,
org.apache.hadoop.fs.Path parent,
org.apache.hadoop.fs.Path child)
|
|
HPath(HDataStorage fs,
org.apache.hadoop.fs.Path parent,
String child)
|
|
HPath(HDataStorage fs,
String pathString)
|
|
HPath(HDataStorage fs,
String parent,
org.apache.hadoop.fs.Path child)
|
|
HPath(HDataStorage fs,
String parent,
String child)
|
|
| Method Summary | |
|---|---|
int |
compareTo(ElementDescriptor other)
|
void |
copy(ElementDescriptor dstName,
boolean removeSrc)
|
void |
copy(ElementDescriptor dstName,
Properties dstConfiguration,
boolean removeSrc)
Copy entity from an existing one, possibly residing in a different Data Storage. |
OutputStream |
create()
|
abstract OutputStream |
create(Properties configuration)
Opens a stream onto which an entity can be written to. |
void |
delete()
Remove entity from the Data Storage. |
boolean |
equals(Object obj)
|
boolean |
exists()
Checks whether the entity exists or not |
Properties |
getConfiguration()
Retrieve configuration information for entity |
DataStorage |
getDataStorage()
|
org.apache.hadoop.fs.FileSystem |
getHFS()
|
org.apache.hadoop.fs.Path |
getPath()
|
Map<String,Object> |
getStatistics()
List entity statistics |
int |
hashCode()
|
abstract InputStream |
open()
|
void |
rename(ElementDescriptor newName)
Changes the name of an entity in the Data Storage |
void |
setPermission(org.apache.hadoop.fs.permission.FsPermission permission)
|
abstract SeekableInputStream |
sopen()
|
boolean |
systemElement()
Defines whether the element is visible to users or contains system's metadata |
String |
toString()
|
void |
updateConfiguration(Properties newConfig)
Update configuration information for this entity |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.pig.backend.datastorage.ElementDescriptor |
|---|
open, sopen |
| Field Detail |
|---|
protected org.apache.hadoop.fs.Path path
protected HDataStorage fs
| Constructor Detail |
|---|
public HPath(HDataStorage fs,
org.apache.hadoop.fs.Path parent,
org.apache.hadoop.fs.Path child)
public HPath(HDataStorage fs,
String parent,
String child)
public HPath(HDataStorage fs,
org.apache.hadoop.fs.Path parent,
String child)
public HPath(HDataStorage fs,
String parent,
org.apache.hadoop.fs.Path child)
public HPath(HDataStorage fs,
String pathString)
public HPath(HDataStorage fs,
org.apache.hadoop.fs.Path path)
| Method Detail |
|---|
public DataStorage getDataStorage()
getDataStorage in interface ElementDescriptor
public abstract OutputStream create(Properties configuration)
throws IOException
ElementDescriptor
create in interface ElementDescriptorconfiguration - information at the object level
DataStorageException
IOException
public void copy(ElementDescriptor dstName,
Properties dstConfiguration,
boolean removeSrc)
throws IOException
ElementDescriptor
copy in interface ElementDescriptordstName - name of entity to createdstConfiguration - configuration for the new entityremoveSrc - if src entity needs to be removed after copying it
DataStorageException - for instance, configuration
information for new entity is not compatible with
configuration information at the Data
Storage level, user does not have privileges to read from
source entity or write to destination storage...
IOException
public abstract InputStream open()
throws IOException
open in interface ElementDescriptorIOException
public abstract SeekableInputStream sopen()
throws IOException
sopen in interface ElementDescriptorIOException
public boolean exists()
throws IOException
ElementDescriptor
exists in interface ElementDescriptorIOException
public void rename(ElementDescriptor newName)
throws IOException
ElementDescriptor
rename in interface ElementDescriptornewName - new name of entity
DataStorageException
IOException
public void delete()
throws IOException
ElementDescriptor
delete in interface ElementDescriptorDataStorageException
IOException
public void setPermission(org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
IOException
public Properties getConfiguration()
throws IOException
ElementDescriptor
getConfiguration in interface ElementDescriptorIOException
public void updateConfiguration(Properties newConfig)
throws IOException
ElementDescriptor
updateConfiguration in interface ElementDescriptornewConfig - configuration
DataStorageException
IOException
public Map<String,Object> getStatistics()
throws IOException
ElementDescriptor
getStatistics in interface ElementDescriptorIOException
public OutputStream create()
throws IOException
create in interface ElementDescriptorIOException
public void copy(ElementDescriptor dstName,
boolean removeSrc)
throws IOException
copy in interface ElementDescriptorIOExceptionpublic org.apache.hadoop.fs.Path getPath()
public org.apache.hadoop.fs.FileSystem getHFS()
public boolean systemElement()
ElementDescriptor
systemElement in interface ElementDescriptorpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(ElementDescriptor other)
compareTo in interface Comparable<ElementDescriptor>public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||