phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 7shurik <...@git.apache.org>
Subject [GitHub] phoenix pull request: Phoenix 1759
Date Thu, 16 Apr 2015 17:45:58 GMT
Github user 7shurik commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/68#discussion_r28532568
  
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/types/PhoenixArray.java
---
    @@ -561,6 +666,23 @@ public int estimateByteSize(int pos) {
     		}
     		
     		@Override
    +		public String toString() {
    +			StringBuilder sb = new StringBuilder(TO_STRING_BEGIN);
    +			boolean isFirst = true;
    +			final Format defaultFormat = null;
    +			for (Byte o : byteArr) {
    +				if (isFirst) {
    +					isFirst = false;
    +				} else {
    +					sb.append(TO_STRING_SEPARATOR);
    +				}
    +				sb.append(this.baseType.toStringLiteral(o, defaultFormat));
    --- End diff --
    
    Thank you, @JamesRTaylor! That's the silver bullet I was looking for. I hate duplicating
the code like it did.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message