public class HdfsFileObject
extends org.apache.commons.vfs2.provider.AbstractFileObject
| Modifier | Constructor and Description |
|---|---|
protected |
HdfsFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
HdfsFileSystem fs,
org.apache.hadoop.fs.FileSystem hdfs,
org.apache.hadoop.fs.Path p)
Constructs a new HDFS FileObject
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRenameTo(org.apache.commons.vfs2.FileObject newfile) |
protected void |
doAttach() |
protected Map<String,Object> |
doGetAttributes() |
protected long |
doGetContentSize() |
protected InputStream |
doGetInputStream() |
protected long |
doGetLastModifiedTime() |
protected org.apache.commons.vfs2.RandomAccessContent |
doGetRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode) |
protected org.apache.commons.vfs2.FileType |
doGetType() |
protected boolean |
doIsHidden() |
protected boolean |
doIsReadable() |
protected boolean |
doIsSameFile(org.apache.commons.vfs2.FileObject destFile) |
protected boolean |
doIsWriteable() |
protected String[] |
doListChildren() |
protected org.apache.commons.vfs2.FileObject[] |
doListChildrenResolved() |
protected void |
doRemoveAttribute(String attrName) |
protected void |
doSetAttribute(String attrName,
Object value) |
protected boolean |
doSetLastModifiedTime(long modtime) |
boolean |
equals(Object o) |
boolean |
exists() |
int |
hashCode() |
childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetCertificates, doGetOutputStream, doRename, endOutput, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, isSameFile, isWriteable, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toStringprotected HdfsFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
HdfsFileSystem fs,
org.apache.hadoop.fs.FileSystem hdfs,
org.apache.hadoop.fs.Path p)
name - FileNamefs - HdfsFileSystem instancehdfs - Hadoop FileSystem instancep - Path to the file in HDFSpublic boolean canRenameTo(org.apache.commons.vfs2.FileObject newfile)
canRenameTo in interface org.apache.commons.vfs2.FileObjectcanRenameTo in class org.apache.commons.vfs2.provider.AbstractFileObjectprotected void doAttach()
throws Exception
doAttach in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected Map<String,Object> doGetAttributes() throws Exception
doGetAttributes in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected long doGetContentSize()
throws Exception
doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected InputStream doGetInputStream() throws Exception
doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected long doGetLastModifiedTime()
throws Exception
doGetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected org.apache.commons.vfs2.RandomAccessContent doGetRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode)
throws Exception
doGetRandomAccessContent in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected org.apache.commons.vfs2.FileType doGetType()
throws Exception
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected boolean doIsHidden()
throws Exception
doIsHidden in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected boolean doIsReadable()
throws Exception
doIsReadable in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected boolean doIsSameFile(org.apache.commons.vfs2.FileObject destFile)
throws org.apache.commons.vfs2.FileSystemException
doIsSameFile in class org.apache.commons.vfs2.provider.AbstractFileObjectorg.apache.commons.vfs2.FileSystemExceptionprotected boolean doIsWriteable()
throws Exception
doIsWriteable in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected String[] doListChildren() throws Exception
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected org.apache.commons.vfs2.FileObject[] doListChildrenResolved()
throws Exception
doListChildrenResolved in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected void doRemoveAttribute(String attrName) throws Exception
doRemoveAttribute in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected void doSetAttribute(String attrName, Object value) throws Exception
doSetAttribute in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionprotected boolean doSetLastModifiedTime(long modtime)
throws Exception
doSetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObjectExceptionpublic boolean exists()
throws org.apache.commons.vfs2.FileSystemException
exists in interface org.apache.commons.vfs2.FileObjectexists in class org.apache.commons.vfs2.provider.AbstractFileObjectorg.apache.commons.vfs2.FileSystemExceptionCopyright © 2015 Apache Accumulo Project. All rights reserved.