Class OCompressionFactory
java.lang.Object
com.orientechnologies.orient.core.compression.OCompressionFactory
Factory of compression algorithms.
- Since:
- 05.06.13
- Author:
- Andrey Lomakin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCompression(String name, String iOptions) voidregister(OCompression compression) Registers a stateful implementations, a new instance will be created for each storage.voidregister(Class<? extends OCompression> compression) Registers a stateless implementations, the same instance will be shared on all the storages.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OCompressionFactory
public OCompressionFactory()Install default compression algorithms.
-
-
Method Details
-
getCompression
-
register
Registers a stateful implementations, a new instance will be created for each storage.- Parameters:
compression- Compression instance
-
register
Registers a stateless implementations, the same instance will be shared on all the storages.- Parameters:
compression- Compression class
-
getCompressions
-