public static int getPartitionForParameter ( VoltType partitionType , Object invocationParameter ) { return instance . get ( ) . getSecond ( ) . getHashedPartitionForParameter ( partitionType , invocationParameter ) ; }
Given the type of the targeting partition parameter and an object coerce the object to the correct type and hash it . NOTE NOTE NOTE NOTE! THIS SHOULD BE THE ONLY WAY THAT YOU FIGURE OUT THE PARTITIONING FOR A PARAMETER! ON SERVER