static SegmentValue newSegmentValueWithRecord(
        final byte[] value, final long validFrom, final long validTo) {
        return new PartiallyDeserializedSegmentValue(value, validFrom, validTo);
    }
Creates a new segment value that contains the provided record.
<p>
This method may also be used to create a "degenerate" segment with {@code null} value and
{@code validFrom} timestamp equal to {@code validTo}. (For more on degenerate segments,
see the main javadoc for this class.)

@param value the record value
@param validFrom the record's (validFrom) timestamp
@param validTo the record's validTo timestamp
@return the newly created segment value
streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStoreSegmentValueFormatter.java