Package org.apache.drill.exec.cache
Class CachedVectorContainer
java.lang.Object
org.apache.drill.exec.cache.CachedVectorContainer
- All Implemented Interfaces:
Externalizable
,Serializable
,DrillSerializable
- See Also:
-
Constructor Summary
ConstructorDescriptionCachedVectorContainer
(byte[] data, BufferAllocator allocator) CachedVectorContainer
(BufferAllocator allocator) CachedVectorContainer
(WritableBatch batch, BufferAllocator allocator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
get()
byte[]
getData()
void
void
void
readFromStream
(InputStream input) void
write
(DataOutput output) void
void
writeToStream
(OutputStream output)
-
Constructor Details
-
CachedVectorContainer
-
CachedVectorContainer
-
CachedVectorContainer
-
-
Method Details
-
read
- Specified by:
read
in interfaceDrillSerializable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDrillSerializable
- Throws:
IOException
-
get
-
clear
public void clear() -
getData
public byte[] getData() -
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readFromStream
- Specified by:
readFromStream
in interfaceDrillSerializable
- Throws:
IOException
-
writeToStream
- Specified by:
writeToStream
in interfaceDrillSerializable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-