Class FastClientRecordCache.CachedValue
java.lang.Object
com.linkedin.venice.fastclient.cache.FastClientRecordCache.CachedValue
- Enclosing class:
- FastClientRecordCache
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 Summary
-
Method Details
-
getValue
- Returns:
- a new
ByteBufferover 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()
-