@Override public double readDouble(int id) { return dict.decodeToInt(id); }
@Override public long readInteger(int id) { return dict.decodeToInt(id); }
@Override public long readLong(int id) { return dict.decodeToInt(id); }
@Override public float readFloat(int id) { return dict.decodeToInt(id); }
@Override public long readSmallInt(int id) { return validatedLong(dict.decodeToInt(id), serdeConstants.SMALLINT_TYPE_NAME); }
@Override public byte[] readDecimal(int id) { return super.validatedDecimal(dict.decodeToInt(id)); } }
@Override public long readTinyInt(int id) { return validatedLong(dict.decodeToInt(id), serdeConstants.TINYINT_TYPE_NAME); }
@Override public long readInteger(int id) { return super.validatedLong(dict.decodeToInt(id), serdeConstants.INT_TYPE_NAME, true); }
@Override public byte[] readString(int id) { return convertToBytes(dict.decodeToInt(id)); }
@Override public long readTinyInt(int id) { return validatedLong(dict.decodeToInt(id), serdeConstants.TINYINT_TYPE_NAME, true); }
@Override public long readSmallInt(int id) { return validatedLong(dict.decodeToInt(id), serdeConstants.SMALLINT_TYPE_NAME, true); }
@Override public byte[] readDecimal(int id) { long validatedIntValue = super.validatedLong(dict.decodeToInt(id), serdeConstants.INT_TYPE_NAME, true); if (super.isValid) { return super.validatedDecimal(validatedIntValue); } else { return null; } } }
@Override public byte[] readChar(int id) { String value = enforceMaxLength( convertToString(dict.decodeToInt(id))); return convertToBytes(value); }
@Override public byte[] readVarchar(int id) { String value = enforceMaxLength( convertToString(dict.decodeToInt(id))); return convertToBytes(value); }
@Override public int decodeToInt(int id) { return dictionary.decodeToInt(id); }
@Override public int decodeToInt(int id) { return dictionary.decodeToInt(id); }
@Override public int getInt(int rowId) { if (dictionary == null) { return intData[rowId]; } else { return dictionary.decodeToInt(dictionaryIds.getDictId(rowId)); } }
@Override public byte getByte(int rowId) { if (dictionary == null) { return Platform.getByte(null, data + rowId); } else { return (byte) dictionary.decodeToInt(dictionaryIds.getDictId(rowId)); } }
@Override public short getShort(int rowId) { if (dictionary == null) { return Platform.getShort(null, data + 2 * rowId); } else { return (short) dictionary.decodeToInt(dictionaryIds.getDictId(rowId)); } }
@Override public int getInt(int rowId) { if (dictionary == null) { return Platform.getInt(null, data + 4 * rowId); } else { return dictionary.decodeToInt(dictionaryIds.getDictId(rowId)); } }