Changed DataLakeFileClient::Flush's endingOffset parameter's name to position. (#1449)
* Changed DataLakeFileClient::Flush's endingOffset parameter's name to position. * Update CHANGELOG.md
This commit is contained in:
parent
ad54405b9d
commit
0df1cfa90f
@ -31,6 +31,10 @@
|
||||
- Removed unused type `AccountResourceType` and `PathLeaseAction`.
|
||||
- Changed all previous `LeaseDuration` members to a new type named `LeaseDurationType`.
|
||||
|
||||
### Other Changes and Improvements
|
||||
|
||||
- Changed `DataLakeFileClient::Flush`'s `endingOffset` parameter's name to `position`.
|
||||
|
||||
## 12.0.0-beta.6 (2020-01-14)
|
||||
|
||||
### New Features
|
||||
|
||||
@ -98,7 +98,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
|
||||
/**
|
||||
* @brief Flushes previous uploaded data to a file.
|
||||
* @param endingOffset This parameter allows the caller to upload data in parallel and control
|
||||
* @param position This parameter allows the caller to upload data in parallel and control
|
||||
* the order in which it is appended to the file.
|
||||
* The value must be the offset where the data is to be appended.
|
||||
* Uploaded data is not immediately flushed, or written, to the file. To flush,
|
||||
@ -112,7 +112,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
* @remark This request is sent to dfs endpoint.
|
||||
*/
|
||||
Azure::Core::Response<Models::FlushDataLakeFileResult> Flush(
|
||||
int64_t endingOffset,
|
||||
int64_t position,
|
||||
const FlushDataLakeFileOptions& options = FlushDataLakeFileOptions()) const;
|
||||
|
||||
/**
|
||||
|
||||
@ -222,11 +222,11 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
}
|
||||
|
||||
Azure::Core::Response<Models::FlushDataLakeFileResult> DataLakeFileClient::Flush(
|
||||
int64_t endingOffset,
|
||||
int64_t position,
|
||||
const FlushDataLakeFileOptions& options) const
|
||||
{
|
||||
Details::DataLakeRestClient::Path::FlushDataOptions protocolLayerOptions;
|
||||
protocolLayerOptions.Position = endingOffset;
|
||||
protocolLayerOptions.Position = position;
|
||||
protocolLayerOptions.RetainUncommittedData = options.RetainUncommittedData;
|
||||
protocolLayerOptions.Close = options.Close;
|
||||
protocolLayerOptions.ContentLength = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user