public class OCompressionFactory extends Object
Modifier and Type | Field and Description |
---|---|
static OCompressionFactory |
INSTANCE |
Constructor and Description |
---|
OCompressionFactory()
Install default compression algorithms.
|
Modifier and Type | Method and Description |
---|---|
OCompression |
getCompression(String name,
String iOptions) |
Set<String> |
getCompressions() |
void |
register(Class<? extends OCompression> compression)
Registers a stateless implementations, the same instance will be shared on all the storages.
|
void |
register(OCompression compression)
Registers a stateful implementations, a new instance will be created for each storage.
|
public static final OCompressionFactory INSTANCE
public OCompressionFactory()
public OCompression getCompression(String name, String iOptions)
public void register(OCompression compression)
compression
- Compression instancepublic void register(Class<? extends OCompression> compression)
compression
- Compression classCopyright © 2009–2020 OrientDB. All rights reserved.