opensearch-project / custom-codecs

OpenSearch custom lucene codecs for providing different on-disk index encoding (e.g., compression).
Apache License 2.0
6 stars 13 forks source link

[FEATURE] Implementing accessors Zstandard and ZstandardNoDict CompressionMode #88

Closed sarthakaggarwal97 closed 6 months ago

sarthakaggarwal97 commented 7 months ago

Is your feature request related to a problem?

Currently, there is not a straightforward way to leverage the implementation of ZstdCompressionMode and ZstdNoDictCompressionMode out of the box as they are protected access modifiers. By introducing simple getters in the Lucene95CustomStoredFieldsFormat, we can provide a way for the developers to use these ztsandard compression modes out of the box and alongside the flexibility to use their own custom StoredFieldsFormat with Zstandard Compression Algorithm.

What solution would you like?

Implementing simple getters for the custom compression modes