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.



13942
13943
13944
# File 'lib/kaltura_types.rb', line 13942

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.



13946
13947
13948
# File 'lib/kaltura_types.rb', line 13946

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.



13944
13945
13946
# File 'lib/kaltura_types.rb', line 13944

def last_index_id
  @last_index_id
end

#should_updateObject

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



13948
13949
13950
# File 'lib/kaltura_types.rb', line 13948

def should_update
  @should_update
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
# File 'lib/kaltura_types.rb', line 13960

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