private static void parseTextColumn(
      int size, DataInputStream stream, Object[] values, int columnIndex) throws IOException {
    Binary[] binaryValues = new Binary[size];
    for (int index = 0; index < size; index++) {
      int binarySize = stream.readInt();
      byte[] binaryValue = new byte[binarySize];
      int actualReadSize = stream.read(binaryValue);
      if (actualReadSize != binarySize) {
        throw new IllegalStateException(
            "Expect to read " + binarySize + " bytes, actually read " + actualReadSize + "bytes.");
      }
      binaryValues[index] = new Binary(binaryValue);
    }
    values[columnIndex] = binaryValues;
  }
Deserialize Tablet Values From Buffer

@param buffer data values
@param columns column number
@param size value count in each column
@throws UnSupportedDataTypeException if TSDataType is unknown, UnSupportedDataTypeException
    will be thrown.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/QueryDataSetUtils.java