Module org.apache.arrow.vector
Interface CompressionCodec.Factory
- All Known Implementing Classes:
CommonsCompressionFactory,NoCompressionCodec.Factory
- Enclosing interface:
- CompressionCodec
public static interface CompressionCodec.Factory
Factory to create compression codec.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CompressionCodec.FactoryThis combines all the available factories registered as service providers in the module path. -
Method Summary
Modifier and TypeMethodDescriptioncreateCodec(CompressionUtil.CodecType codecType) Creates the codec based on the codec type.createCodec(CompressionUtil.CodecType codecType, int compressionLevel) Creates the codec based on the codec type and compression level.
-
Field Details
-
INSTANCE
This combines all the available factories registered as service providers in the module path. For eachcompression codec type, it will use whatever factory supports it, i.e. doesn't throw on `createCodec(type)`. If multiple factories registered as service providers support the same codec type, the first one encountered while iterating over theServiceLoaderwill be selected. A codec type that is not supported by any registered service provider will fall back toNoCompressionCodec.Factory.INSTANCEfor backwards compatibility.
-
-
Method Details
-
createCodec
Creates the codec based on the codec type. -
createCodec
Creates the codec based on the codec type and compression level.
-