import { DataUnitInMemoryLoader } from '@sankhyalabs/core';
export default class InMemoryLoader {
  constructor(metadata, records, config) {
    this._dataUnitInMemoryLoader = new DataUnitInMemoryLoader(metadata, records, config);
  }
  get dataUnit() {
    return this._dataUnitInMemoryLoader.dataUnit;
  }
  get records() {
    return this._dataUnitInMemoryLoader.records;
  }
  set records(records) {
    this._dataUnitInMemoryLoader.records = records;
  }
  get metadata() {
    return this._dataUnitInMemoryLoader.metadata;
  }
  set metadata(metadata) {
    this._dataUnitInMemoryLoader.metadata = metadata;
  }
  removeLoader(_dataUnit, recordIds) {
    return this._dataUnitInMemoryLoader.removeLoader(_dataUnit, recordIds);
  }
  static getConvertedValue(descriptor, strValue, dateFormat) {
    return DataUnitInMemoryLoader.getConvertedValue(descriptor, strValue, dateFormat);
  }
}
InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME = DataUnitInMemoryLoader.IN_MEMORY_DATA_UNIT_NAME;
