blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/CassandraModel.java
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");
                    }
                };
            }
        };
    }
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");
                    }
                };
            }
        };
    }
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.
iterate over all column families that store metrics .