C# Class Deveel.Data.Index.IndexRange

Describes the range of values to select from an index.
A range has a start value, an end value, and whether we should pick inclusive or exclusive of the end value. The start value may be a concrete value from the set or it may be a flag that represents the start or end of the list.

Note that the the start value may not compare less than the end value. For example, start can not be RangeFieldOffset.LastValue and end can not be RangeFieldOffset.FirstValue.

Exibir arquivo Open project: deveel/deveeldb Class Usage Examples

Public Properties

Property Type Description
FirstInSet Field
FullRange IndexRange
FullRangeNotNull IndexRange
LastInSet Field
Null IndexRange

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
IndexRange ( RangeFieldOffset startOffset, Field firstValue, RangeFieldOffset lastOffset, Field endValue ) : System

Constructs the range given a start and an end location

ToString ( ) : string
operator ( ) : bool

Private Methods

Method Description
IndexRange ( bool isNull ) : System

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IndexRange() public method

Constructs the range given a start and an end location
public IndexRange ( RangeFieldOffset startOffset, Field firstValue, RangeFieldOffset lastOffset, Field endValue ) : System
startOffset RangeFieldOffset The offset of the first value of the range.
firstValue Field The first value of the range
lastOffset RangeFieldOffset The offset within the range of the last value.
endValue Field The last value of the range.
return System

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

FirstInSet public_oe static_oe property

public static Field FirstInSet
return Field

FullRange public_oe static_oe property

The entire range of values in an index (including NULL)
public static IndexRange,Deveel.Data.Index FullRange
return IndexRange

FullRangeNotNull public_oe static_oe property

The entire range of values in an index (not including NULL)
public static IndexRange,Deveel.Data.Index FullRangeNotNull
return IndexRange

LastInSet public_oe static_oe property

public static Field LastInSet
return Field

Null public_oe static_oe property

public static IndexRange,Deveel.Data.Index Null
return IndexRange