@Override public long getLong(int columnIndex) { if (this.internalRowData[columnIndex] == null) { return 0; } return StringUtils.getLong(this.internalRowData[columnIndex]); }
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); }