Package eu.stratosphere.types

Examples of eu.stratosphere.types.BooleanValue


      }
      return il;
    case BOOLEAN:
      BooleanListValue bl = new BooleanListValue();
      for (Object item : avroList) {
        bl.add(new BooleanValue((Boolean) item));
      }
      return bl;
    case DOUBLE:
      DoubleListValue dl = new DoubleListValue();
      for (Object item : avroList) {
View Full Code Here


      }
      return im;
    case BOOLEAN:
      BooleanMapValue bm = new BooleanMapValue();
      for (Map.Entry<CharSequence, ?> entry : avroMap.entrySet()) {
        bm.put(new StringValue((CharSequence) entry.getKey()), new BooleanValue((Boolean) entry.getValue()));
      }
      return bm;
    case DOUBLE:
      DoubleMapValue dm = new DoubleMapValue();
      for (Map.Entry<CharSequence, ?> entry : avroMap.entrySet()) {
View Full Code Here

    switch (type) {
    case java.sql.Types.NULL:
      record.setField(pos, NullValue.getInstance());
      break;
    case java.sql.Types.BOOLEAN:
      record.setField(pos, new BooleanValue(resultSet.getBoolean(pos + 1)));
      break;
    case java.sql.Types.BIT:
      record.setField(pos, new BooleanValue(resultSet.getBoolean(pos + 1)));
      break;
    case java.sql.Types.CHAR:
      record.setField(pos, new StringValue(resultSet.getString(pos + 1)));
      break;
    case java.sql.Types.NCHAR:
View Full Code Here

    }
    if(hadoopType instanceof org.apache.hadoop.io.DoubleWritable) {
      return new DoubleValue(((DoubleWritable)hadoopType).get());
    }
    if(hadoopType instanceof org.apache.hadoop.io.BooleanWritable) {
      return new BooleanValue(((BooleanWritable)hadoopType).get());
    }
    if(hadoopType instanceof org.apache.hadoop.io.ByteWritable) {
      return new ByteValue(((ByteWritable)hadoopType).get());
    }
    if (hadoopType instanceof NullWritable) {
View Full Code Here

    return false;
  }
 
  @Override
  public BooleanValue createInstance() {
    return new BooleanValue();
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.types.BooleanValue

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.