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
ConstructorsConstructorDescriptionTypeLayout(boolean isFixedBufferCount, BufferLayout... bufferLayouts) TypeLayout(List<BufferLayout> bufferLayouts) TypeLayout(List<BufferLayout> bufferLayouts, boolean isFixedBufferCount) Constructs a newTypeLayout.TypeLayout(BufferLayout... bufferLayouts) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the individual BufferLayouts for the given type.Returns the types of each buffer for this layout.static intgetTypeBufferCount(ArrowType arrowType) Gets the number ofBufferLayouts for the givenarrowType.static TypeLayoutgetTypeLayout(ArrowType arrowType) Constructs a newTypeLayoutfor the givenarrowType.inthashCode()booleanDetermines 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 newTypeLayoutfor the givenarrowType. -
getTypeBufferCount
Gets the number ofBufferLayouts 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
-