private CfDef getInvertedIndexCF ( TableInfo tableInfo ) throws InvalidRequestException , SchemaDisagreementException , TException { boolean indexTableRequired = CassandraPropertyReader . csmd . isInvertedIndexingEnabled ( databaseName ) && ! tableInfo . getEmbeddedColumnMetadatas ( ) . isEmpty ( ) ; if ( indexTableRequired ) { CfDef cfDef = new CfDef ( ) ; cfDef . setKeyspace ( databaseName ) ; cfDef . setColumn_type ( "Super" ) ; cfDef . setName ( tableInfo . getTableName ( ) + Constants . INDEX_TABLE_SUFFIX ) ; cfDef . setKey_validation_class ( UTF8Type . class . getSimpleName ( ) ) ; return cfDef ; } return null ; }
Gets the inverted index cf .