Class: Kaltura::KalturaIndexJobData

Inherits:
KalturaJobData show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#filterObject

The filter should return the list of objects that need to be reindexed.



14056
14057
14058
# File 'lib/kaltura_types.rb', line 14056

def filter
  @filter
end

#last_index_depthObject

Indicates the last depth that reindexed, used when the batch crached, to re-run from the last crash point.



14060
14061
14062
# File 'lib/kaltura_types.rb', line 14060

def last_index_depth
  @last_index_depth
end

#last_index_idObject

Indicates the last id that reindexed, used when the batch crached, to re-run from the last crash point.



14058
14059
14060
# File 'lib/kaltura_types.rb', line 14058

def last_index_id
  @last_index_id
end

#should_updateObject

Indicates that the object columns and attributes values should be recalculated before reindexed.



14062
14063
14064
# File 'lib/kaltura_types.rb', line 14062

def should_update
  @should_update
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
# File 'lib/kaltura_types.rb', line 14074

def from_xml(xml_element)
	super
	if xml_element.elements['filter'] != nil
		self.filter = KalturaClientBase.object_from_xml(xml_element.elements['filter'], 'KalturaFilter')
	end
	if xml_element.elements['lastIndexId'] != nil
		self.last_index_id = xml_element.elements['lastIndexId'].text
	end
	if xml_element.elements['lastIndexDepth'] != nil
		self.last_index_depth = xml_element.elements['lastIndexDepth'].text
	end
	if xml_element.elements['shouldUpdate'] != nil
		self.should_update = xml_element.elements['shouldUpdate'].text
	end
end