public static CellNameType getIndexComparator ( CFMetaData baseMetadata , ColumnDefinition cdef ) { switch ( cdef . getIndexType ( ) ) { case KEYS : return new SimpleDenseCellNameType ( keyComparator ) ; case COMPOSITES : return CompositesIndex . getIndexComparator ( baseMetadata , cdef ) ; case CUSTOM : return null ; } throw new AssertionError ( ) ; }
Returns the index comparator for index backed by CFS or null .