Search in sources :

Example 1 with Float8Vector

use of org.apache.drill.exec.vector.Float8Vector in project drill by apache.

the class MoneyGen method setValue.

@Override
public void setValue(ValueVector v, int index) {
    Float8Vector vector = (Float8Vector) v;
    vector.getMutator().set(index, value());
}
Also used : Float8Vector(org.apache.drill.exec.vector.Float8Vector)

Example 2 with Float8Vector

use of org.apache.drill.exec.vector.Float8Vector in project drill by axbaretto.

the class MoneyGen method setValue.

@Override
public void setValue(ValueVector v, int index) {
    Float8Vector vector = (Float8Vector) v;
    vector.getMutator().set(index, value());
}
Also used : Float8Vector(org.apache.drill.exec.vector.Float8Vector)

Example 3 with Float8Vector

use of org.apache.drill.exec.vector.Float8Vector in project drill by axbaretto.

the class DoubleGen method setValue.

@Override
public void setValue(ValueVector v, int index) {
    Float8Vector vector = (Float8Vector) v;
    vector.getMutator().set(index, value());
}
Also used : Float8Vector(org.apache.drill.exec.vector.Float8Vector)

Example 4 with Float8Vector

use of org.apache.drill.exec.vector.Float8Vector in project drill by axbaretto.

the class TestBitRpc method getRandomBatch.

private static WritableBatch getRandomBatch(BufferAllocator allocator, int records) {
    List<ValueVector> vectors = Lists.newArrayList();
    for (int i = 0; i < 5; i++) {
        Float8Vector v = (Float8Vector) TypeHelper.getNewVector(MaterializedField.create("a", Types.required(MinorType.FLOAT8)), allocator);
        v.allocateNew(records);
        v.getMutator().generateTestData(records);
        vectors.add(v);
    }
    return WritableBatch.getBatchNoHV(records, vectors, false);
}
Also used : ValueVector(org.apache.drill.exec.vector.ValueVector) Float8Vector(org.apache.drill.exec.vector.Float8Vector) DrillbitEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint)

Example 5 with Float8Vector

use of org.apache.drill.exec.vector.Float8Vector in project drill by apache.

the class TestBitBitKerberos method getRandomBatch.

private static WritableBatch getRandomBatch(BufferAllocator allocator, int records) {
    List<ValueVector> vectors = Lists.newArrayList();
    for (int i = 0; i < 5; i++) {
        Float8Vector v = (Float8Vector) TypeHelper.getNewVector(MaterializedField.create("a", Types.required(MinorType.FLOAT8)), allocator);
        v.allocateNew(records);
        v.getMutator().generateTestData(records);
        vectors.add(v);
    }
    return WritableBatch.getBatchNoHV(records, vectors, false);
}
Also used : ValueVector(org.apache.drill.exec.vector.ValueVector) Float8Vector(org.apache.drill.exec.vector.Float8Vector) DrillbitEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint)

Aggregations

Float8Vector (org.apache.drill.exec.vector.Float8Vector)17 SchemaPath (org.apache.drill.common.expression.SchemaPath)8 Test (org.junit.Test)8 FunctionImplementationRegistry (org.apache.drill.exec.expr.fn.FunctionImplementationRegistry)6 PhysicalPlan (org.apache.drill.exec.physical.PhysicalPlan)6 FragmentRoot (org.apache.drill.exec.physical.base.FragmentRoot)6 PhysicalPlanReader (org.apache.drill.exec.planner.PhysicalPlanReader)6 DrillbitEndpoint (org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint)5 IntVector (org.apache.drill.exec.vector.IntVector)5 ValueVector (org.apache.drill.exec.vector.ValueVector)5 OperatorTest (org.apache.drill.categories.OperatorTest)4 FragmentContextImpl (org.apache.drill.exec.ops.FragmentContextImpl)4 UserClientConnection (org.apache.drill.exec.rpc.UserClientConnection)4 DrillbitContext (org.apache.drill.exec.server.DrillbitContext)4 ExecTest (org.apache.drill.exec.ExecTest)3 Float8Holder (org.apache.drill.exec.expr.holders.Float8Holder)3 SimpleRootExec (org.apache.drill.exec.physical.impl.SimpleRootExec)3 Mean (org.apache.commons.math.stat.descriptive.moment.Mean)2 StandardDeviation (org.apache.commons.math.stat.descriptive.moment.StandardDeviation)2 DrillConfig (org.apache.drill.common.config.DrillConfig)2