IntervalYear implements a vector of fixed width values. Elements in the vector are accessed
by position, starting from the logical start of the vector. Values should be pushed onto the
vector sequentially, but may be randomly accessed.
The width of each element is 4 byte(s)
The equivalent Java primitive is 'int'
NB: this class is automatically generated from FixedValueVectors.java and ValueVectorTypes.tdd using FreeMarker.

getBufferSizeFor

Returns the number of bytes that is used by this vector if it holds the given number
of values. The result will be the same as if Mutator.setValueCount() were called, followed
by calling getBufferSize(), but without any of the closing side-effects that setValueCount()
implies wrt finishing off the population of a vector. Some operations might wish to use
this to determine how much memory has been used by a vector so far, even though it is
not finished being populated.

allocateNew

public void allocateNew(int valueCount)

Allocate a new buffer that supports setting at least the provided number of values. May actually be sized bigger
depending on underlying buffer rounding size. Must be called prior to using the ValueVector.
Note that the maximum number of values a vector can allocate is Integer.MAX_VALUE / value width.