Data\Conversion.cs (35)
386Contracts.Check(typeSrc.RawType == typeof(TSrc));
387Contracts.Check(typeDst.RawType == typeof(TDst));
440if (!KeyDataViewType.IsValidDataType(typeDst.RawType))
442if (Marshal.SizeOf(keySrc.RawType) > Marshal.SizeOf(typeDst.RawType))
444if (keySrc.Count > typeDst.RawType.ToMaxInt())
465identity = typeSrc.RawType == typeDst.RawType;
466var key = (typeSrc.RawType, typeDst.RawType);
489Contracts.Check(type.RawType == typeof(TSrc), "Wrong TSrc type argument");
515Contracts.Check(key.RawType == typeof(TSrc));
543Contracts.Check(typeDst.RawType == typeof(TDst), "Wrong TDst type parameter");
548Contracts.Assert(_tryParseDelegates.ContainsKey(typeDst.RawType));
549return (TryParseMapper<TDst>)_tryParseDelegates[typeDst.RawType];
554Contracts.Assert(key.RawType == typeof(TDst));
576return Utils.MarshalInvoke(_getKeyParseMethodInfo, this, key.RawType, key);
581Contracts.Assert(key.RawType == typeof(TDst));
624Contracts.CheckParam(type.RawType == typeof(T), nameof(type));
628if (!t.IsStandardScalar() && !(t is KeyDataViewType) || !_isDefaultDelegates.TryGetValue(t.RawType, out del))
645Contracts.CheckParam(type.RawType == typeof(T), nameof(type));
668Contracts.Assert(_isDefaultDelegates.ContainsKey(t.RawType));
669del = _isDefaultDelegates[t.RawType];
671else if (!t.IsStandardScalar() || !_isNADelegates.TryGetValue(t.RawType, out del))
684Contracts.CheckParam(type.ItemType.RawType == typeof(T), nameof(type));
691Contracts.Assert(_hasZeroDelegates.ContainsKey(t.RawType));
692del = _hasZeroDelegates[t.RawType];
694else if (!t.IsStandardScalar() || !_hasNADelegates.TryGetValue(t.RawType, out del))
708Contracts.CheckParam(type.RawType == typeof(T), nameof(type));
711if (!_getNADelegates.TryGetValue(type.RawType, out del))
726Contracts.CheckParam(type.RawType == typeof(T), nameof(type));
729if (!_getNADelegates.TryGetValue(type.RawType, out del))
741if (_isDefaultDelegates.TryGetValue(type.RawType, out isDefPred))
756Contracts.CheckParam(type.RawType == typeof(T), nameof(type));
759if (!_getNADelegates.TryGetValue(type.RawType, out del))
Data\DataViewUtils.cs (8)
485return Utils.MarshalInvoke(_getPoolCoreMethodInfo, type.RawType, pools, poolIdx);
542Utils.MarshalInvoke(_createInPipeMethodInfo, this, column.Type.RawType, input, activeToCol[c]);
737Contracts.Assert(typeof(T) == type.RawType);
868pipeType = typeof(ImplVec<>).MakeGenericType(vectorType.ItemType.RawType);
872pipeType = typeof(ImplOne<>).MakeGenericType(type.RawType);
1244return Utils.MarshalInvoke(_createGetterMethodInfo, this, Schema[col].Type.RawType, col);
1341getter = Utils.MarshalInvoke(GetVectorFlatteningGetter<int>, vectorType.ItemType.RawType,
1346getter = Utils.MarshalInvoke(GetSingleValueGetter<int>, colType.RawType,
Data\RowCursorUtils.cs (18)
39return Utils.MarshalInvoke(_getGetterAsDelegateCoreMethodInfo, row.Schema[col].Type.RawType, row, col);
65var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType, typeDst.RawType);
77Contracts.CheckParam(typeDst.RawType == typeof(TDst), nameof(typeDst));
86var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType, typeof(TDst));
92Contracts.Assert(typeof(TSrc) == typeSrc.RawType);
93Contracts.Assert(typeof(TDst) == typeDst.RawType);
129return Utils.MarshalInvoke(GetGetterAsStringBuilderCore<int>, typeSrc.RawType, typeSrc, row, col);
134Contracts.Assert(typeof(TSrc) == typeSrc.RawType);
164var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeDst.RawType);
175Contracts.CheckParam(typeDst.RawType == typeof(TDst), nameof(typeDst));
184var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeof(TDst));
196Contracts.CheckParam(typeDst.RawType == typeof(TDst), nameof(typeDst));
201var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeof(TDst));
257Contracts.Assert(typeof(TSrc) == typeSrc.ItemType.RawType);
258Contracts.Assert(typeof(TDst) == typeDst.RawType);
310return Utils.MarshalInvoke(_getIsNewGroupDelegateCoreMethodInfo, type.RawType, cursor, col);
DataLoadSave\Text\TextLoaderParser.cs (8)
81return Utils.MarshalInvoke(_getCreatorOneCoreMethodInfo, this, type.RawType, type);
87Contracts.Assert(typeof(T) == type.RawType);
94return Utils.MarshalInvoke(_getCreatorVecCoreMethodInfo, this, type.RawType, type);
100Contracts.Assert(typeof(T) == type.RawType);
108return Utils.MarshalInvoke(_getCreatorOneCoreMethodInfo, this, key.RawType, key);
114return Utils.MarshalInvoke(_getCreatorVecCoreMethodInfo, this, key.RawType, key);
262Contracts.Assert(typeof(TResult) == type.RawType);
445Contracts.Assert(typeof(TItem) == type.RawType);
Evaluators\EvaluatorUtils.cs (10)
378Contracts.Check(typeSrc.RawType == typeof(TSrc));
405return Utils.MarshalInvoke(AddTextColumn<int>, inputColType.RawType, env,
412Contracts.Check(typeSrc.RawType == typeof(TSrc));
447return Utils.MarshalInvoke(AddKeyColumn<int>, inputColType.RawType, env,
463Contracts.CheckParam(typeof(T) == itemType.RawType, nameof(itemType), "Generic type does not match the item type");
575if (keyValueItemType == null || keyValueItemType.RawType != typeof(T))
578if (!(typeItemType is KeyDataViewType itemKeyType) || typeItemType.RawType != typeof(uint))
613var keyValueMappers = Utils.MarshalInvoke(MapKeys<int>, keyValueType.RawType, views.Select(view => view.Schema).ToArray(), columnName, false, indices, keyNames);
681var keyValueMappers = Utils.MarshalInvoke(MapKeys<int>, keyValueType.RawType, views.Select(view => view.Schema).ToArray(), columnName, true, columnIndices, keyNames);
933idv = Utils.MarshalInvoke(AddVarLengthColumn<int>, vectorType.ItemType.RawType, env, idv,
Scorers\MulticlassClassificationScorer.cs (5)
145_getter = Utils.MarshalInvoke(_decodeInitMethodInfo, this, _type.ItemType.RawType, value);
187Utils.MarshalActionInvoke(SaveCore<int>, _type.ItemType.RawType, ctx);
193Contracts.Assert(_type.ItemType.RawType == typeof(T));
235return Utils.MarshalInvoke(CreateBound<int>, _type.ItemType.RawType, env, (ISchemaBoundRowMapper)innerBound, _type, _getter, _metadataKind, _canWrap);
422return Utils.MarshalInvoke(WrapCore<int>, keyType.ItemType.RawType, env, mapper, trainSchema);
Transforms\SlotsDroppingTransformer.cs (4)
745return Utils.MarshalInvoke(_makeOneTrivialGetterMethodInfo, this, _srcTypes[iinfo].RawType);
766return Utils.MarshalInvoke(_makeVecTrivialGetterMethodInfo, this, vectorType.ItemType.RawType);
787return Utils.MarshalInvoke(_makeVecGetterMethodInfo, this, vectorType.ItemType.RawType, input, iinfo);
821return Utils.MarshalInvoke(_getSrcGetterMethodInfo, this, typeDst.RawType, row, iinfo);
Transforms\ValueMapping.cs (14)
304if (valueType.RawType == typeof(uint))
309else if (valueType.RawType == typeof(ulong))
810var method = del.Method.GetGenericMethodDefinition().MakeGenericMethod(keyColumn.Type.RawType, valueColumn.Type.RawType);
901return Utils.MarshalInvoke(_getVectorMethodInfo, vectorType.ItemType.RawType, _mapping[key]);
903return Utils.MarshalInvoke(_getValueMethodInfo, ValueColumn.Type.RawType, _mapping[key]);
1090castNode.AddAttribute("to", itemType.RawType);
1222castNode.AddAttribute("to", typeValue.RawType);
1228castNode.AddAttribute("to", typeValue.RawType);
1234castNode.AddAttribute("to", typeValue.RawType);
1240castNode.AddAttribute("to", typeValue.RawType);
1246castNode.AddAttribute("to", typeValue.RawType);
1256castNode.AddAttribute("to", typeValue.RawType);
1266castNode.AddAttribute("to", typeValue.RawType);
Transforms\ValueToKeyMappingTransformerImpl.cs (12)
57return Utils.MarshalInvoke(_createCoreMethodInfo, itemType.RawType, itemType, sorted);
64Contracts.Assert(type.RawType == typeof(T));
167Contracts.Assert(type.RawType == typeof(T));
297return Utils.MarshalInvoke(CreateVec<int>, bldr.ItemType.RawType, row, col, count, bldr);
298return Utils.MarshalInvoke(CreateOne<int>, bldr.ItemType.RawType, row, col, autoConvert, count, bldr);
536return Utils.MarshalInvoke(LoadCodecCore<int>, codec.Type.RawType, ctx, ectx, codec, count);
767Contracts.Assert(ItemType.RawType == typeof(T));
843return Utils.MarshalInvoke(CreateCore<int>, map.ItemType.RawType, host, schema, map, infos, textMetadata, iinfo);
1100TypedMap.ItemType.GetKeyCountAsInt32(_host) == 0 || !Utils.MarshalInvoke(_addMetadataCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, builder))
1110_host.Assert(srcMetaType.RawType == typeof(TMeta));
1181TypedMap.ItemType.GetKeyCountAsInt32(_host) == 0 || !Utils.MarshalInvoke(_writeTextTermsCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, writer))
1191_host.Assert(srcMetaType.RawType == typeof(TMeta));