Class: Aws::S3::Types::ScanRange

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

Note:

When making an API call, you may pass ScanRange data as a hash:

{
  start: 1,
  end: 1,
}

Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#endInteger

Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <scanrange><end>50</end></scanrange> means scan the last 50 bytes.

Returns:

  • (Integer)


11924
11925
11926
11927
11928
11929
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 11924

class ScanRange < Struct.new(
  :start,
  :end)
  SENSITIVE = []
  include Aws::Structure
end

#startInteger

Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only start is supplied, it means scan from that point to the end of the file.For example; <scanrange><start>50</start></scanrange> means scan from byte 50 until the end of the file.

Returns:

  • (Integer)


11924
11925
11926
11927
11928
11929
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 11924

class ScanRange < Struct.new(
  :start,
  :end)
  SENSITIVE = []
  include Aws::Structure
end