blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/astyanax/AstyanaxReader.java
public Map<String, String> getMetadataValues(Locator locator) {
        Timer.Context ctx = Instrumentation.getReadTimerContext(CassandraModel.CF_METRICS_METADATA_NAME);
        try {
            final ColumnList<String> results = keyspace.prepareQuery(CassandraModel.CF_METRICS_METADATA)
                    .getKey(locator)
                    .execute().getResult();
            return new HashMap<String, String>(){{
                for (Column<String> result : results) {
                    put(result.getName(), result.getValue(StringMetadataSerializer.get()));
                }
            }};
        } catch (NotFoundException ex) {
            Instrumentation.markNotFound(CassandraModel.CF_METRICS_METADATA_NAME);
            return null;
        } catch (ConnectionException e) {
            log.error("Error reading metadata value", e);
            Instrumentation.markReadError(e);
            throw new RuntimeException(e);
        } finally {
            ctx.stop();
        }
    }
public Map<String, String> getMetadataValues(Locator locator) {
        Timer.Context ctx = Instrumentation.getReadTimerContext(CassandraModel.CF_METRICS_METADATA_NAME);
        try {
            final ColumnList<String> results = keyspace.prepareQuery(CassandraModel.CF_METRICS_METADATA)
                    .getKey(locator)
                    .execute().getResult();
            return new HashMap<String, String>(){{
                for (Column<String> result : results) {
                    put(result.getName(), result.getValue(StringMetadataSerializer.get()));
                }
            }};
        } catch (NotFoundException ex) {
            Instrumentation.markNotFound(CassandraModel.CF_METRICS_METADATA_NAME);
            return null;
        } catch (ConnectionException e) {
            log.error("Error reading metadata value", e);
            Instrumentation.markReadError(e);
            throw new RuntimeException(e);
        } finally {
            ctx.stop();
        }
    }
public Map < String , String > getMetadataValues ( Locator locator ) { Timer . Context ctx = Instrumentation . getReadTimerContext ( CassandraModel . CF_METRICS_METADATA_NAME ) ; try { final ColumnList < String > results = keyspace . prepareQuery ( CassandraModel . CF_METRICS_METADATA ) . getKey ( locator ) . execute ( ) . getResult ( ) ; return new HashMap < String , String > ( ) { { for ( Column < String > result : results ) { put ( result . getName ( ) , result . getValue ( StringMetadataSerializer . get ( ) ) ) ; } } } ; } catch ( NotFoundException ex ) { Instrumentation . markNotFound ( CassandraModel . CF_METRICS_METADATA_NAME ) ; return null ; } catch ( ConnectionException e ) { log . error ( "Error reading metadata value" , e ) ; Instrumentation . markReadError ( e ) ; throw new RuntimeException ( e ) ; } finally { ctx . stop ( ) ; } }
Method that returns all metadata for a given locator as a map.

@param locator  locator name
@return Map of metadata for that locator
@throws RuntimeException(com.netflix.astyanax.connectionpool.exceptions.ConnectionException)
Method that returns all metadata for a given locator as a map .