Package org.apache.arrow.vector
Class TypeLayout
java.lang.Object
org.apache.arrow.vector.TypeLayout
The buffer layout of vectors for a given type. It defines its own buffers followed by the buffers
for the children if it is a nested type (Struct_, List, Union)
-
Constructor Summary
ConstructorDescriptionTypeLayout
(boolean isFixedBufferCount, BufferLayout... bufferLayouts) TypeLayout
(List<BufferLayout> bufferLayouts) TypeLayout
(List<BufferLayout> bufferLayouts, boolean isFixedBufferCount) Constructs a newTypeLayout
.TypeLayout
(BufferLayout... bufferLayouts) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the individual BufferLayouts for the given type.Returns the types of each buffer for this layout.static int
getTypeBufferCount
(ArrowType arrowType) Gets the number ofBufferLayout
s for the givenarrowType
.static TypeLayout
getTypeLayout
(ArrowType arrowType) Constructs a newTypeLayout
for the givenarrowType
.int
hashCode()
boolean
Determines whether the buffer count is fixed for the given type.toString()
-
Constructor Details
-
TypeLayout
Constructs a newTypeLayout
.- Parameters:
bufferLayouts
- the individual BufferLayouts for the given typeisFixedBufferCount
- whether the number of buffers is fixed
-
TypeLayout
-
TypeLayout
-
TypeLayout
-
-
Method Details
-
getTypeLayout
Constructs a newTypeLayout
for the givenarrowType
. -
getTypeBufferCount
Gets the number ofBufferLayout
s for the givenarrowType
. -
getBufferLayouts
Returns the individual BufferLayouts for the given type. -
getBufferTypes
Returns the types of each buffer for this layout. A layout can consist of multiple buffers for example a validity bitmap buffer, a value buffer or an offset buffer. -
isFixedBufferCount
public boolean isFixedBufferCount()Determines whether the buffer count is fixed for the given type.- Returns:
- true if the buffer count is fixed, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-