public static Map<ImmutableBytesWritable, IdxIndexDescriptor> getIndexDescriptors(HColumnDescriptor columnDescriptor) throws IOException {
Map<ImmutableBytesWritable, ImmutableBytesWritable> values = columnDescriptor.getValues();
if (hasIndexDescriptors(columnDescriptor)) {
DataInputBuffer in = new DataInputBuffer();
byte[] bytes = values.get(INDEX_DESCRIPTORS).get();
in.reset(bytes, bytes.length);
int size = in.readInt();
Map<ImmutableBytesWritable, IdxIndexDescriptor> indexDescriptors
= new HashMap<ImmutableBytesWritable, IdxIndexDescriptor>(size);