Summer.Batch.Extra.Sort.Legacy.Accessor.AbstractAccessor< T > Class Template Referenceabstract
Base class for IAccessor<T> More...
Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.Accessor.AbstractAccessor< T >:
Public Member Functions | |
abstract T | Get (byte[] record) |
Gets a value from a record. More... | |
abstract void | Set (byte[] record, T value) |
Sets a value on a record. More... | |
void | SetBytes (byte[] record, byte[] bytes, byte paddingValue) |
Replaces the bytes from Start to Start + Length with the specified bytes. If the size of bytes is not equal to Length, it is truncated or padded on the left to adapt its size. More... | |
Protected Member Functions | |
AbstractAccessor () | |
Default constructor. More... | |
Properties | |
int | Start [get, set] |
The zero-based index of the first character of the accessed column. More... | |
int | Length [get, set] |
The length of the column. More... | |
Encoding | Encoding [get, set] |
The encoding to use to encode or decode the column. More... | |
Detailed Description
Base class for IAccessor<T>
- Template Parameters
-
T
Constructor & Destructor Documentation
|
protected |
Default constructor.
Member Function Documentation
|
pure virtual |
Gets a value from a record.
- Parameters
-
record the record to get the value from
- Returns
- the read value
Implements Summer.Batch.Extra.Sort.Legacy.Accessor.IAccessor< T >.
Implemented in Summer.Batch.Extra.Sort.Legacy.Accessor.BinaryAccessor, Summer.Batch.Extra.Sort.Legacy.Accessor.PackedAccessor, Summer.Batch.Extra.Sort.Legacy.Accessor.ZonedAccessor, and Summer.Batch.Extra.Sort.Legacy.Accessor.StringAccessor.
|
pure virtual |
Sets a value on a record.
- Parameters
-
record the record to set the value on value the value to set
Implements Summer.Batch.Extra.Sort.Legacy.Accessor.IAccessor< T >.
void Summer.Batch.Extra.Sort.Legacy.Accessor.AbstractAccessor< T >.SetBytes | ( | byte[] | record, |
byte[] | bytes, | ||
byte | paddingValue | ||
) |
Property Documentation
|
getset |
The encoding to use to encode or decode the column.
|
getset |
The length of the column.
|
getset |
The zero-based index of the first character of the accessed column.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Sort/Legacy/Accessor/AbstractAccessor.cs