रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकले > ConnectionDB
ConnectionDB क्लास
कनेक्शन का डेटाबेस. कनेक्शन, उनके वर्टिकल कॉम्पोनेंट के क्रम में सेव किए जाते हैं. इस तरह से, बाइनरी सर्च का इस्तेमाल करके किसी इलाके में कनेक्शन तुरंत खोजे जा सकते हैं.
हस्ताक्षर:
export declare class ConnectionDB
कंस्ट्रक्टर
तरीके
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-16 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-10-16 (UTC) को अपडेट किया गया."],[[["The `ConnectionDB` class manages a database of connections, organized for efficient retrieval using binary search."],["It provides methods for finding nearby and compatible connections, essential for block interactions and bumping."],["Connections are stored and accessed based on their vertical position for optimized searching."],["The `ConnectionDB` is initialized for a workspace to handle connections between blocks."]]],["The `ConnectionDB` class manages a database of connections, ordered vertically for efficient lookup. Key actions include constructing a `ConnectionDB` instance, using `getNeighbours` to find nearby connections (without type checking), initializing a set of connection databases via the static `init` method, removing a connection using `removeConnection`, and finding the nearest compatible connection with `searchForClosest`. These functions allow to efficiently manage and query connections within a blockly workspace.\n"]]