SilverNarcissus opened a new pull request #279: Spark connector xuekaifeng URL: https://github.com/apache/incubator-iotdb/pull/279 /** * transfer old form to new form * * @param df dataFrame need to be tansfer * +---------+-------------+-------------+-------------+-------------+-------------+-------------+ * |timestamp|root.ln.d1.m1|root.ln.d1.m2|root.ln.d1.m3|root.ln.d2.m1|root.ln.d2.m2|root.ln.d2.m3| * +---------+-------------+-------------+-------------+-------------+-------------+-------------+ * | 1| 11| 12| null| 21| 22| 23| * +---------+-------------+-------------+-------------+-------------+-------------+-------------+ * @return tansferred data frame * +---------+-----------+---+---+----+ * |timestamp|device_name| m1| m2| m3| * +---------+-----------+---+---+----+ * | 1| root.ln.d2| 21| 22| 23| * | 1| root.ln.d1| 11| 12|null| * +---------+-----------+---+---+----+ */ and reversely /** * transfer new form to old form * * @param df dataFrame need to be tansfer * +---------+-----------+---+---+----+ * |timestamp|device_name| m1| m2| m3| * +---------+-----------+---+---+----+ * | 1| root.ln.d2| 21| 22| 23| * | 1| root.ln.d1| 11| 12|null| * +---------+-----------+---+---+----+ * @return tansferred data frame * +---------+-------------+-------------+-------------+-------------+-------------+-------------+ * |timestamp|root.ln.d1.m1|root.ln.d1.m2|root.ln.d1.m3|root.ln.d2.m1|root.ln.d2.m2|root.ln.d2.m3| * +---------+-------------+-------------+-------------+-------------+-------------+-------------+ * | 1| 11| 12| null| 21| 22| 23| * +---------+-------------+-------------+-------------+-------------+-------------+-------------+ * */
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
