Creates a value from the input stream. Called from Stores#read(DataInput, QueryContext). @param in data input @param type type @param qc query context @return value @throws IOException I/O exception
(final DataInput in, final Type type, final QueryContext qc)
| 47 | * @throws IOException I/O exception |
| 48 | */ |
| 49 | public static Value read(final DataInput in, final Type type, final QueryContext qc) |
| 50 | throws IOException { |
| 51 | final int size = in.readNum(); |
| 52 | final int[] values = new int[size]; |
| 53 | for(int s = 0; s < size; s++) values[s] = (int) in.readLong(); |
| 54 | return get(values, type); |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public void write(final DataOutput out) throws IOException { |