Class ByteArrayReaderCache<TPhysical, TLogical>
- Namespace
- ParquetSharp
- Assembly
- ParquetSharp.dll
Cache duplicated ByteArray / FixedByteArray values when reading and converting them to their logical form. This is particularly useful when reading a lot of duplicate strings.
public sealed class ByteArrayReaderCache<TPhysical, TLogical> where TPhysical : unmanaged
Type Parameters
TPhysical
TLogical
- Inheritance
-
ByteArrayReaderCache<TPhysical, TLogical>
- Inherited Members
Constructors
ByteArrayReaderCache(ColumnChunkMetaData)
public ByteArrayReaderCache(ColumnChunkMetaData columnChunkMetaData)
Parameters
columnChunkMetaData
ColumnChunkMetaData
Properties
IsUsable
public bool IsUsable { get; }
Property Value
Methods
Add(TPhysical, TLogical)
public TLogical Add(TPhysical physical, TLogical logical)
Parameters
physical
TPhysicallogical
TLogical
Returns
- TLogical
Clear()
public void Clear()
GetScratchBuffer(int)
public byte[] GetScratchBuffer(int minLength)
Parameters
minLength
int
Returns
- byte[]
TryGetValue(TPhysical, out TLogical)
public bool TryGetValue(TPhysical physical, out TLogical logical)
Parameters
physical
TPhysicallogical
TLogical