public static Iterable < MetricColumnFamily > getMetricColumnFamilies ( ) { return new Iterable < MetricColumnFamily > ( ) { @ Override public Iterator < MetricColumnFamily > iterator ( ) { return new Iterator < MetricColumnFamily > ( ) { private int pos = 0 ; @ Override public boolean hasNext ( ) { return pos < METRIC_COLUMN_FAMILES . length ; } @ Override public MetricColumnFamily next ( ) { return METRIC_COLUMN_FAMILES [ pos ++ ] ; } @ Override public void remove ( ) { throw new NoSuchMethodError ( "Not implemented" ) ; } } ; } } ; }
iterate over all column families that store metrics .