Infoblox::Cursor - Manages paged searches.
This class enables users to conduct database searches returning large datasets in an object-by-object manner.
my $cursor=$session->new_cursor( fetch_size => 200, object => "Infoblox::DNS::AllRecords", return_methods => ['name'], name => ".*" );
This section describes all the methods that you can use when creating a cursor used for paged searches.
This method is used to set the amount of records returned from the back-end to the client for every request. Larger values will cause less requests to be sent to the back-end and more memory used on the client-side; smaller values will cause more requests.
The default value is 100.
Other parameters for this constructor are any valid search parameters as described in Infoblox::Session->search()
Paged search is supported for the following object types:
The following sample code demonstrates how to execute a paged search.
#PROGRAM STARTS: Include all the modules that will be used $cursor=$session->new_cursor( fetch_size => 100, object => "Infoblox::DNS::AllRecords", name => '.*', );
while ($current_record = $cursor->fetch()) { # $current_record will contain a matching record object }
Infoblox Inc. http://www.infoblox.com/
Infoblox::Session, Infoblox::Session->search()
Copyright (c) 2017 Infoblox Inc.