Exemplo n.º 1
0
            internal Column(string name, VectorKind vecKind, DataViewType itemType, bool isKey, SchemaShape annotations = null)
            {
                Contracts.CheckNonEmpty(name, nameof(name));
                Contracts.CheckValueOrNull(annotations);
                Contracts.CheckParam(!(itemType is KeyType), nameof(itemType), "Item type cannot be a key");
                Contracts.CheckParam(!(itemType is VectorType), nameof(itemType), "Item type cannot be a vector");
                Contracts.CheckParam(!isKey || KeyType.IsValidDataType(itemType.RawType), nameof(itemType), "The item type must be valid for a key");

                Name        = name;
                Kind        = vecKind;
                ItemType    = itemType;
                IsKey       = isKey;
                Annotations = annotations ?? _empty;
            }
 public SchemaShape GetOutputSchema(SchemaShape inputSchema)
 => _est.GetOutputSchema(inputSchema);