public static String termIndexRowKey ( TableDefinition tableDef , DBObject dbObj , String fieldName , String term ) { StringBuilder termRecKey = new StringBuilder ( ) ; int shardNumber = tableDef . getShardNumber ( dbObj ) ; if ( shardNumber > 0 ) { termRecKey . append ( shardNumber ) ; termRecKey . append ( "/" ) ; } termRecKey . append ( FieldAnalyzer . makeTermKey ( fieldName , term ) ) ; return termRecKey . toString ( ) ; }
Create the Terms row key for the given table object field name and term .