Пример #1
0
 public void TryWhere(Operator op, ComparableColor value, ShortSet result, ExecutionDetails details)
 {
     // Base Column can't identify matches for any operator in bulk efficiently.
     if (details != null)
     {
         details.AddError(ExecutionDetails.ColumnDoesNotSupportOperator, op, this.Name);
     }
 }
Пример #2
0
        public Array GetValues(IList <ushort> lids)
        {
            if (lids == null)
            {
                throw new ArgumentNullException("lids");
            }

            int count = lids.Count;

            ComparableColor[] result = new ComparableColor[count];
            for (int i = 0; i < count; ++i)
            {
                result[i] = this[lids[i]];
            }

            return(result);
        }
Пример #3
0
 public bool TryGetIndexOf(ComparableColor value, out ushort index)
 {
     // Base column doesn't contain sorting information
     index = ushort.MaxValue;
     return(false);
 }
Пример #4
0
        public bool TryEvaluate(ushort lid, Operator op, ComparableColor value, out bool result)
        {
            ComparableColor itemValue = this[lid];

            return(itemValue.TryEvaluate(op, value, out result));
        }