mirror of https://github.com/apache/cassandra
formatting
git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1050194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41c2ec0d1f
commit
e231f71f0f
|
|
@ -34,7 +34,8 @@ import org.apache.cassandra.thrift.IndexType;
|
|||
import org.apache.cassandra.utils.ByteBufferUtil;
|
||||
import org.apache.cassandra.utils.FBUtilities;
|
||||
|
||||
public class ColumnDefinition {
|
||||
public class ColumnDefinition
|
||||
{
|
||||
public final ByteBuffer name;
|
||||
public final AbstractType validator;
|
||||
private IndexType index_type;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
|
|||
}
|
||||
|
||||
for (ColumnDefinition cdef : metadata.getColumn_metadata().values())
|
||||
if (!indexedColumns.containsKey(cdef.name) && cdef.getIndexType() != null)
|
||||
if (cdef.getIndexType() != null && !indexedColumns.containsKey(cdef.name))
|
||||
addIndex(cdef);
|
||||
}
|
||||
|
||||
|
|
@ -1796,7 +1796,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
|
|||
|
||||
public SortedSet<ByteBuffer> getIndexedColumns()
|
||||
{
|
||||
return (SortedSet<ByteBuffer>) indexedColumns.keySet();
|
||||
return indexedColumns.keySet();
|
||||
}
|
||||
|
||||
public ColumnFamilyStore getIndexedColumnFamilyStore(ByteBuffer column)
|
||||
|
|
|
|||
Loading…
Reference in New Issue