Search in sources :

Example 6 with TemporalNativeType

use of org.apache.ignite.internal.schema.TemporalNativeType in project ignite-3 by apache.

the class RowAssembler method appendTime.

/**
 * Appends LocalTime value for the current column to the chunk.
 *
 * @param val Column value.
 * @return {@code this} for chaining.
 * @throws SchemaMismatchException If a value doesn't match the current column type.
 */
public RowAssembler appendTime(LocalTime val) throws SchemaMismatchException {
    checkType(NativeTypeSpec.TIME);
    TemporalNativeType type = (TemporalNativeType) curCols.column(curCol).type();
    writeTime(buf, curOff, val, type);
    shiftColumn(type.sizeInBytes());
    return this;
}
Also used : TemporalNativeType(org.apache.ignite.internal.schema.TemporalNativeType)

Aggregations

TemporalNativeType (org.apache.ignite.internal.schema.TemporalNativeType)6