public static final class HostColumnVector.Builder extends Object implements AutoCloseable
public final HostColumnVector.Builder append(boolean value)
public final HostColumnVector.Builder append(byte value)
public final HostColumnVector.Builder append(byte value, long count)
public final HostColumnVector.Builder append(short value)
public final HostColumnVector.Builder append(int value)
public final HostColumnVector.Builder append(long value)
public final HostColumnVector.Builder append(float value)
public final HostColumnVector.Builder append(double value)
public final HostColumnVector.Builder append(BigDecimal value)
value
- BigDecimal value to be appendedpublic final HostColumnVector.Builder append(BigDecimal value, RoundingMode roundingMode)
value
- BigDecimal value to be appendedroundingMode
- rounding mode determines rescaling behaviorpublic final HostColumnVector.Builder appendUnscaledDecimal(int value)
public final HostColumnVector.Builder appendUnscaledDecimal(long value)
public final HostColumnVector.Builder appendUnscaledDecimal(BigInteger value)
public HostColumnVector.Builder append(String value)
public HostColumnVector.Builder appendUTF8String(byte[] value)
public HostColumnVector.Builder appendUTF8String(byte[] value, int offset, int length)
public HostColumnVector.Builder appendArray(byte... values)
public HostColumnVector.Builder appendArray(short... values)
public HostColumnVector.Builder appendArray(int... values)
public HostColumnVector.Builder appendArray(long... values)
public HostColumnVector.Builder appendArray(float... values)
public HostColumnVector.Builder appendArray(double... values)
public HostColumnVector.Builder appendUnscaledDecimalArray(int... values)
public HostColumnVector.Builder appendUnscaledDecimalArray(long... values)
public HostColumnVector.Builder appendBoxed(BigDecimal... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Byte... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Boolean... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Short... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Integer... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Long... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Float... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(Double... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder appendBoxed(String... values) throws IndexOutOfBoundsException
values
- the values to append, including nulls.{@link
- IndexOutOfBoundsException}IndexOutOfBoundsException
public final HostColumnVector.Builder append(HostColumnVector columnVector)
columnVector
- - Vector to be addedpublic final HostColumnVector.Builder appendNull()
public final HostColumnVector.Builder setNullAt(long index)
index
- public final HostColumnVector build()
public final ColumnVector buildAndPutOnDevice()
public final void close()
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.