blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/serializers/metrics/StringMetadataSerDes.java
public ByteBuffer serialize(String str) {
        try {
            byte[] buf = new byte[computeBufLength(str)];
            CodedOutputStream out = CodedOutputStream.newInstance(buf);
            writeToOutputStream(str, out);
            return ByteBuffer.wrap(buf);
        } catch (IOException e) {
            throw new RuntimeException("Error serializing string metadata", e);
        }
    }
public ByteBuffer serialize(String str) {
        try {
            byte[] buf = new byte[computeBufLength(str)];
            CodedOutputStream out = CodedOutputStream.newInstance(buf);
            writeToOutputStream(str, out);
            return ByteBuffer.wrap(buf);
        } catch (IOException e) {
            throw new RuntimeException("Error serializing string metadata", e);
        }
    }
public ByteBuffer serialize ( String str ) { try { byte [ ] buf = new byte [ computeBufLength ( str ) ] ; CodedOutputStream out = CodedOutputStream . newInstance ( buf ) ; writeToOutputStream ( str , out ) ; return ByteBuffer . wrap ( buf ) ; } catch ( IOException e ) { throw new RuntimeException ( "Error serializing string metadata" , e ) ; } }
History: this used to support multiple types.
History : this used to support multiple types .