Unlock instant, AI-driven research and patent intelligence for your innovation.

File storage method and device and file query method and device

A file storage and query technology, applied in the file system, file system type, file access structure, etc., can solve the problems of low file read and write efficiency, data redundancy, etc., to improve file read and write efficiency and avoid data redundancy. Effect

Active Publication Date: 2020-02-14
CHINANETCENT TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a file storage method and device and a file query method and device to solve the problem of low file read and write efficiency due to data redundancy in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File storage method and device and file query method and device
  • File storage method and device and file query method and device
  • File storage method and device and file query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.

[0027]It should be noted that the terms "first" and "second" in the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for storing files and a method and device for querying files. The method for storing files comprises following steps: receiving log data; analyzing the log data to obtain multiple meta-messages; dividing the multiple meta-messages into multiple data blocks; storing the multiple data blocks into a memory cache sequentially; storing the log data into a preset file according to the multiple data blocks in the memory cache. By means of the method and device of the invention, the read-write efficiency of files is increased.

Description

technical field [0001] The invention relates to the field of file storage, in particular to a file storage method and device, and a file query method and device. Background technique [0002] After the files are collected by the collector and received by the distributed message system, the original log is stored in the distributed file system using the programming model framework, for example, stored in the distributed file system (Hadoop Distributed File System, referred to as HDFS). In the process of saving the original log, in addition to saving the log records, it is also necessary to save the meta-information composed of the log version and so on. In a distributed message system, some log records of the same file have the same meta information, that is, some log records of the same file have a many-to-one relationship with meta information. [0003] At present, there are mainly two ways to save the original log. One is to combine log records and meta information into ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/13G06F16/14G06F16/18
CPCG06F16/13G06F16/148G06F16/1815
Inventor 洪珂刘华明李波柳阳彬
Owner CHINANETCENT TECH