private Set < String > getShardedLinkValues ( String objID , FieldDefinition linkDef , Set < Integer > shardNums ) { Set < String > values = new HashSet < String > ( ) ; if ( shardNums . size ( ) == 0 ) { return values ; } // Construct row keys for the link's possible Terms records. Set < String > termRowKeys = new HashSet < String > ( ) ; for ( Integer shardNumber : shardNums ) { termRowKeys . add ( shardedLinkTermRowKey ( linkDef , objID , shardNumber ) ) ; } TableDefinition tableDef = linkDef . getTableDef ( ) ; String termStore = termsStoreName ( tableDef ) ; Tenant tenant = Tenant . getTenant ( tableDef ) ; for ( DRow row : DBService . instance ( tenant ) . getRows ( termStore , termRowKeys ) ) { for ( DColumn column : row . getAllColumns ( 1024 ) ) { values . add ( column . getName ( ) ) ; } } return values ; }
Get all target object IDs for the given sharded link .