๋ชจ๋ ํ์ฅ/์ถ์
์์ ์ฌ์ ํญ๋ชฉ์ด ํ์ด์ง์์
๊ฐ ์์ ์ฌ์ ํญ๋ชฉ์ ํ
์ด๋ธ ํ์ผ์ ํน์ ์์ฑ์ ์ ์ํฉ๋๋ค.
fspec-item ::= [ ansi | oem | mac | UTF-8 | Unicode | txt | fix | dif | biff | ooxml | html | xml | kml | qvd | qvx | parquet | json | delimiter is char | no eof | embedded labels | explicit labels | no labels | table is [ tablename ] | header is n | header is line | header is n lines | comment is string | record is n | record is line | record is n lines | no quotes |msq | URL is string | userAgent is string ]
๊ฐ ํจ์์ ๋ํ ๊ฐ๋จํ ์ค๋ช
๊ณผ ๊ตฌ๋ฌธ์ ๋ณด๋ ค๋ฉด ๊ฐ ํจ์์์ ๋๋กญ๋ค์ด์ ์ฌ์ฉํ์ญ์์ค. ์์ธํ ๋ด์ฉ์ ๊ตฌ๋ฌธ ์ค๋ช
์์ ํด๋น ํจ์ ์ด๋ฆ์ ํด๋ฆญํ์ญ์์ค.
๋ฌธ์ ์งํฉ
๋ฌธ์ ์งํฉ์ ํ์ผ์ ์ฌ์ฉ๋๋ ๋ฌธ์ ์งํฉ์ ์ ์ํ๋ LOAD ๋ฌธ์ ํ์ผ ์ง์ ์์
๋๋ค.
ansi | oem | mac | UTF-8 | Unicode | codepage is |
๋ฌธ์ ์งํฉ
ํ
์ด๋ธ ํ์
ํ
์ด๋ธ ํ์์ ํ์ผ ์ ํ์ ์ ์ํ๋ LOAD ๋ฌธ์ ์ํ ํ์ผ ์ง์ ์์
๋๋ค. ์๋ฌด๊ฒ๋ ์ง์ ํ์ง ์์ผ๋ฉด .txt ํ์ผ์ด ์ง์ ๋ ๊ฒ์ผ๋ก ๊ฐ์ ํฉ๋๋ค.
txt | fix | dif | biff |
ooxml |
html | xml | qvd | qvx | parquet | json |
ํ
์ด๋ธ ํ์
Delimiter is
๊ตฌ๋ถ๋ ํ
์ด๋ธ ํ์ผ์ ๊ฒฝ์ฐ delimiter is ์ง์ ์๋ฅผ ํตํด ์์์ ๊ตฌ๋ถ ๊ธฐํธ๋ฅผ ์ง์ ํ ์ ์์ต๋๋ค. ์ด ์ง์ ์๋ ๊ตฌ๋ถ๋ .txt ํ์ผ์๋ง ํด๋นํฉ๋๋ค.
delimiter char
Table is
XML, Excel, JSON ๋๋ ์ค์ฒฉ๋ Parquet ํ์ผ์ ๊ฒฝ์ฐ Table is๋ ํ์ผ์์ ๋ก๋ํ ํ
์ด๋ธ์ ์ง์ ํฉ๋๋ค.
table-is char
Header is
ํ
์ด๋ธ ํ์ผ์ ๋จธ๋ฆฌ๊ธ ํฌ๊ธฐ๋ฅผ ์ง์ ํฉ๋๋ค. header is ์ง์ ์๋ก ์์์ ๋จธ๋ฆฌ๊ธ ๊ธธ์ด๋ฅผ ์ง์ ํ ์ ์์ต๋๋ค. ๋จธ๋ฆฌ๊ธ์ Qlik Sense ์ ์ฌ์ฉ๋์ง ์๋ ํ
์คํธ ์น์
์
๋๋ค.
header-is n
Header is line
Header is n lines
Comment is
์์ค ๋ฐ์ดํฐ ํ์ผ์ ์ฃผ์ ์ค์ด ์๋ ๊ฒฝ์ฐ Comment is ๋ก ์ฃผ์ ์ ๋์ฌ๋ฅผ ์ ์ํ ์ ์์ต๋๋ค. ์ฃผ์ ์ค์ด ์์ํ๋ ๋ฌธ์๋ ๋ฌธ์์ด์ commentprefix ๋ก ์ค์ ํ๋ฉด ๋ฐ์ดํฐ๋ฅผ ๋ก๋ํ ๋ ํด๋น ์ค์ด ๋ฌด์๋ฉ๋๋ค.
Comment is commentprefix
labels
Labels ๋ LOAD ๋ฌธ์ ๋ํ ํ์ผ ์ง์ ์์ด๋ฉฐ ํ์ผ์์ ํ๋ ์ด๋ฆ์ ์์น๋ฅผ ์ ์ํฉ๋๋ค.
embedded
labels | explicit
labels| no labels
no eof
no eof ์ง์ ์๋ ๊ตฌ๋ถ๋ .txt ํ์ผ์ ๋ก๋ํ ๋ ํ์ผ ๋(EOF) ๋ฌธ์๋ฅผ ๋ฌด์ํ๊ธฐ ์ํด ์ฌ์ฉ๋ฉ๋๋ค.
no-eof
quotes
Quotes ๋ LOAD ๋ฌธ์ ๋ํ ํ์ผ ์ง์ ์๋ก, ์ธ์ฉ ๋ถํธ์ ์ฌ์ฉ ๊ฐ๋ฅ ์ฌ๋ถ ๋ฐ ์ธ์ฉ ๋ถํธ์ ๊ตฌ๋ถ ๊ธฐํธ ๊ฐ์ ์ฐ์ ์์๋ฅผ ์ ์ํฉ๋๋ค. ํ
์คํธ ํ์ผ์์๋ง ์ฌ์ฉํ ์ ์์ต๋๋ค.
no quotes
msq
Record is
๊ณ ์ ๋ ์ฝ๋ ๊ธธ์ด ํ์ผ์ ๊ฒฝ์ฐ record is ์ง์ ์๋ฅผ ํตํด ๋ ์ฝ๋ ๊ธธ์ด๋ฅผ ์ง์ ํด์ผ ํฉ๋๋ค.
record-is n
Record is line
Record is n lines
XML
์ด ์คํฌ๋ฆฝํธ ์ง์ ์๋ xml ํ์ผ์ ๋ก๋ํ ๋ ์ฌ์ฉ๋ฉ๋๋ค. XML ์ง์ ์์ ์ ํจํ ์ต์
์ด ๊ตฌ๋ฌธ์ ๋์ด๋ฉ๋๋ค.
xmlsimple
XML
KML
์ด ์คํฌ๋ฆฝํธ ์ง์ ์๋ KML ํ์ผ์ ๋ก๋ํ์ฌ ๋งต ์๊ฐํ์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ์ ์ฌ์ฉ๋ฉ๋๋ค.
KML