<commit_before>syntax = "proto2";

package alluxio.proto.dataserver;

import "dataserver/status.proto";

// The read/write request type. It can either be an Alluxio block operation or a UFS file operation.
// next available id: 2
enum RequestType {
  ALLUXIO_BLOCK = 0;
  UFS_FILE = 1;
}

// The read request.
// next available id: 8
message ReadRequest {
  optional int64 block_id = 1;
  optional int64 offset = 2;
  optional int64 length = 3;
  // If set, this request is to cancel the reading request for the id.
  optional bool cancel = 4;
  // Whether the block should be promoted before reading
  optional bool promote = 7;

  // If set, the server should send packets in the specified packet size.
  optional int64 packet_size = 5;

  // This is only set for UFS block read.
  optional OpenUfsBlockOptions open_ufs_block_options = 6;
}

// Options for caching a block asynchronously
// next available id: 4
message AsyncCacheRequest {
  optional int64 block_id = 1;
  optional string source_host = 2;
  optional int32 source_port = 3;
}

// Options to open a UFS block.
// next available id: 7
message OpenUfsBlockOptions {
  optional string ufs_path = 1;
  // The offset of the block in within the file.
  optional int64 offset_in_file = 2;
  // The block size.
  optional int64 block_size = 3;
  optional int32 maxUfsReadConcurrency = 4;<commit_msg>Update proto.<commit_after>syntax = "proto2";

package alluxio.proto.dataserver;

import "dataserver/status.proto";

// The read/write request type. It can either be an Alluxio block operation or a UFS file operation.
// next available id: 2
enum RequestType {
  ALLUXIO_BLOCK = 0;
  UFS_FILE = 1;
}

// The read request.
// next available id: 8
message ReadRequest {
  optional int64 block_id = 1;
  optional int64 offset = 2;
  optional int64 length = 3;
  // If set, this request is to cancel the reading request for the id.
  optional bool cancel = 4;
  // Whether the block should be promoted before reading
  optional bool promote = 7;

  // If set, the server should send packets in the specified packet size.
  optional int64 packet_size = 5;

  // This is only set for UFS block read.
  optional OpenUfsBlockOptions open_ufs_block_options = 6;
}

// Options for caching a block asynchronously
// next available id: 5
message AsyncCacheRequest {
  optional int64 block_id = 1;
  optional string source_host = 2;
  optional int32 source_port = 3;
  optional OpenUfsBlockOptions open_ufs_block_options = 4;
}

// Options to open a UFS block.
// next available id: 7
message OpenUfsBlockOptions {
  optional string ufs_path = 1;
  // The offset of the block in within the file.
  optional int64 offset_in_file = 2;
  // The block size.
  optional int64 block_size = 3;
  optional int32 maxUfsReadConcurrency = 4;
{'fraction_non_alphanumeric': 0.07171171171171171, 'fraction_numerical': 0.02846846846846847, 'mean_word_length': 3.463022508038585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4548425', 'n_tokens_mistral': 902, 'n_tokens_neox': 831, 'n_words': 354}