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 >:
Summer.Batch.Extra.Sort.Legacy.Accessor.IAccessor< 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

Member Function Documentation

abstract void Summer.Batch.Extra.Sort.Legacy.Accessor.AbstractAccessor< T >.Set ( byte[]  record,
value 
)
pure virtual

Sets a value on a record.

Parameters
recordthe record to set the value on
valuethe 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 
)

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.

Parameters
recordthe record to modify
bytesthe new bytes
paddingValuethe value to use when padding

Property Documentation

The encoding to use to encode or decode the column.

The length of the column.

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