Package alluxio.underfs.kodo
Class KodoUnderFileSystem
- java.lang.Object
-
- alluxio.underfs.BaseUnderFileSystem
-
- alluxio.underfs.ObjectUnderFileSystem
-
- alluxio.underfs.kodo.KodoUnderFileSystem
-
- All Implemented Interfaces:
alluxio.underfs.UnderFileSystem,java.io.Closeable,java.lang.AutoCloseable
public class KodoUnderFileSystem extends alluxio.underfs.ObjectUnderFileSystemQiniu KodoUnderFileSystemimplementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class alluxio.underfs.ObjectUnderFileSystem
alluxio.underfs.ObjectUnderFileSystem.DeleteBuffer, alluxio.underfs.ObjectUnderFileSystem.ObjectListingChunk, alluxio.underfs.ObjectUnderFileSystem.ObjectPermissions, alluxio.underfs.ObjectUnderFileSystem.ObjectStatus, alluxio.underfs.ObjectUnderFileSystem.ObjectStoreOperation<T extends java.lang.Object>, alluxio.underfs.ObjectUnderFileSystem.OperationBuffer<T extends java.lang.Object>, alluxio.underfs.ObjectUnderFileSystem.RenameBuffer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKodoUnderFileSystem(alluxio.AlluxioURI uri, KodoClient kodoclient, alluxio.underfs.UnderFileSystemConfiguration conf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancopyObject(java.lang.String src, java.lang.String dst)booleancreateEmptyObject(java.lang.String key)protected java.io.OutputStreamcreateObject(java.lang.String key)protected static KodoUnderFileSystemcreatInstance(alluxio.AlluxioURI uri, alluxio.underfs.UnderFileSystemConfiguration conf)protected booleandeleteObject(java.lang.String key)protected java.lang.StringgetFolderSuffix()protected alluxio.underfs.ObjectUnderFileSystem.ObjectListingChunkgetObjectListingChunk(java.lang.String key, boolean recursive)protected alluxio.underfs.ObjectUnderFileSystem.ObjectStatusgetObjectStatus(java.lang.String key)Gets metadata information about object.protected alluxio.underfs.ObjectUnderFileSystem.ObjectPermissionsgetPermissions()protected java.lang.StringgetRootKey()Gets full path of root in object store.java.lang.StringgetUnderFSType()protected java.io.InputStreamopenObject(java.lang.String key, alluxio.underfs.options.OpenOptions options, alluxio.retry.RetryPolicy retryPolicy)alluxio.PositionReaderopenPositionRead(java.lang.String path, long fileLength)voidsetMode(java.lang.String path, short mode)voidsetOwner(java.lang.String path, java.lang.String user, java.lang.String group)-
Methods inherited from class alluxio.underfs.ObjectUnderFileSystem
cleanup, close, connectFromMaster, connectFromWorker, convertToFolderName, create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, deleteFile, deleteObjects, getBlockSizeByte, getChildName, getDirectoryStatus, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, getFileLocations, getFileLocations, getFileStatus, getListingChunkLength, getListingChunkLengthMax, getObjectListingChunkForPath, getParentPath, getSpace, getStatus, isDirectory, isExistingDirectory, isFile, isObjectStorage, isRoot, listInternal, listStatus, listStatus, mkdirs, mkdirsInternal, open, openExistingFile, openExistingFile, parentExists, renameDirectory, renameFile, renameRenamableDirectory, renameRenamableFile, retryOnException, stripPrefixIfPresent, supportsFlush
-
Methods inherited from class alluxio.underfs.BaseUnderFileSystem
create, deleteDirectory, exists, getAclPair, getActiveSyncInfo, getConfiguration, getFingerprint, getOperationMode, getParsedFingerprint, getParsedFingerprint, getPhysicalStores, isSeekable, mkdirs, open, resolveUri, setAclEntries, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, validatePath
-
-
-
-
Constructor Detail
-
KodoUnderFileSystem
protected KodoUnderFileSystem(alluxio.AlluxioURI uri, KodoClient kodoclient, alluxio.underfs.UnderFileSystemConfiguration conf)
-
-
Method Detail
-
creatInstance
protected static KodoUnderFileSystem creatInstance(alluxio.AlluxioURI uri, alluxio.underfs.UnderFileSystemConfiguration conf)
-
getUnderFSType
public java.lang.String getUnderFSType()
-
openPositionRead
public alluxio.PositionReader openPositionRead(java.lang.String path, long fileLength)
-
setOwner
public void setOwner(java.lang.String path, java.lang.String user, java.lang.String group)
-
setMode
public void setMode(java.lang.String path, short mode) throws java.io.IOException- Throws:
java.io.IOException
-
copyObject
protected boolean copyObject(java.lang.String src, java.lang.String dst)- Specified by:
copyObjectin classalluxio.underfs.ObjectUnderFileSystem
-
createEmptyObject
public boolean createEmptyObject(java.lang.String key)
- Specified by:
createEmptyObjectin classalluxio.underfs.ObjectUnderFileSystem
-
createObject
protected java.io.OutputStream createObject(java.lang.String key) throws java.io.IOException- Specified by:
createObjectin classalluxio.underfs.ObjectUnderFileSystem- Throws:
java.io.IOException
-
deleteObject
protected boolean deleteObject(java.lang.String key)
- Specified by:
deleteObjectin classalluxio.underfs.ObjectUnderFileSystem
-
getFolderSuffix
protected java.lang.String getFolderSuffix()
- Specified by:
getFolderSuffixin classalluxio.underfs.ObjectUnderFileSystem
-
getObjectListingChunk
@Nullable protected alluxio.underfs.ObjectUnderFileSystem.ObjectListingChunk getObjectListingChunk(java.lang.String key, boolean recursive) throws java.io.IOException- Specified by:
getObjectListingChunkin classalluxio.underfs.ObjectUnderFileSystem- Throws:
java.io.IOException
-
getObjectStatus
@Nullable protected alluxio.underfs.ObjectUnderFileSystem.ObjectStatus getObjectStatus(java.lang.String key)
Gets metadata information about object. Implementations should process the key as is, which may be a file or a directory key.- Specified by:
getObjectStatusin classalluxio.underfs.ObjectUnderFileSystem- Parameters:
key- ufs key to get metadata for- Returns:
ObjectUnderFileSystem.ObjectStatusif key exists and successful, otherwise null
-
getPermissions
protected alluxio.underfs.ObjectUnderFileSystem.ObjectPermissions getPermissions()
- Specified by:
getPermissionsin classalluxio.underfs.ObjectUnderFileSystem
-
openObject
protected java.io.InputStream openObject(java.lang.String key, alluxio.underfs.options.OpenOptions options, alluxio.retry.RetryPolicy retryPolicy)- Specified by:
openObjectin classalluxio.underfs.ObjectUnderFileSystem
-
getRootKey
protected java.lang.String getRootKey()
Gets full path of root in object store.- Specified by:
getRootKeyin classalluxio.underfs.ObjectUnderFileSystem- Returns:
- full path including scheme and bucket
-
-