Class StorageConverterTarget
java.lang.Object
one.microstream.storage.embedded.tools.storage.converter.StorageConverterTarget
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class StorageConverterTarget extends Object implements Closeable
Handle everything related to the "Target Storage" of the storage converter.
-
Constructor Summary
Constructors Constructor Description StorageConverterTarget(StorageConfiguration storageConfiguration)
Creates aStorageConverterTarget
instance based on the supplied Storage configuration. -
Method Summary
Modifier and Type Method Description void
close()
void
storeTypeDictionary(String srcTypeDictionary)
Write the supplied TypeDictionary String as the new targets TypeDictionary.void
transferBytes(ByteBuffer buffer, long oid)
Write the content of the supplied ByteBuffer to the targets' storage system.
-
Constructor Details
-
StorageConverterTarget
Creates aStorageConverterTarget
instance based on the supplied Storage configuration.- Parameters:
storageConfiguration
-StorageConfiguration
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
storeTypeDictionary
Write the supplied TypeDictionary String as the new targets TypeDictionary.- Parameters:
srcTypeDictionary
- the source type dictionary as String
-
transferBytes
Write the content of the supplied ByteBuffer to the targets' storage system.- Parameters:
buffer
- content to be transferredoid
- object id
-