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, updateConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy, copy, create, delete, exists, getConfiguration, getDataStorage, getStatistics, rename, systemElement, updateConfiguration
compareTo
public 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
ElementDescriptor
create
in interface ElementDescriptor
create
in class HPath
configuration
- information at the object levelDataStorageException
IOException
public void copy(ContainerDescriptor dstName, Properties dstConfiguration, boolean removeSrc) throws IOException
IOException
public InputStream open(Properties configuration) throws IOException
ElementDescriptor
open
in interface ElementDescriptor
IOException
public InputStream open() throws IOException
open
in interface ElementDescriptor
open
in class HPath
IOException
public SeekableInputStream sopen(Properties configuration) throws IOException
ElementDescriptor
sopen
in interface ElementDescriptor
DataStorageException
IOException
public SeekableInputStream sopen() throws IOException
sopen
in interface ElementDescriptor
sopen
in class HPath
IOException
public Iterator<ElementDescriptor> iterator()
iterator
in interface Iterable<ElementDescriptor>
Copyright © 2007-2012 The Apache Software Foundation