Changeset: 0f5d924751e7 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/0f5d924751e7
Modified Files:
src/main/java/org/monetdb/mcl/io/BufferedMCLReader.java
src/main/java/org/monetdb/mcl/io/LineType.java
Branch: default
Log Message:
Add comments for LineType '=' and correct the return type information for
javadoc.
diffs (39 lines):
diff --git a/src/main/java/org/monetdb/mcl/io/BufferedMCLReader.java
b/src/main/java/org/monetdb/mcl/io/BufferedMCLReader.java
--- a/src/main/java/org/monetdb/mcl/io/BufferedMCLReader.java
+++ b/src/main/java/org/monetdb/mcl/io/BufferedMCLReader.java
@@ -108,9 +108,9 @@ public final class BufferedMCLReader ext
/**
* getLineType returns the type of the last line read.
*
- * @return an integer representing the kind of line this is, one of the
- * following constants: UNKNOWN, HEADER, ERROR, PROMPT, MORE,
- * RESULT, SOHEADER, REDIRECT, INFO
+ * @return Linetype representing the kind of line this is, one of the
+ * following enums: UNKNOWN, HEADER, ERROR, RESULT,
+ * PROMPT, MORE, FILETRANSFER, SOHEADER, REDIRECT, INFO
*/
public LineType getLineType() {
return lineType;
diff --git a/src/main/java/org/monetdb/mcl/io/LineType.java
b/src/main/java/org/monetdb/mcl/io/LineType.java
--- a/src/main/java/org/monetdb/mcl/io/LineType.java
+++ b/src/main/java/org/monetdb/mcl/io/LineType.java
@@ -21,7 +21,7 @@ public enum LineType {
/** a line starting with % indicates HEADER */
HEADER(new byte[] { '%' }),
- /** a line starting with [ indicates RESULT */
+ /** a line starting with [ or = indicates RESULT */
RESULT(new byte[] { '[' }),
/** a line which matches the pattern of prompt1 is a PROMPT */
@@ -92,8 +92,8 @@ public enum LineType {
return ERROR;
case '%':
return HEADER;
- case '[':
- case '=':
+ case '[': // tuple result
+ case '=': // single value result or result of
PLAN/EXPLAIN/TRACE queries
return RESULT;
case '&':
return SOHEADER;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list