IP Library Granted Patent US 10,382,551
Granted Patent B2
US 10,382,551 · App. 15/338,178 · Granted Aug 13, 2019

Cloud file processing method and apparatus

Inventor: Yehui Yang (Hangzhou, CN)
Assignee: ALIBABA GROUP HOLDING LIMITED
H04L67/1097G06F16/182H04L67/06H04L67/32G06F3/067
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,382,551
App. No.
15/338,178
Granted
Aug 13, 2019
Kind
B2
Abstract

Apparatuses and methods are disclosed for cloud file processing. An exemplary method may include acquiring a position of a first data packet read by the client in the target file as a reading position when a target file that a client intends to read from a cloud server is divided into a plurality of data packets. The method may also include acquiring a state of a second data packet not at the reading position in the target file as a peripheral state. The peripheral state is a read-completed state or an unread state. When the reading position and the peripheral state meet a preset condition, the method may further include sending, by the client, a data pre-fetch request to the cloud server. The data pre-fetch request is used to request to read, from the cloud server, a preset amount of data packets whose peripheral states are unread states in the target file.

Claims (74)

1. A method for processing cloud files containing a target file, the method comprising:

when the target file that a client intends to read from a cloud server is divided into a plurality of data packets:

acquiring a position of a first data packet read by the client in the target file as a reading position;

acquiring a state of a second data packet not at the reading position in the target file as a peripheral state, wherein the peripheral state is a read-completed state or an unread state; and

sending a data pre-fetch request by the client to the cloud server when the reading position and the peripheral state meet a preset condition,

wherein the data pre-fetch request is used to request to read, from the cloud server, a preset amount of data packets whose peripheral states are unread states in the target file.

2. The method of claim 1 , wherein:

the target file is divided into a plurality of data packets of equal size.

3. The method of claim 2 , further comprising:

establishing, before the client reads from the cloud server the target file, an information database of data packets, wherein the information database includes state information of the data packets of the target file and position information of the data packets of the target file that have been sorted in a preset order, and

wherein acquiring the position of the first data packet includes acquiring the position of the first data packet according to the position information of the first data packet in the information database, and acquiring the state of the second data packet includes acquiring the state of the second data packet according to the state information of the second data packet in the information database.

4. The method of claim 1 , wherein the preset condition includes:

the reading position is the first position of the target file; and

the peripheral states of all the data packets are unread states.

5. The method of claim 4 , further comprising:

acquiring the amount of data packets in the target file that are read by the client from the cloud server each time as a reading amount, and

setting the preset amount to be a value that is double the reading amount.

6. The method of claim 1 , wherein the preset condition includes:

the reading position is not the first position of the target file; and

the peripheral states of all data packets located in front of the reading position are read-completed states.

7. The method of claim 6 , wherein:

a double of the amount of pre-fetched data packets in a previous data pre-fetch request is used as the preset amount.

8. The method of claim 1 , wherein the preset condition includes:

the reading position is not the first position of the target file; and

the peripheral states of a part of data packets located in front of the reading position are read-completed states.

9. The method of claim 8 , wherein:

the amount of the data packets which are located in front of the reading position and of which the peripheral states are read-completed states is used as the preset amount.

10. The method of claim 1 , further comprising,

controlling the client to read the pre-fetched data packets from the cloud server after sending the data pre-fetch request by the client to the cloud server; and

caching the pre-fetched data packets locally at the client.

11. The method of claim 10 , wherein caching the pre-fetched data packets locally at the client includes:

sorting the pre-fetched data packets according to the access order of the pre-fetched data packets; and

caching the sorted pre-fetched data packets locally at the client.

12. An apparatus for processing cloud files, comprising:

a memory storing a set of instructions; and

one or more processors configured to execute the set of instructions to cause the apparatus to perform operations including:

when a target file that a client intends to read from a cloud server is divided into a plurality of data packets:

acquiring a position of a first data packet read by the client in the target file as a reading position;

acquiring a state of a second data packet not at the reading position in the target file as a peripheral state, wherein the peripheral state is a read-completed state or an unread state; and

sending a data pre-fetch request by the client to the cloud server when the reading position and the peripheral state meet a preset condition,

wherein the data pre-fetch request is used to request to read, from the cloud server, a preset amount of data packets whose peripheral states are unread states in the target file.

13. The apparatus of claim 12 , wherein:

the target file is divided into a plurality of data packets of equal size.

14. The apparatus of claim 12 , wherein the one or more processors are configured to execute the set of instructions to cause the apparatus to further perform operations including:

establishing an information database of data packets, wherein the information database includes state information of the data packets of the target file and position information of the data packets of the target file that have been sorted in a preset order, and

wherein the operation of acquiring the position of the first data packet includes acquiring the position of the first data packet according to the position information of the first data packet in the information database, and the operation of acquiring the state of the second data packet includes acquiring the state of the second data packet according to the state information of the second data packet in the information database.

15. The apparatus of claim 12 , wherein the preset condition includes:

the reading position is the first position of the target file; and

the peripheral states of all the data packets are unread states.

16. The apparatus of claim 15 , wherein the one or more processors are configured to execute the set of instructions to cause the apparatus to further perform operations including:

acquiring the amount of data packets in the target file that are read by the client from the cloud server each time as a reading amount, and

setting the present amount to be a value that is double the reading amount.

17. The apparatus of claim 12 , wherein the preset condition includes:

the reading position is not the first position of the target file; and

the peripheral states of all data packets located in front of the reading position are read-completed states.

18. The apparatus of claim 17 , wherein:

a double of the amount of pre-fetched data packets in a previous data pre-fetch request is used as the preset amount.

19. The apparatus of claim 12 , wherein the preset condition includes:

the reading position is not the first position of the target file; and

the peripheral states of a part of data packets located in front of the reading position are read-completed states.

20. The apparatus of claim 19 , wherein:

the amount of the data packets which are located in front of the reading position and of which the peripheral states are read-completed states is used as the preset amount.

21. The apparatus of claim 12 , wherein the one or more processors are configured to execute the set of instructions to cause the apparatus to further perform operations including:

controlling the client to read the pre-fetched data packets from the cloud server after sending the data pre-fetch request by the client to the cloud server; and

caching the pre-fetched data packets locally at the client.

22. The apparatus of claim 21 , wherein the operation of caching the pre-fetched data packets includes:

sorting the pre-fetched data packets according to the access order of the pre-fetched data packets; and

caching the sorted pre-fetched data packets locally at the client.

23. A non-transitory computer-readable storage medium that stores a set of instructions that is executable by at least one processor of an apparatus to cause the apparatus to perform a method for processing cloud files containing a target file, the method comprising:

when the target file that a client intends to read from a cloud server is divided into a plurality of data packets:

acquiring a position of a first data packet read by the client in the target file as a reading position;

acquiring a state of a second data packet not at the reading position in the target file as a peripheral state, wherein the peripheral state is a read-completed state or an unread state; and

sending a data pre-fetch request by the client to the cloud server when the reading position and the peripheral state meet a preset condition,

wherein the data pre-fetch request is used to request to read, from the cloud server, a preset amount of data packets whose peripheral states are unread states in the target file.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 21, 2026
From: ALIBABA GROUP HOLDING LIMITED
To: CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PRIVATE LIMITED
Reel/Frame 075478/0225 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 21, 2019
From: YANG, YEHUI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 049248/0470 →
Priority Claims (1)
CN 2015 1 0728030 · Oct 30, 2015 · national
Continuity (1)
Related Publication 20170126806A1 · May 4, 2017