public final int appendFloats(int length, float[] src, int offset) { reserve(elementsAppended + length); int result = elementsAppended; putFloats(elementsAppended, length, src, offset); elementsAppended += length; return result; }
public final int appendFloats(int count, float v) { reserve(elementsAppended + count); int result = elementsAppended; putFloats(elementsAppended, count, v); elementsAppended += count; return result; }
public final int appendFloats(int count, float v) { reserve(elementsAppended + count); int result = elementsAppended; putFloats(elementsAppended, count, v); elementsAppended += count; return result; }
public final int appendFloats(int length, float[] src, int offset) { reserve(elementsAppended + length); int result = elementsAppended; putFloats(elementsAppended, length, src, offset); elementsAppended += length; return result; }
@Override public final void readFloats(int total, WritableColumnVector c, int rowId) { int requiredBytes = total * 4; ByteBuffer buffer = getBuffer(requiredBytes); if (buffer.hasArray()) { int offset = buffer.arrayOffset() + buffer.position(); c.putFloats(rowId, total, buffer.array(), offset); } else { for (int i = 0; i < total; i += 1) { c.putFloat(rowId + i, buffer.getFloat()); } } }
@Override public final void readFloats(int total, WritableColumnVector c, int rowId) { int requiredBytes = total * 4; ByteBuffer buffer = getBuffer(requiredBytes); if (buffer.hasArray()) { int offset = buffer.arrayOffset() + buffer.position(); c.putFloats(rowId, total, buffer.array(), offset); } else { for (int i = 0; i < total; i += 1) { c.putFloat(rowId + i, buffer.getFloat()); } } }
fromTimestampColumnVector((TimestampColumnVector)fromColumn, 0)); } else if (type instanceof FloatType) { toColumn.putFloats(0, batchSize, (float)((DoubleColumnVector)fromColumn).vector[0]); } else if (type instanceof DoubleType) { toColumn.putDoubles(0, batchSize, ((DoubleColumnVector)fromColumn).vector[0]);
fromTimestampColumnVector((TimestampColumnVector)fromColumn, 0)); } else if (type instanceof FloatType) { toColumn.putFloats(0, batchSize, (float)((DoubleColumnVector)fromColumn).vector[0]); } else if (type instanceof DoubleType) { toColumn.putDoubles(0, batchSize, ((DoubleColumnVector)fromColumn).vector[0]);
col.putLongs(0, capacity, row.getLong(fieldIdx)); } else if (t == DataTypes.FloatType) { col.putFloats(0, capacity, row.getFloat(fieldIdx)); } else if (t == DataTypes.DoubleType) { col.putDoubles(0, capacity, row.getDouble(fieldIdx));
col.putLongs(0, capacity, row.getLong(fieldIdx)); } else if (t == DataTypes.FloatType) { col.putFloats(0, capacity, row.getFloat(fieldIdx)); } else if (t == DataTypes.DoubleType) { col.putDoubles(0, capacity, row.getDouble(fieldIdx));