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,
java.lang.String child) |
HDirectory(HDataStorage fs,
java.lang.String pathString) |
HDirectory(HDataStorage fs,
java.lang.String parent,
org.apache.hadoop.fs.Path child) |
HDirectory(HDataStorage fs,
java.lang.String parent,
java.lang.String child) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(ContainerDescriptor dstName,
java.util.Properties dstConfiguration,
boolean removeSrc) |
java.io.OutputStream |
create(java.util.Properties configuration)
Opens a stream onto which an entity can be written to.
|
java.util.Iterator<ElementDescriptor> |
iterator() |
java.io.InputStream |
open() |
java.io.InputStream |
open(java.util.Properties configuration)
Open for read a given entity
|
SeekableInputStream |
sopen() |
SeekableInputStream |
sopen(java.util.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, updateConfigurationpublic HDirectory(HDataStorage fs, org.apache.hadoop.fs.Path parent, org.apache.hadoop.fs.Path child)
public HDirectory(HDataStorage fs, java.lang.String parent, java.lang.String child)
public HDirectory(HDataStorage fs, org.apache.hadoop.fs.Path parent, java.lang.String child)
public HDirectory(HDataStorage fs, java.lang.String parent, org.apache.hadoop.fs.Path child)
public HDirectory(HDataStorage fs, org.apache.hadoop.fs.Path path)
public HDirectory(HDataStorage fs, java.lang.String pathString)
public java.io.OutputStream create(java.util.Properties configuration)
throws java.io.IOException
ElementDescriptorcreate in interface ElementDescriptorcreate in class HPathconfiguration - information at the object levelDataStorageExceptionjava.io.IOExceptionpublic void copy(ContainerDescriptor dstName, java.util.Properties dstConfiguration, boolean removeSrc) throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream open(java.util.Properties configuration)
throws java.io.IOException
ElementDescriptoropen in interface ElementDescriptorjava.io.IOExceptionpublic java.io.InputStream open()
throws java.io.IOException
open in interface ElementDescriptoropen in class HPathjava.io.IOExceptionpublic SeekableInputStream sopen(java.util.Properties configuration) throws java.io.IOException
ElementDescriptorsopen in interface ElementDescriptorDataStorageExceptionjava.io.IOExceptionpublic SeekableInputStream sopen() throws java.io.IOException
sopen in interface ElementDescriptorsopen in class HPathjava.io.IOExceptionpublic java.util.Iterator<ElementDescriptor> iterator()
iterator in interface java.lang.Iterable<ElementDescriptor>Copyright © 2007-2025 The Apache Software Foundation