语言

SchemaAnnotationsExtensions 类

定义

扩展方法,方便轻松使用常用内容 Annotations。

public static class SchemaAnnotationsExtensions
type SchemaAnnotationsExtensions = class
Public Module SchemaAnnotationsExtensions
继承
SchemaAnnotationsExtensions

方法

名称 说明
GetKeyValues<TValue>(DataViewSchema+Column, VBuffer<TValue>)

如果将输入列的键值存储到提供的缓冲区中,则为键类型以及键值与其ItemType匹配TValue项RawType的值。 如果没有匹配的键值批注,则会引发异常。

GetSlotNames(DataViewSchema+Column, VBuffer<ReadOnlyMemory<Char>>)

如果存在槽名称,则将输入列的槽名称存储在提供的缓冲区中。 否则,它将引发异常。

HasKeyValues(DataViewSchema+Column, PrimitiveDataViewType)

返回true输入列是否为 VectorDataViewType,并且具有SlotNames其所属TextDataViewType的ItemType批注VectorDataViewType,并进一步Size匹配此输入向量大小。

HasSlotNames(DataViewSchema+Column)

返回true输入列是否为 VectorDataViewType,并且具有SlotNames其所属TextDataViewType的ItemType批注VectorDataViewType,并进一步Size匹配此输入向量大小。

IsNormalized(DataViewSchema+Column)

仅 true 当 column 批 IsNormalized 注设置为 true时,才返回 。

适用于