src/java/org/apache/cassandra/db/index/SecondaryIndexManager.java
/**
     * Drops and adds new indexes associated with the underlying CF
     * @throws IOException 
     */
Drops and adds new indexes associated with the underlying CF
@throws IOException
Drops and adds new indexes associated with the underlying CF @throws IOException
public void reload() throws IOException
    {
        Collection<ByteBuffer> indexedColumnNames = getIndexedColumns();
        for (ByteBuffer indexedColumn : indexedColumnNames)
        {
            ColumnDefinition def = baseCfs.metadata.getColumn_metadata().get(indexedColumn);
            if (def == null || def.getIndexType() == null)
                removeIndexedColumn(indexedColumn);
        }
        for (ColumnDefinition cdef : baseCfs.metadata.getColumn_metadata().values())
            if (cdef.getIndexType() != null && !indexedColumnNames.contains(cdef.name))
                addIndexedColumn(cdef);
    }
public void reload ( ) throws IOException { Collection < ByteBuffer > indexedColumnNames = getIndexedColumns ( ) ; for ( ByteBuffer indexedColumn : indexedColumnNames ) { ColumnDefinition def = baseCfs . metadata . getColumn_metadata ( ) . get ( indexedColumn ) ; if ( def == null || def . getIndexType ( ) == null ) removeIndexedColumn ( indexedColumn ) ; } for ( ColumnDefinition cdef : baseCfs . metadata . getColumn_metadata ( ) . values ( ) ) if ( cdef . getIndexType ( ) != null && ! indexedColumnNames . contains ( cdef . name ) ) addIndexedColumn ( cdef ) ; }
Drops and adds new indexes associated with the underlying CF
 @throws IOException
Drops and adds new indexes associated with the underlying CF @throws IOException
// figure out what needs to be added and dropped. // future: if/when we have modifiable settings for secondary indexes, // they'll need to be handled here.