private String nullString(TblColRef column) { byte[] id = new byte[columnIO.getColumnLength(column)]; for (int i = 0; i < id.length; i++) { id[i] = Dictionary.NULL; } return Dictionary.dictIdToString(id, 0, id.length); }
public static String idToStr(int id) { byte[] bytes = new byte[] { (byte) id }; return Dictionary.dictIdToString(bytes, 0, bytes.length); }
private String translate(TblColRef column, String v, int roundingFlag) { byte[] value = Bytes.toBytes(v); byte[] id = new byte[columnIO.getColumnLength(column)]; columnIO.writeColumn(column, value, value.length, roundingFlag, Dictionary.NULL, id, 0); return Dictionary.dictIdToString(id, 0, id.length); } }
private String getValueAt(int i) { int n = type.getColumnCount(); if (i < 0 || i >= n) return null; if (values[i] == null) { values[i] = Dictionary.dictIdToString(rowkey.get(), rowkey.getOffset() + type.columnOffsets[i], type.columnSizes[i]); } return values[i]; }