API
API
Types
DataCubeOptions

DataCubeOptions

DataCube 생성 옵션 타입.
source는 단일 DataFrame 또는 StarSchema(스타 스키마)를 지정할 수 있다.

NameTypeDescription
columnarboolean (opens in a new tab)컬럼 기반 저장소 사용 여부 (기본값: true)
  • true: ColumnStore 사용 (원시 데이터를 columnar format으로 변환) TypedArray 기반으로 메모리 효율과 성능 최적화
  • false: DataViewSource 사용 (기존 DataFrame을 래핑, 복사 없음) 빠른 큐브 생성이 필요하거나 메모리 절약이 중요한 경우 | | filters | Array (opens in a new tab)<CubeFilter> | 초기 필터 목록.
    DataCube 생성 시 API 필터로 자동 적용된다.
    CubeFilter 형식으로 지정하며, addFilter()와 동일하게 동작한다.
    | | name | string (opens in a new tab) | 큐브 이름.
    | | schema | CubeSchema | 큐브 스키마 (차원 + 측정값)
    | | slicers | Array (opens in a new tab)<SlicerOptions> | 초기 Slicer 목록.
    DataCube 생성 시 addSlicer()로 자동 등록된다.
    각 SlicerOptions.name이 Slicer를 식별하는 키로 사용된다.
    | | source | any (opens in a new tab) | 데이터 소스.
  • DataFrame: 단일 테이블 (DataTable, DataTableView, RawTable 등)
  • StarSchema: Fact + Dimension 테이블들로 구성된 스타 스키마
  • string (opens in a new tab): DataSet 내 테이블 이름 (DataSet에서 해당 이름의 테이블을 찾아 큐브 생성) | | today | Date (opens in a new tab) | YTD/MTD/QTD/WTD 계산의 기준 날짜 (기본값: 현재 날짜)
  • ytd: 연초부터 이 날짜까지의 누적값
  • mtd: 월초부터 이 날짜까지의 누적값
  • qtd: 분기 시작부터 이 날짜까지의 누적값
  • wtd: 주 시작부터 이 날짜까지의 누적값 |