public SimpleFieldMapper(Func<ProcessingScope, object> selector, Field field, IEnumerable<CalculatedField> calculatedFields = null) { Selector = selector; Field = field; if (calculatedFields != null) { CalculatedFieldList = calculatedFields.ToList(); } }
public static bool IsKey(this TableDataSchema table, Field field) { return table.Keys.Length == 0 ? field.FieldType == FieldType.Dimension : field.FieldType == FieldType.Key; }
public StaticFieldMapper(Field field, object value) { Value = value; _fields = new[] {field}; }
protected bool Equals(Field other) { return string.Equals(Name, other.Name) && ValueType == other.ValueType && FieldType == other.FieldType && SortOrder == other.SortOrder && string.Equals(SortBy, other.SortBy); }
public void AddHashKey(IKeyFactory keyFactory = null) { if( HashKey.HasValue) throw new InvalidOperationException("A hash key has already been added"); KeyFactory = keyFactory ?? Keys.KeyFactory.Default; _fieldList.Add(_hashKeyField = KeyFactory.GetKeyField(Schema)); _hashKeyField.Hide = true; UpdateSchema(); }