TrawlerFetchReplyDataPartialResponse

AI Overview😉

  • The potential purpose of this module is to handle large file fetches by breaking them down into smaller, manageable chunks. This allows for more efficient processing and reduces the risk of memory overload.
  • This module could impact search results by ensuring that large files, such as videos or images, are properly indexed and made available to users. It may also improve the overall performance of the search engine by reducing the load on servers and improving the speed of content retrieval.
  • To be more favorable for this function, a website could optimize its content by providing clear and consistent file naming conventions, ensuring that large files are properly segmented and indexed, and using efficient compression algorithms to reduce file sizes. Additionally, websites could provide clear metadata, such as ETags and Content-Range headers, to help the search engine efficiently process and retrieve content.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.TrawlerFetchReplyDataPartialResponse (google_api_content_warehouse v0.4.0)

---------------------------------------------------------------------- PartialResponse is used with streaming responses in LargeFileFetchAdapter. Rather than fitting entirely in a single FetchReply, there is a series of FetchReplies until IsFinalResponse. Each group of responses will have a unique FetchID to link them.

Attributes

  • BodyLocation (type: String.t, default: nil) - If set, indicates where the fetched body is, e.g. a CNS file path. FetchReply.Body should be empty in this case. In the case where client does not support streaming but the content is too large to be accumulated in memory, we keep writing the streaming chunks to some storage unit and notify client when it is done.
  • ChunkNumber (type: integer(), default: nil) - Fetch number in this series of fetches
  • ContentRange (type: GoogleApi.ContentWarehouse.V1.Model.TrawlerContentRangeInfo.t, default: nil) - If there is a Content-Range header, the ranges in it
  • ETag (type: String.t, default: nil) - Any ETag seen in the headers
  • FetchID (type: String.t, default: nil) - ID which links all partial fetches for this url
  • IsFinalResponse (type: boolean(), default: nil) - Is this the final response for this fetch?

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.TrawlerFetchReplyDataPartialResponse{
    BodyLocation: String.t() | nil,
    ChunkNumber: integer() | nil,
    ContentRange:
      GoogleApi.ContentWarehouse.V1.Model.TrawlerContentRangeInfo.t() | nil,
    ETag: String.t() | nil,
    FetchID: String.t() | nil,
    IsFinalResponse: boolean() | nil
  }

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.