Interface ContainerVectorLike

All Known Subinterfaces:
RepeatedValueVector
All Known Implementing Classes:
AbstractRepeatedMapVector, BaseRepeatedValueVector, DictVector, ListVector, RepeatedBigIntVector, RepeatedBitVector, RepeatedDateVector, RepeatedDecimal18Vector, RepeatedDecimal28DenseVector, RepeatedDecimal28SparseVector, RepeatedDecimal38DenseVector, RepeatedDecimal38SparseVector, RepeatedDecimal9Vector, RepeatedDictVector, RepeatedFloat4Vector, RepeatedFloat8Vector, RepeatedIntervalDayVector, RepeatedIntervalVector, RepeatedIntervalYearVector, RepeatedIntVector, RepeatedListVector, RepeatedListVector.DelegateRepeatedVector, RepeatedMapVector, RepeatedSmallIntVector, RepeatedTimeStampVector, RepeatedTimeVector, RepeatedTinyIntVector, RepeatedUInt1Vector, RepeatedUInt2Vector, RepeatedUInt4Vector, RepeatedUInt8Vector, RepeatedVar16CharVector, RepeatedVarBinaryVector, RepeatedVarCharVector, RepeatedVarDecimalVector

public interface ContainerVectorLike
A mix-in used for introducing container vector-like behaviour.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates and adds a child vector if none with the same name exists, else returns the vector instance.
    int
    Returns the number of child vectors in this container vector-like instance.
  • Method Details

    • addOrGetVector

      <T extends ValueVector> AddOrGetResult<T> addOrGetVector(VectorDescriptor descriptor)
      Creates and adds a child vector if none with the same name exists, else returns the vector instance.
      Parameters:
      descriptor - vector descriptor
      Returns:
      result of operation wrapping vector corresponding to the given descriptor and whether it's newly created
      Throws:
      DrillRuntimeException - if schema change is not permissible between the given and existing data vector types.
    • size

      int size()
      Returns the number of child vectors in this container vector-like instance.