語言

SchemaAnnotationsExtensions 類別

定義

擴充方法以方便使用熱門內容 Annotations。

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

方法

名稱 Description
GetKeyValues<TValue>(DataViewSchema+Column, VBuffer<TValue>)

若該欄位的鍵型態為且鍵值屬於 ItemType 誰 RawType 的匹配 TValue,則會將輸入欄位的鍵值儲存在所提供的緩衝區中。 若沒有匹配的鍵值註解,則會拋出例外。

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

若有插槽名稱,則將輸入欄位的插槽名稱儲存到提供的緩衝區中。 否則就會拋出例外。

HasKeyValues(DataViewSchema+Column, PrimitiveDataViewType)

若輸入欄位為 VectorDataViewType,且 具有 SlotNames 註釋,VectorDataViewType且 TextDataViewTypeItemType 為 ,Size且 的 與該輸入向量大小相符,則返回true。

HasSlotNames(DataViewSchema+Column)

若輸入欄位為 VectorDataViewType,且 具有 SlotNames 註釋,VectorDataViewType且 TextDataViewTypeItemType 為 ,Size且 的 與該輸入向量大小相符,則返回true。

IsNormalized(DataViewSchema+Column)

當且僅當column註解設定IsNormalized為 true時回傳true。

適用於