Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HADOOP-19323. [ABFS] Add a new API in AzureBlobFileSystem to allow listing with startFrom #7150

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,24 @@ public FileStatus[] listStatus(final Path f) throws IOException {
}
}

public FileStatus[] listStatus(final Path f, final String startFrom) throws IOException {
LOG.debug(
"AzureBlobFileSystem.listStatus path: {}, startFrom: {}", f.toString(), startFrom);
statIncrement(CALL_LIST_STATUS);
Path qualifiedPath = makeQualified(f);

try {
TracingContext tracingContext = new TracingContext(clientCorrelationId,
fileSystemId, FSOperationType.LISTSTATUS, true, tracingHeaderFormat,
listener);
FileStatus[] result = abfsStore.listStatus(qualifiedPath, startFrom, tracingContext);
return result;
} catch (AzureBlobFileSystemException ex) {
checkException(f, ex);
return null;
}
}

/**
* Increment of an Abfs statistic.
*
Expand Down
Loading