컬렉션의 각 요소에 대해 첫 번째 일치 항목만 저장하려면 ee.Join.saveFirst()
를 사용하세요. saveFirst()
조인은 primary
컬렉션의 각 요소를 제외하고 saveAll()
조인과 동일한 방식으로 작동합니다. ee.Filter
에 지정된 조건과 일치하는 secondary
컬렉션의 첫 번째 요소를 저장하기만 합니다. primary
컬렉션에서 일치하지 않는 요소는 삭제됩니다. 정렬 속성과 순서가 제공되지 않는 한 (saveAll 예 참고) 저장되는 첫 번째 요소는 동일한 필터로 saveAll()
에서 찾은 목록의 요소 중 하나일 수 있습니다.
저장 후 조인
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003e\u003ccode\u003eee.Join.saveFirst()\u003c/code\u003e is used to save only the first matching element from a secondary collection to each element in a primary collection.\u003c/p\u003e\n"],["\u003cp\u003eIt functions similarly to \u003ccode\u003eee.Join.saveAll()\u003c/code\u003e, but only retains the first match, potentially dropping unmatched primary elements.\u003c/p\u003e\n"],["\u003cp\u003eThe "first" match is arbitrary unless a specific sorting property and order are defined within the join.\u003c/p\u003e\n"]]],[],null,["# Save-First Joins\n\nTo save only the first match for each element in a collection, use an\n`ee.Join.saveFirst()`. The `saveFirst()` join functions in an\nequivalent way to the `saveAll()` join, except for each element in the\n`primary` collection, it simply saves the first element from the\n`secondary` collection matching the condition specified in the\n`ee.Filter`. Unmatched elements in the `primary` collection\nare dropped. Unless a sorting property and an order are supplied (as in the\n[saveAll example](/earth-engine/guides/joins_save_all)), the first element saved might be\nany of the elements in the list found by `saveAll()` with the same filter."]]