Operations
สรุป terminal และ operation ขยาย Driver ของ Query ทั่วไป, write, root aggregation, Atlas Search และ Vector Search
terminal ของ Query ทั่วไป
findAll()
execute, executePageStream, executeAggregationStream, executeAggregationPageStream, executeAggregation, executeLookup, executeLookupAndCount
ค้นหา()
ดำเนินการ, ดำเนินการครั้งแรก, ดำเนินการรวม, ดำเนินการค้นหา
นับ()
ดำเนินการ, ดำเนินการรวม, ดำเนินการค้นหา
มีอยู่()
ดำเนินการ, ดำเนินการรวม, ดำเนินการค้นหา
แตกต่าง(field, resultClass)
중복 제거 값을 Flux<R>로 반환
ลบ()
ลบเอกสารที่ตรงตาม criteria ปัจจุบันด้วยวิธี deleteMany
อัปเดตแบบอะตอมิก()
first/multi/upsertOne → เอกสาร/ท่อ → ดำเนินการ
ตัวเลือกการค้นหาทั่วไป
การแบ่งหน้า(pageNumber, pageSize)
ข้าม/จำกัด หน้าแบบ 0-based
จัดเรียง(...) / SortSpec.driver(Bson)
จัดเรียง DSL และจัดเรียงแบบ Driver-native ตามลำดับที่ป้อน
ยกเว้น(String...)
ยกเว้นการคาดการณ์
readPreference(...)
ส่งผ่าน MongoDB Driver ReadPreference
isAllowDiskUse(boolean)
ควบคุมการอนุญาตให้ใช้ดิสก์ในการรวมข้อมูล
customizeQuery(...) / customizeAggregation(...)
ใช้ตัวเลือกเพิ่มเติมกับ Driver publisher ที่สร้างขึ้น
การรวมแบบ Driver-native root
aggregation().stage(Bson)
เพิ่ม Driver stage หรือ raw Document ลงใน pipeline ตามลำดับที่เรียก
stages(Bson...) / stages(Collection<? extends Bson>)
เพิ่มหลาย Driver-native stage
execute()
แมพผลลัพธ์ Flux ตามประเภทเอนทิตีต้นทาง
execute(ResultType.class)
แมพรูปแบบผลลัพธ์ที่เปลี่ยนแปลงตามประเภทที่กำหนด
executeDocument()
ส่งคืน raw Document Flux
Atlas Search terminal
findAll().execute()
Flux<E> 검색 결과
findAll().executePage() / executePageStream()
ผลลัพธ์หน้า หรือ reactive page wrapper
find().execute() / executeFirst()
Mono<E> 단건 결과
count().execute()
นับผลลัพธ์สุดท้ายของ pipeline หลังจาก $search
count().executeSearchMeta()
นับ metadata ของ Atlas Search ตาม $searchMeta
existsQuery().execute()
ตรวจสอบว่ามีผลลัพธ์การค้นหาหรือไม่
stage(Bson) / driverOptions(...) / operator(SearchOperator)
เส้นทางการขยายการค้นหาแบบ Driver-native
เทอร์มินัลการค้นหาเวกเตอร์
findAll().execute() / find().execute()
ส่งคืนผลลัพธ์ของเวกเตอร์พายป์ไลน์เป็น Flux/Mono
count().execute() / existsQuery().execute()
นับ/มีอยู่ของผลลัพธ์พายป์ไลน์หลังจากเวกเตอร์ลิมิต
parentFilter(...) / nestedScoreMode(...)
API ความสะดวกในการฝังซ้อน/อาร์เรย์ของ Driver 5.10
query(VectorSearchQuery) / driverOptions(...) / stage(Bson)
เส้นทางการขยายการค้นหาเวกเตอร์แบบ Driver-native
การวินิจฉัย
preview()
เรนเดอร์เอกสารสำหรับการวินิจฉัย query/pipeline ปัจจุบันโดยไม่ต้องเรียกใช้ DB
explain([ExplainVerbosity])
การดำเนินการ explain ของ MongoDB Driver จริง