23 namespace Deveel.Data.Index {
58 StartOffset = startOffset;
59 StartValue = firstValue;
60 EndOffset = lastOffset;
69 public bool IsNull {
get;
private set; }
106 public override bool Equals(
object obj) {
108 if (IsNull && destRange.IsNull)
110 if (IsNull && !destRange.IsNull)
112 if (!IsNull && destRange.IsNull)
115 return (StartValue.Value.Equals(destRange.StartValue.Value) &&
116 EndValue.Value.Equals(destRange.EndValue.Value) &&
117 StartOffset == destRange.StartOffset &&
118 EndOffset == destRange.EndOffset);
123 return base.GetHashCode();
128 var sb =
new StringBuilder();
130 sb.Append(
"FIRST_VALUE ");
132 sb.Append(
"AFTER_LAST_VALUE ");
135 sb.Append(StartValue.ToString());
138 sb.Append(
"LAST_VALUE ");
140 sb.Append(
"BEFORE_FIRST_VALUE ");
142 sb.Append(EndValue.ToString());
143 return sb.ToString();
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
Describes the range of values to select from an index.
static DataObject Null(SqlType type)
override int GetHashCode()
IndexRange(RangeFieldOffset startOffset, DataObject firstValue, RangeFieldOffset lastOffset, DataObject endValue)
Constructs the range given a start and an end location
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
override string ToString()
override bool Equals(object obj)
RangeFieldOffset
The absolute offset of a field in a range of a selection.
Deveel.Data.Sql.Objects.SqlString SqlString