Data Export with Filters

Options
kunal3591
kunal3591 Member, ALL USERS, Partner Posts: 5 Contributor

Can we give the users to choose from a list of combinations for a view, while providing them with an option to export the view from a dashboard.

 

Regards,

Kunal

Comments

  • ruhana
    ruhana Member, ALL USERS Posts: 1 New Contributor

    Filtering Entries During Import or Export

     
     

    You can customize your snapshot by filtering entries during the import or export of a region or a cache.

    For example, use filters to limit the export of data to a certain date range. If you set up a filter on the import or export of a cache, the filter is applied to every single region in the cache.

    The following example filters snapshot data by even numbered keys.

    File mySnapshot = ...
    Region<Integer, MyObject> region = ...

    SnapshotFilter<Integer, MyObject> even = new SnapshotFilter<Integer, MyObject>() {
    @Override
    public boolean accept(Entry<Integer, MyObject> entry) {
    return entry.getKey() % 2 == 0;
    }
    };

    RegionSnapshotService<Integer, MyObject> snapsrv = region.getSnapshotService();
    SnapshotOptions<Integer, MyObject> options = snapsrv.createOptions().setFilter(even);

    // only save cache entries with an even key
    snapsrv.save(mySnapshot, SnapshotFormat.GEMFIRE, options);

    learn more  https://onlineitguru.com/tableau-online-training-placement.html