RefreshResourceStatistics

Refresh the statistics on a resource for use by the cost-based optimizer.

RELATIONAL_DATA_SOURCE, FILE_DATA_SOURCE, DATABASE_TABLE and DELIMITED_FILE_TABLE are the only resources that support statistics.

Note: This procedure is different from the web services operation of the same name, which is in the resource tree under /services/webservices/system/admin/resource/operations/.

Location

/lib/resource/

Inputs

path: The path to the resource.

type: The type of the resource.

isBlocking: Indicates whether the call blocks until completion.

Outputs

N/A

Exceptions

IllegalArgumentException: If the path is malformed or an illegal type is provided.

IllegalStateException: If the statistics gathering is disabled.

NotAllowedException: If the resource type does not support statistics. RELATIONAL_DATA_SOURCE, FILE_DATA_SOURCE, DATABASE_TABLE and DELIMITED_FILE_TABLE are the only resources that support statistics.

NotFoundException: If the resource or any portion of the path to the resource does not exist.

SecurityException: If the user does not have READ access on all items in path.