# HG changeset patch # User Martin van Dinther <martin.van.dinther@monetdbsolutions.com> # Date 1643312350 -3600 # Node ID 0f5d924751e7fdb7a955c6f0c4494616bb089d39 # Parent 899f0c1202560d836a83099699e86fa446bad8e3 Add comments for LineType '=' and correct the return type information for javadoc. 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;