Class FastClientRecordCache.CachedValue

java.lang.Object
com.linkedin.venice.fastclient.cache.FastClientRecordCache.CachedValue
Enclosing class:
FastClientRecordCache

public static final class FastClientRecordCache.CachedValue extends Object
A compressed, serialized value with its writer schema id. Records within the same version may use different writer schemas; metadata supplies their definitions, but the schema id identifies which schema encoded these bytes.
  • Method Details

    • getValue

      public ByteBuffer getValue()
      Returns:
      a new ByteBuffer over the cached bytes on every call, so that a reader consuming the buffer does not change any other reader's position. The backing array is shared for decoding without copying; callers must not modify its contents.
    • getSchemaId

      public int getSchemaId()