Package org.apache.drill.exec.vector.complex.writer

Examples of org.apache.drill.exec.vector.complex.writer.Decimal28SparseWriter


            return new DrillVarCharConverter(writer);
          }
          case DECIMAL: {
            DecimalMetadata metadata = type.getDecimalMetadata();
            if (metadata.getPrecision() <= 28) {
              Decimal28SparseWriter writer = type.getRepetition() == Repetition.REPEATED ? mapWriter.list(name).decimal28Sparse() : mapWriter.decimal28Sparse(name);
              return new DrillBinaryToDecimal28Converter(writer, metadata.getPrecision(), metadata.getScale());
            } else {
              Decimal38SparseWriter writer = type.getRepetition() == Repetition.REPEATED ? mapWriter.list(name).decimal38Sparse() : mapWriter.decimal38Sparse(name);
              return new DrillBinaryToDecimal38Converter(writer, metadata.getPrecision(), metadata.getScale());
            }
View Full Code Here


            return new DrillVarCharConverter(writer, mutator.getManagedBuffer());
          }
          case DECIMAL: {
            DecimalMetadata metadata = type.getDecimalMetadata();
            if (metadata.getPrecision() <= 28) {
              Decimal28SparseWriter writer = type.getRepetition() == Repetition.REPEATED ? mapWriter.list(name).decimal28Sparse() : mapWriter.decimal28Sparse(name);
              return new DrillBinaryToDecimal28Converter(writer, metadata.getPrecision(), metadata.getScale(), mutator.getManagedBuffer());
            } else {
              Decimal38SparseWriter writer = type.getRepetition() == Repetition.REPEATED ? mapWriter.list(name).decimal38Sparse() : mapWriter.decimal38Sparse(name);
              return new DrillBinaryToDecimal38Converter(writer, metadata.getPrecision(), metadata.getScale(), mutator.getManagedBuffer());
            }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.vector.complex.writer.Decimal28SparseWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.