@Override
    public long getValueHashCode() {
        if (fullBuffer == null) {
            getValueBuffer();
        }
        return StagingValueSerde.extractValueHash(fullBuffer);
    }
Only call this after you have finished writing to the output stream.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/StagingValueOutputStream.java