Package alluxio.underfs
Interface ObjectUnderFileSystem.ObjectListingChunk
-
- Enclosing class:
- ObjectUnderFileSystem
public static interface ObjectUnderFileSystem.ObjectListingChunk
A chunk of listing results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String[]
getCommonPrefixes()
Use common prefixes to infer pseudo-directories in object store.ObjectUnderFileSystem.ObjectListingChunk
getNextChunk()
Gets next chunk of object listings.ObjectUnderFileSystem.ObjectStatus[]
getObjectStatuses()
Returns objects in a pseudo-directory which may be a file or a directory.default java.lang.Boolean
hasNextChunk()
Gets if there is more chunks to fetch WITHOUT actually fetching the next chunk.
-
-
-
Method Detail
-
getObjectStatuses
ObjectUnderFileSystem.ObjectStatus[] getObjectStatuses()
Returns objects in a pseudo-directory which may be a file or a directory.- Returns:
- a list of object statuses
-
getCommonPrefixes
java.lang.String[] getCommonPrefixes()
Use common prefixes to infer pseudo-directories in object store.- Returns:
- a list of common prefixes
-
getNextChunk
@Nullable ObjectUnderFileSystem.ObjectListingChunk getNextChunk() throws java.io.IOException
Gets next chunk of object listings.- Returns:
- null if listing did not find anything or is done, otherwise return new
ObjectUnderFileSystem.ObjectListingChunk
for the next chunk - Throws:
java.io.IOException
-
hasNextChunk
@Nullable default java.lang.Boolean hasNextChunk()
Gets if there is more chunks to fetch WITHOUT actually fetching the next chunk.- Returns:
- true if there is, no if there isn't, NULL if it cannot tell
-
-