ordered side input
Needing to pass some data as Side Input, I would like to pass the data in an ordered fashion but
final PCollectionView<List
If the list is really small, use View.asSingleton(...) with a sorted list coder or stick with View.asList(...) and just create a sorted list inside the DoFn.
If you only care about some of the elements in the list (smallest, largest, ...), pass the elements through a function like Top to filter out the majority and then use View.asSingleton(...) with a sorted list coder or stick with View.asList(...) and just create a sorted list inside the DoFn.
If your list is large and you need to traverse the majority of it in some sorted way, can you give further details as to how you want to traverse and why?
The list is very large. We did do the 'just create a sorted list inside the DoFn', that's the workaround I mentioned. I want to traverse it as an ArrayList. Since List doesn't have an order, nor does Map or MultiMap, this issue would be to add a sorted Collection to the SDK.
If you would see the code, you would understand why this is like a bug in the SDK.
Need more details about what the problem you are trying to solve (potentially code snippets) otherwise will leave this as a feature request to add support for ordered side input views.
Resolving due to inactivity