org.apache.accumulo.start.classloader.vfs.providers
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, toString
protected 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.FileObject
canRenameTo
in class org.apache.commons.vfs2.provider.AbstractFileObject
AbstractFileObject.canRenameTo(org.apache.commons.vfs2.FileObject)
protected void doAttach() throws Exception
doAttach
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doAttach()
protected Map<String,Object> doGetAttributes() throws Exception
doGetAttributes
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doGetAttributes()
protected long doGetContentSize() throws Exception
doGetContentSize
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doGetContentSize()
protected InputStream doGetInputStream() throws Exception
doGetInputStream
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doGetInputStream()
protected long doGetLastModifiedTime() throws Exception
doGetLastModifiedTime
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doGetLastModifiedTime()
protected org.apache.commons.vfs2.RandomAccessContent doGetRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode) throws Exception
doGetRandomAccessContent
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
(org.apache.commons.vfs2.util.RandomAccessMode)
protected org.apache.commons.vfs2.FileType doGetType() throws Exception
doGetType
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doGetType()
protected boolean doIsHidden() throws Exception
doIsHidden
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doIsHidden()
protected boolean doIsReadable() throws Exception
doIsReadable
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doIsReadable()
protected boolean doIsSameFile(org.apache.commons.vfs2.FileObject destFile) throws org.apache.commons.vfs2.FileSystemException
doIsSameFile
in class org.apache.commons.vfs2.provider.AbstractFileObject
org.apache.commons.vfs2.FileSystemException
AbstractFileObject.doIsSameFile(org.apache.commons.vfs2.FileObject)
protected boolean doIsWriteable() throws Exception
doIsWriteable
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doIsWriteable()
protected String[] doListChildren() throws Exception
doListChildren
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doListChildren()
protected org.apache.commons.vfs2.FileObject[] doListChildrenResolved() throws Exception
doListChildrenResolved
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doListChildrenResolved()
protected void doRemoveAttribute(String attrName) throws Exception
doRemoveAttribute
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doRemoveAttribute(java.lang.String)
protected void doSetAttribute(String attrName, Object value) throws Exception
doSetAttribute
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doSetAttribute(java.lang.String, java.lang.Object)
protected boolean doSetLastModifiedTime(long modtime) throws Exception
doSetLastModifiedTime
in class org.apache.commons.vfs2.provider.AbstractFileObject
Exception
AbstractFileObject.doSetLastModifiedTime(long)
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public boolean exists() throws org.apache.commons.vfs2.FileSystemException
exists
in interface org.apache.commons.vfs2.FileObject
exists
in class org.apache.commons.vfs2.provider.AbstractFileObject
org.apache.commons.vfs2.FileSystemException
AbstractFileObject.exists()
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.