简体   繁体   English

C#:将过滤器从 C# 传递到 ADLS gen2 存储并获得结果

[英]C#: Pass filters to ADLS gen2 storage from C# and get the result

I am working on angular application which consumes data from azure data lake (gen2) and bind it to UI.我正在研究使用 azure 数据湖 (gen2) 中的数据并将其绑定到 UI 的角度应用程序。

My requirement is to pass filters to gen2 storage and get the filtered data.我的要求是将过滤器传递给 gen2 存储并获取过滤后的数据。

I don't want to download whole blob file and then do processing in C#.我不想下载整个 blob 文件,然后在 C# 中进行处理。

is it possible to pass filters/query to gen2 blob storage and filter data in storage it self ?是否可以将过滤器/查询传递给 gen2 blob 存储并自行过滤存储中的数据?

Not sure which SDK or api you're using, but both of ADLS Gen2 read api and blob storage read api don't support filter feature.不确定您使用的是哪个 SDK 或 api,但ADLS Gen2 读取 apiblob 存储读取 api都不支持过滤功能。

You should always download the file to local first, then fetch the data you need;您应该始终先将文件下载到本地,然后再获取您需要的数据; Or you can use blob storage sdk(partially supports ADLS Gen2) to read the json file in memory, then fetch the needed data.或者您可以使用 blob storage sdk(部分支持 ADLS Gen2)读取内存中的 json 文件,然后获取所需的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM