Class: Altertable::Lakehouse::Models::QueryRequest
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
-
#catalog ⇒ Object
readonly
Returns the value of attribute catalog.
-
#compute_size ⇒ Object
readonly
Returns the value of attribute compute_size.
-
#ephemeral ⇒ Object
readonly
Returns the value of attribute ephemeral.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#query_id ⇒ Object
readonly
Returns the value of attribute query_id.
-
#requested_by ⇒ Object
readonly
Returns the value of attribute requested_by.
-
#sanitize ⇒ Object
readonly
Returns the value of attribute sanitize.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
-
#visible ⇒ Object
readonly
Returns the value of attribute visible.
Instance Method Summary collapse
-
#initialize(statement:, catalog: nil, schema: nil, session_id: nil, compute_size: nil, sanitize: nil, limit: nil, offset: nil, timezone: nil, ephemeral: nil, visible: nil, requested_by: nil, query_id: nil, cache: nil) ⇒ QueryRequest
constructor
A new instance of QueryRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(statement:, catalog: nil, schema: nil, session_id: nil, compute_size: nil, sanitize: nil, limit: nil, offset: nil, timezone: nil, ephemeral: nil, visible: nil, requested_by: nil, query_id: nil, cache: nil) ⇒ QueryRequest
Returns a new instance of QueryRequest.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/altertable/lakehouse/models.rb', line 59 def initialize(statement:, catalog: nil, schema: nil, session_id: nil, compute_size: nil, sanitize: nil, limit: nil, offset: nil, timezone: nil, ephemeral: nil, visible: nil, requested_by: nil, query_id: nil, cache: nil) @statement = statement @catalog = catalog @schema = schema @session_id = session_id @compute_size = compute_size @sanitize = sanitize @limit = limit @offset = offset @timezone = timezone @ephemeral = ephemeral @visible = visible @requested_by = requested_by @query_id = query_id @cache = cache end |
Instance Attribute Details
#cache ⇒ Object (readonly)
Returns the value of attribute cache.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def cache @cache end |
#catalog ⇒ Object (readonly)
Returns the value of attribute catalog.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def catalog @catalog end |
#compute_size ⇒ Object (readonly)
Returns the value of attribute compute_size.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def compute_size @compute_size end |
#ephemeral ⇒ Object (readonly)
Returns the value of attribute ephemeral.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def ephemeral @ephemeral end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def limit @limit end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def offset @offset end |
#query_id ⇒ Object (readonly)
Returns the value of attribute query_id.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def query_id @query_id end |
#requested_by ⇒ Object (readonly)
Returns the value of attribute requested_by.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def requested_by @requested_by end |
#sanitize ⇒ Object (readonly)
Returns the value of attribute sanitize.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def sanitize @sanitize end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def schema @schema end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def session_id @session_id end |
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def statement @statement end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def timezone @timezone end |
#visible ⇒ Object (readonly)
Returns the value of attribute visible.
57 58 59 |
# File 'lib/altertable/lakehouse/models.rb', line 57 def visible @visible end |
Instance Method Details
#to_h ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/altertable/lakehouse/models.rb', line 76 def to_h h = { statement: @statement } h[:catalog] = @catalog if @catalog h[:schema] = @schema if @schema h[:session_id] = @session_id if @session_id h[:compute_size] = @compute_size if @compute_size h[:sanitize] = @sanitize unless @sanitize.nil? h[:limit] = @limit if @limit h[:offset] = @offset if @offset h[:timezone] = @timezone if @timezone h[:ephemeral] = @ephemeral unless @ephemeral.nil? h[:visible] = @visible unless @visible.nil? h[:requested_by] = @requested_by if @requested_by h[:query_id] = @query_id if @query_id h[:cache] = @cache unless @cache.nil? h end |