Object storage method, gateway, device and medium
An object storage and object technology, applied in structured data retrieval, file/folder operations, database indexing, etc., can solve the problem of low storage performance, reduce hardware costs, avoid hard disk read and write bottlenecks, and improve storage performance Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] see figure 1 , which is a flow chart of an object storage method provided by this application, including:
[0051] Step S101, obtaining the target video file to be stored from the user client;
[0052] Wherein, the user client is one of the application software, and the application software is a software program provided to meet the application requirements of users in different fields and problems. functions of various applications such as Figure 5 As shown, the gateway receives the target video file to be stored through the file interface of the application software.
[0053] The target video file is a video file shot by a camera device, a smart phone, a tablet device, a wearable device, or a computer device with a camera. The target video file is a large file, generally larger than 1GB. , finance, conference, business, monitoring and other fields to collect target video files.
[0054] Step S102, dividing the target video file into a plurality of objects conforming
Embodiment 2
[0112] Taking the video surveillance file storage structure as an example, its directory structure includes: root directory - camera subdirectory - date subdirectory - video files.
[0113] For example, a file name / carmera1 / 20210719 / 12093503.mp4, the file size is 1GB. The operation process of the video file received by the gateway is as follows:
[0114] (1) Create the carmera1 directory
[0115] Object storage generally has the concept of a storage bucket, which represents a namespace. In this embodiment, we do not focus on how to implement object storage. It is assumed that all created objects are in the same namespace;
[0116] The gateway will upload an object in the object storage, and the object name is / carmera1; where / is a special character, indicating that the object is a directory, and other special characters can be customized;
[0117] No real files are saved in the Carmera1 directory, so this object does not contain file content (if the gateway does no
Embodiment 3
[0140] For some files that may be modified and written, the following methods can be used to achieve.
[0141] Modification and writing generally occur inside the small file. Assume that the segment length of the small file is 4K, the file directory is / carmera3 / index / 20210713 / , the file name is 16380734.index, and the file size is 2MB. The data that needs to be modified and inserted is 1MB offset 200 bytes of data at . Then follow the steps below:
[0142] (1) Open the file
[0143] Open the file in write mode, the gateway creates a file handle in memory, the handle includes object name, segment length, write offset;
[0144] Find the same object name in the object storage, build the objects with the same object name into an object set, and set the write offset of the handle as the file length;
[0145]The way to find the same object is to only match the part of the object name that does not contain the $ serial number. In this example, a total of 512 objects from car
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap