Package alluxio.client.file
Class ListStatusPartialResult
- java.lang.Object
-
- alluxio.client.file.ListStatusPartialResult
-
public class ListStatusPartialResult extends java.lang.Object
Contains information about the result of a partial listing.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListStatusPartialResult
fromProto(alluxio.grpc.ListStatusPartialPResponse response)
Generate aListStatusPartialResult
from aListStatusPartialPResponse
.long
getFileCount()
java.util.List<URIStatus>
getListings()
boolean
isTruncated()
-
-
-
Method Detail
-
fromProto
public static ListStatusPartialResult fromProto(alluxio.grpc.ListStatusPartialPResponse response)
Generate aListStatusPartialResult
from aListStatusPartialPResponse
.- Parameters:
response
- the original response- Returns:
- the converted response
-
getListings
public java.util.List<URIStatus> getListings()
- Returns:
- the listings
-
isTruncated
public boolean isTruncated()
- Returns:
- true if the listing was truncated
-
getFileCount
public long getFileCount()
- Returns:
- the total number of files in the listed directory, (i.e. the size of the result if partial listing was not used or -1 if the listing was recursive)
-
-