Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer Class Reference

Implementation of AbstractBytesComparer that compares byte arrays by extracting a string value. More...

Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer:
Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer

Public Member Functions

 StringComparer ()
 Default constructor. More...
 
- Public Member Functions inherited from Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer
int Compare (byte[] x, byte[] y)
 Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. More...
 

Protected Member Functions

override int DoCompare (byte[] x, byte[] y)
 Method that does the actual comparison. More...
 

Properties

int Start [get, set]
 The zero-based index of the first character of the string value. More...
 
int Length [get, set]
 The length (in bytes) of the string value. More...
 
Encoding Encoding [get, set]
 The encoding of the string value. Default is System.Text.Encoding.Default. More...
 
Encoding SortEncoding [get, set]
 The encoding to use for the comparison. It is used when emulating comparison in legacy systems. Default is null. More...
 
- Properties inherited from Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer
bool Ascending [get, set]
 Whether the byte arrays are sorted in ascending order. More...
 

Detailed Description

Implementation of AbstractBytesComparer that compares byte arrays by extracting a string value.

Constructor & Destructor Documentation

Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer.StringComparer ( )

Default constructor.

Member Function Documentation

override int Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer.DoCompare ( byte[]  x,
byte[]  y 
)
protectedvirtual

Method that does the actual comparison.

Parameters
xThe first object to compare.
yThe second object to compare.
Returns
The comparison of x and y

Implements Summer.Batch.Extra.Sort.Legacy.Comparer.AbstractBytesComparer.

Property Documentation

Encoding Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer.Encoding
getset

The encoding of the string value. Default is System.Text.Encoding.Default.

int Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer.Length
getset

The length (in bytes) of the string value.

Encoding Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer.SortEncoding
getset

The encoding to use for the comparison. It is used when emulating comparison in legacy systems. Default is null.

int Summer.Batch.Extra.Sort.Legacy.Comparer.StringComparer.Start
getset

The zero-based index of the first character of the string value.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Legacy/Comparer/StringComparer.cs