메인 콘텐츠로 건너뛰기
weave / Dataset 간편하게 저장되고 자동으로 버전 관리되는 Dataset 객체 Example
// 데이터셋 생성
const  = new Dataset({
  : 'grammar-dataset',
  : [
    { : '0', : "He no likes ice cream.", : "He doesn't like ice cream." },
    { : '1', : "She goed to the store.", : "She went to the store." },
    { : '2', : "They plays video games all day.", : "They play video games all day." }
  ]
})

// 특정 예시 액세스
const  = .getRow(2).sentence;

// 데이터셋 저장
const  = await .save()

타입 매개변수

이름유형
Rextends DatasetRow

계층 구조

목차

생성자

속성

접근자

방법

생성자

생성자

new Dataset<R>(parameters): Dataset<R>

타입 매개변수

이름유형
Rextends DatasetRow

매개변수

이름유형
parametersDatasetParameters<R>

반환값

Dataset<R>

오버라이드

WeaveObject.constructor

정의된 위치

src/dataset.ts:55

속성

__savedRef

선택 __savedRef: ObjectRef | Promise<ObjectRef>

상속됨

WeaveObject.__savedRef

정의된 위치

src/weaveObject.ts:71

rows

rows: Table<R>

정의된 위치

src/dataset.ts:53

접근자

설명

get description(): undefined | string

반환값

undefined | string

상속됨

WeaveObject.description

정의된 위치

src/weaveObject.ts:98

length

get length(): number

반환값

number

정의된 위치

src/dataset.ts:68

name

get name(): string

반환값

string

상속 출처

WeaveObject.name

정의된 위치

src/weaveObject.ts:94

방법

[asyncIterator]

[asyncIterator](): AsyncIterator<any, any, any>

반환값

AsyncIterator<any, any, any>

정의된 위치

src/dataset.ts:72

getRow

getRow(index): R

매개변수

이름유형
indexnumber

반환값

R

정의된 위치

src/dataset.ts:78

save

save(): Promise<ObjectRef>

반환값

Promise<ObjectRef>

정의된 위치

src/dataset.ts:64

saveAttrs

saveAttrs(): 객체

반환값

객체

상속됨

WeaveObject.saveAttrs

정의된 위치

src/weaveObject.ts:75