Package org.apache.spark.storage.memory
Class DeserializedValuesHolder<T>
Object
org.apache.spark.storage.memory.DeserializedValuesHolder<T>
- All Implemented Interfaces:
ValuesHolder<T>
A holder for storing the deserialized values.
-
Constructor Summary
ConstructorDescriptionDeserializedValuesHolder
(scala.reflect.ClassTag<T> classTag, org.apache.spark.memory.MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionlong
Note: After this method is called, the ValuesHolder is invalid, we can't store data and get estimate size again.void
storeValue
(T value) org.apache.spark.util.collection.SizeTrackingVector<T>
vector()
-
Constructor Details
-
DeserializedValuesHolder
public DeserializedValuesHolder(scala.reflect.ClassTag<T> classTag, org.apache.spark.memory.MemoryMode memoryMode)
-
-
Method Details
-
arrayValues
-
estimatedSize
public long estimatedSize()- Specified by:
estimatedSize
in interfaceValuesHolder<T>
-
getBuilder
Description copied from interface:ValuesHolder
Note: After this method is called, the ValuesHolder is invalid, we can't store data and get estimate size again.- Specified by:
getBuilder
in interfaceValuesHolder<T>
- Returns:
- a MemoryEntryBuilder which is used to build a memory entry and get the stored data size.
-
storeValue
- Specified by:
storeValue
in interfaceValuesHolder<T>
-
vector
-