search: keywords: ['Java API', 'OClass', 'index', 'sharding', 'get auto sharding index', 'getAutoShardingIndex']

OClass - getAutoShardingIndex()

This method retrieves the auto sharding index configured for the class, if any.

Retrieving Auto Sharding Indexes

Syntax

OIndex<?> OClass().getAutoShardingIndex()

Return Value

This method returns an OIndex<?> instance for the auto-sharding index configured for the class.