Package alluxio.underfs
Class UfsLoadResult
- java.lang.Object
-
- alluxio.underfs.UfsLoadResult
-
public class UfsLoadResult extends java.lang.Object
The UfsLoadResult represents the result of a load operation on an Under File System (UFS). It contains information about the loaded items, such as the count, whether it is truncated or not, and the continuation token.
-
-
Constructor Summary
Constructors Constructor Description UfsLoadResult(java.util.stream.Stream<UfsStatus> items, int itemsCount, java.lang.String continuationToken, AlluxioURI lastItem, boolean isTruncated, boolean firstIsFile, boolean isObjectStore)
Constructs a new instance ofUfsLoadResult
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContinuationToken()
java.util.stream.Stream<UfsStatus>
getItems()
int
getItemsCount()
java.util.Optional<AlluxioURI>
getLastItem()
boolean
isFirstFile()
boolean
isIsObjectStore()
boolean
isTruncated()
-
-
-
Constructor Detail
-
UfsLoadResult
public UfsLoadResult(java.util.stream.Stream<UfsStatus> items, int itemsCount, @Nullable java.lang.String continuationToken, @Nullable AlluxioURI lastItem, boolean isTruncated, boolean firstIsFile, boolean isObjectStore)
Constructs a new instance ofUfsLoadResult
.- Parameters:
items
- the stream of loaded itemsitemsCount
- the count of loaded itemscontinuationToken
- the continuation token for loading more itemslastItem
- the URI of the last item that was loadedisTruncated
- whether the load operation was truncated due to reaching a limitfirstIsFile
- whether the first item in the stream is a fileisObjectStore
- whether the under file system is an object store
-
-
Method Detail
-
isIsObjectStore
public boolean isIsObjectStore()
- Returns:
- true if the under file system is an object store, false otherwise
-
isFirstFile
public boolean isFirstFile()
- Returns:
- true if the first item in the stream is a file, false otherwise
-
getLastItem
public java.util.Optional<AlluxioURI> getLastItem()
- Returns:
- an optional containing the URI of the last item that was loaded, or empty if no items were loaded
-
getItemsCount
public int getItemsCount()
- Returns:
- the count of loaded items
-
isTruncated
public boolean isTruncated()
- Returns:
- true if the load operation was truncated, false otherwise
-
getItems
public java.util.stream.Stream<UfsStatus> getItems()
- Returns:
- the stream of loaded items
-
getContinuationToken
public java.lang.String getContinuationToken()
- Returns:
- the continuation token for loading more items, or null if there are no more items to load
-
-