@Override
  public double readDouble() throws TException {
    String val = readString();
    lastPrimitiveWasNullFlag = val == null;
    try {
      return val == null || val.isEmpty() ? 0 : Double.parseDouble(val);
    } catch (NumberFormatException e) {
      lastPrimitiveWasNullFlag = true;
      return 0;
    }
  }
Skip past the current field Just increments the field index counter.
serde/src/java/org/apache/hadoop/hive/serde2/thrift/TCTLSeparatedProtocol.java