Cpaulyz commented on code in PR #14223:
URL: https://github.com/apache/iotdb/pull/14223#discussion_r1867323233
##########
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/access/Record.java:
##########
@@ -78,31 +75,48 @@ public interface Record {
*
* @param columnIndex index of the specified column
* @return the boolean value at the specified column in this row
- * @throws IOException if an I/O error occurs
*/
- boolean getBoolean(int columnIndex) throws IOException;
+ boolean getBoolean(int columnIndex);
/**
* Returns the Binary value at the specified column in this row.
*
- * <p>Users need to ensure that the data type of the specified column is
{@code TSDataType.TEXT}.
+ * <p>Users need to ensure that the data type of the specified column is
{@code TSDataType.TEXT},
+ * {@code TSDataType.STRING} or {@code TSDataType.BLOB}.
*
* @param columnIndex index of the specified column
* @return the Binary value at the specified column in this row
- * @throws IOException if an I/O error occurs
*/
- Binary getBinary(int columnIndex) throws IOException;
+ Binary getBinary(int columnIndex);
/**
* Returns the String value at the specified column in this row.
*
- * <p>Users need to ensure that the data type of the specified column is
{@code TSDataType.TEXT}.
+ * <p>Users need to ensure that the data type of the specified column is
{@code TSDataType.TEXT}
+ * or {@code TSDataType.STRING}.
*
* @param columnIndex index of the specified column
* @return the String value at the specified column in this row
- * @throws IOException if an I/O error occurs
*/
- String getString(int columnIndex) throws IOException;
+ String getString(int columnIndex);
+
+ /**
+ * Returns the String value at the specified column in this row.
+ *
+ * <p>Users need to ensure that the data type of the specified column is
{@code TSDataType.DATE}.
+ *
+ * @param columnIndex index of the specified column
+ * @return the String value at the specified column in this row
+ */
+ LocalDate getLocalDate(int columnIndex);
+
+ /**
+ * Returns the object value at the specified column in this row.
+ *
+ * @param columnIndex index of the specified column
+ * @return the object value at the specified column in this row
+ */
+ Object getObject(int columnIndex);
Review Comment:
Removed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]