public static final class StorageDataConverterTypeBinaryToCsv.UTF8 extends Object implements StorageDataConverterTypeBinaryToCsv, StorageDataFileItemIterator.BufferProvider, StorageDataFileItemIterator.ItemProcessor
StorageDataConverterTypeBinaryToCsv.TypeNameMapper, StorageDataConverterTypeBinaryToCsv.UTF8StorageDataFileItemIterator.BufferProvider.ConstantSizedBufferProvider| Constructor and Description |
|---|
UTF8(StorageDataConverterCsvConfiguration configuration,
StorageEntityTypeConversionFileProvider fileProvider,
one.microstream.persistence.types.PersistenceTypeDictionary typeDictionary,
StorageDataConverterTypeBinaryToCsv.TypeNameMapper typeNameMapper,
int readBufferSize,
int writeBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(long entityAddress,
long availableEntityLength)
Processes the entity at the given address for the passed availableEntityLength.
|
void |
convertDataFile(one.microstream.afs.types.AReadableFile file) |
ByteBuffer |
provideBuffer(ByteBuffer byteBuffer,
long nextEntityLength)
The passed and returned byte buffer instances are guaranteed to be direct bytebuffer.
|
ByteBuffer |
provideInitialBuffer() |
static byte |
toHexadecimal(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultTypeNameMappercleanUp, New, NewConstantSizedpublic UTF8(StorageDataConverterCsvConfiguration configuration, StorageEntityTypeConversionFileProvider fileProvider, one.microstream.persistence.types.PersistenceTypeDictionary typeDictionary, StorageDataConverterTypeBinaryToCsv.TypeNameMapper typeNameMapper, int readBufferSize, int writeBufferSize)
public static final byte toHexadecimal(int b)
throws IllegalArgumentException
IllegalArgumentExceptionpublic final void convertDataFile(one.microstream.afs.types.AReadableFile file)
convertDataFile in interface StorageDataConverterTypeBinaryToCsvpublic boolean accept(long entityAddress,
long availableEntityLength)
StorageDataFileItemIterator.ItemProcessoraccept in interface StorageDataFileItemIterator.ItemProcessorentityAddress - the address at which the entity data is located (starting with the entity header).availableEntityLength - the remaining entity data in the buffer, potentially less then the actual entity length.public final ByteBuffer provideInitialBuffer()
provideInitialBuffer in interface StorageDataFileItemIterator.BufferProviderpublic ByteBuffer provideBuffer(ByteBuffer byteBuffer, long nextEntityLength)
StorageDataFileItemIterator.BufferProviderStorageDataFileItemIterator.BufferProvider.provideInitialBuffer().provideBuffer in interface StorageDataFileItemIterator.BufferProviderbyteBuffer - the direct byte buffer used so far.nextEntityLength - the length of the next entity to be read to the buffer.Copyright © 2022 MicroStream Software. All rights reserved.