Skip to Content
프로그래밍 스칼라: 실용적인 스칼라 활용법을 익히는 가장 확실한 실전 바이블 (2.11.x 버전 기반)
book

프로그래밍 스칼라: 실용적인 스칼라 활용법을 익히는 가장 확실한 실전 바이블 (2.11.x 버전 기반)

by 오현석, 딘 왐플러, 알렉스 페인
July 2016
Beginner to intermediate
776 pages
17h 26m
Korean
Hanbit Media, Inc.
Content preview from 프로그래밍 스칼라: 실용적인 스칼라 활용법을 익히는 가장 확실한 실전 바이블 (2.11.x 버전 기반)
654
4
고급 주제 및 실전 응용
Dynamic
은 선택적인 언어 기능이다. 따라서 임포트해서 활성화시켜야 한다.
➋ 필드의 프로젝션을 위해
selectDynamic
을 사용할 것이다.
➌ ‘키워드’인
all
이 들어온 경우 모든 필드를 반환하거나 레코드가 없는 경우를 처리한다.
➍ 둘 이상의 필드가
_
and
_
로 합쳐진 경우다. 따라서 각 필드의 이름을 분리해서 필드 이름의 배
열로 만든다.
➎ 맵에서 정해진 이름의 필드만 걸러낸다.
➏ 반환할 새
CLINQ
를 만든다.
applyDynamic
을 사용해서 프로젝션 뒤에 오는 연산자를 처리한다.
SQL
WHERE
절에 해
당하는
where
만 구현할 것이다. 새로운
Where
인스턴스를 반환한다. 그 인스턴스도
Dynamic
을 확장한다. 그 인스턴스의 영역에는 지금까지 얻은
records
동일한 객체가 들어 있다는 사
실에 유의하라. 따라서 그로부터 새로운 객체를 구축할 필요는 없다! 사용자가 다른 유사
-
SQL
키워드를 넣었다면 오류가 발생한다.
Where
클래스를 사용해서
field
라는 이름의 필드에 있는 값에 따라
records
에서 레코드를
걸러낸다.
➒ 영역 안에 있는
records
에 대해서, 그 안의 맵 중에서
field
가 지정하는 키와
op
(
value
,
v
)
true
를 반환하는
v
값을 가지는 키
-
값 쌍이 들어 있는 것을 골라내기 위한 도우미 메서드다.
➓ 연산자가
EQ
였다면
filter
를 호출해서 주어진
field
의 값이 사용자가 지정한 값과 같은 레
코드만 돌려준다.
 같지 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

이창현, 앨릭스 토머스

Publisher Resources

ISBN: 9788968482755