示例#1
0
  @Override
  public long getLong(int columnIndex) {
    if (this.internalRowData[columnIndex] == null) {
      return 0;
    }

    return StringUtils.getLong(this.internalRowData[columnIndex]);
  }
示例#2
0
  public long getLong(int columnIndex) throws SQLException {
    findAndSeekToOffset(columnIndex);

    long length = this.rowFromServer.readFieldLength();

    int offset = this.rowFromServer.getPosition();

    if (length == Buffer.NULL_LENGTH) {
      return 0;
    }

    return StringUtils.getLong(this.rowFromServer.getByteBuffer(), offset, offset + (int) length);
  }