RecordSetのファイル保存・読み込み
RecordSetをファイルに保存、また、そのデータを読み込みすることができます。
def record = {RecordSet {RecordFields {RecordField “c1”, domain = int, index-type = RecordFieldIndexType.unique}, {RecordField “c2”, domain = String}, {RecordField “c3”, domain = DateTime} }, {RecordData c1 = 1, c2 = “v1”, c3 = {DateTime}}, {RecordData c1 = 2, c2 = “v2”, c3 = {DateTime}}, {RecordData c1 = 3, c2 = “v3”, c3 = {DateTime}}, {RecordData c1 = 4, c2 = “v4”, c3 = {DateTime}}, {RecordData c1 = 5, c2 = “v5”, c3 = {DateTime}} } def path = “file/record.bin” {save-record-set-to-url {url path}, record} def restore = {read-record-set-from-url {url path}} |
パッケージ名:COM.CURLAP.LIB.IO