public class HDirectory extends HPath implements ContainerDescriptor
BLOCK_REPLICATION_KEY, BLOCK_SIZE_KEY, LENGTH_KEY, MODIFICATION_TIME_KEY| Constructor and Description |
|---|
HDirectory(HDataStorage fs,
org.apache.hadoop.fs.Path path) |
HDirectory(HDataStorage fs,
org.apache.hadoop.fs.Path parent,
org.apache.hadoop.fs.Path child) |
HDirectory(HDataStorage fs,
org.apache.hadoop.fs.Path parent,
String child) |
HDirectory(HDataStorage fs,
String pathString) |
HDirectory(HDataStorage fs,
String parent,
org.apache.hadoop.fs.Path child) |
HDirectory(HDataStorage fs,
String parent,
String child) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(ContainerDescriptor dstName,
Properties dstConfiguration,
boolean removeSrc) |
OutputStream |
create(Properties configuration)
Opens a stream onto which an entity can be written to.
|
Iterator<ElementDescriptor> |
iterator() |
InputStream |
open() |
InputStream |
open(Properties configuration)
Open for read a given entity
|
SeekableInputStream |
sopen() |
SeekableInputStream |
sopen(Properties configuration)
Open an element in the Data Storage with support for random access
(seek operations).
|
compareTo, copy, copy, create, delete, equals, exists, getConfiguration, getDataStorage, getHFS, getPath, getStatistics, hashCode, rename, setPermission, systemElement, toString, updateConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopy, copy, create, delete, exists, getConfiguration, getDataStorage, getStatistics, rename, systemElement, updateConfigurationcompareToforEach, spliteratorpublic HDirectory(HDataStorage fs, org.apache.hadoop.fs.Path parent, org.apache.hadoop.fs.Path child)
public HDirectory(HDataStorage fs, String parent, String child)
public HDirectory(HDataStorage fs, org.apache.hadoop.fs.Path parent, String child)
public HDirectory(HDataStorage fs, String parent, org.apache.hadoop.fs.Path child)
public HDirectory(HDataStorage fs, org.apache.hadoop.fs.Path path)
public HDirectory(HDataStorage fs, String pathString)
public OutputStream create(Properties configuration) throws IOException
ElementDescriptorcreate in interface ElementDescriptorcreate in class HPathconfiguration - information at the object levelDataStorageExceptionIOExceptionpublic void copy(ContainerDescriptor dstName, Properties dstConfiguration, boolean removeSrc) throws IOException
IOExceptionpublic InputStream open(Properties configuration) throws IOException
ElementDescriptoropen in interface ElementDescriptorIOExceptionpublic InputStream open() throws IOException
open in interface ElementDescriptoropen in class HPathIOExceptionpublic SeekableInputStream sopen(Properties configuration) throws IOException
ElementDescriptorsopen in interface ElementDescriptorDataStorageExceptionIOExceptionpublic SeekableInputStream sopen() throws IOException
sopen in interface ElementDescriptorsopen in class HPathIOExceptionpublic Iterator<ElementDescriptor> iterator()
iterator in interface Iterable<ElementDescriptor>Copyright © 2007-2017 The Apache Software Foundation