Package org.apache.flink.types

Examples of org.apache.flink.types.ShortValue


      break;
    case java.sql.Types.LONGNVARCHAR:
      record.setField(pos, new StringValue(resultSet.getString(pos + 1)));
      break;
    case java.sql.Types.TINYINT:
      record.setField(pos, new ShortValue(resultSet.getShort(pos + 1)));
      break;
    case java.sql.Types.SMALLINT:
      record.setField(pos, new ShortValue(resultSet.getShort(pos + 1)));
      break;
    case java.sql.Types.BIGINT:
      record.setField(pos, new LongValue(resultSet.getLong(pos + 1)));
      break;
    case java.sql.Types.INTEGER:
View Full Code Here


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

    return new ShortValue();
  }

  @Override
  public ShortValue copy(ShortValue from) {
    return copy(from, new ShortValue());
  }
View Full Code Here

    record.write(target);
  }

  @Override
  public ShortValue deserialize(DataInputView source) throws IOException {
    return deserialize(new ShortValue(), source);
  }
View Full Code Here

    return limit;
  }
 
  @Override
  public ShortValue createValue() {
    return new ShortValue();
  }
View Full Code Here

  }
 
  @Override
  public ShortValue[] getValidTestResults() {
    return new ShortValue[] {
      new ShortValue((short) 0), new ShortValue((short) 1), new ShortValue((short) 576),
      new ShortValue((short) -8778), new ShortValue(Short.MAX_VALUE), new ShortValue(Short.MIN_VALUE)
    };
  }
View Full Code Here

  @Override
  protected ShortValue[] getTestData() {
    Random rnd = new Random(874597969123412341L);
    int rndInt = rnd.nextInt(32767);
   
    return new ShortValue[] {new ShortValue((short) 0), new ShortValue((short) 1), new ShortValue((short) -1),
              new ShortValue((short) rndInt), new ShortValue((short) -rndInt),
              new ShortValue((short) -32767), new ShortValue((short) 32768)};
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.types.ShortValue

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.