fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. System.out.println("{" +
  13. " \"partitionMap\": {" +
  14. " \"{\\\"keys\\\":[\\\"AAAAAAAAAAAAAAAAAAAAAA==\\\",\\\"AA==\\\",\\\"AAAAAAAAAAAAAAAAAAAAAA==\\\"]}\": {" +
  15. " \"tableId\": \"" + "TABLE_ID" + "\"," +
  16. " \"partitionId\": \"partition1\"," +
  17. " \"lowerBound\": {" +
  18. " \"keys\": [" +
  19. " \"AAAAAAAAAAAAAAAAAAAAAA==\"," +
  20. " \"AA==\"," +
  21. " \"AAAAAAAAAAAAAAAAAAAAAA==\"" +
  22. " ]" +
  23. " }," +
  24. " \"upperBound\": {" +
  25. " \"keys\": []" +
  26. " }," +
  27. " \"metadataVersion\": 38," +
  28. " \"members\": [" +
  29. " {" +
  30. " \"type\": \"NodeEndpoint\"," +
  31. " \"id\": \"NodeEndpoint1\"," +
  32. " \"host\": \"10.58.107.119\"," +
  33. " \"port\": 45678" +
  34. " }," +
  35. " {" +
  36. " \"type\": \"NodeEndpoint\"," +
  37. " \"id\": \"NodeEndpoint2\"," +
  38. " \"host\": \"10.150.152.230\"," +
  39. " \"port\": 45678" +
  40. " }," +
  41. " {" +
  42. " \"type\": \"NodeEndpoint\"," +
  43. " \"id\": \"NodeEndpoint3\"," +
  44. " \"host\": \"10.166.153.250\"," +
  45. " \"port\": 45678" +
  46. " }" +
  47. " ]," +
  48. " \"status\": null" +
  49. " }," +
  50. " \"{\\\"keys\\\":[\\\"BBBBBBBBBBBBBBBBBBBBBB==\\\",\\\"BB==\\\",\\\"BBBBBBBBBBBBBBBBBBBBBB==\\\"]}\": {" +
  51. " \"tableId\": \"" + "TABLE_ID" + "\"," +
  52. " \"partitionId\": \"partition2\"," +
  53. " \"lowerBound\": {" +
  54. " \"keys\": [" +
  55. " \"BBBBBBBBBBBBBBBBBBBBBB==\"," +
  56. " \"BB==\"," +
  57. " \"BBBBBBBBBBBBBBBBBBBBBB==\"" +
  58. " ]" +
  59. " }," +
  60. " \"upperBound\": {" +
  61. " \"keys\": []" +
  62. " }," +
  63. " \"metadataVersion\": 39," +
  64. " \"members\": [" +
  65. " {" +
  66. " \"type\": \"NodeEndpoint\"," +
  67. " \"id\": \"NodeEndpoint1\"," +
  68. " \"host\": \"10.58.107.119\"," +
  69. " \"port\": 45678" +
  70. " }," +
  71. " {" +
  72. " \"type\": \"NodeEndpoint\"," +
  73. " \"id\": \"NodeEndpoint2\"," +
  74. " \"host\": \"10.150.152.230\"," +
  75. " \"port\": 45678" +
  76. " }," +
  77. " {" +
  78. " \"type\": \"NodeEndpoint\"," +
  79. " \"id\": \"NodeEndpoint3\"," +
  80. " \"host\": \"10.166.153.250\"," +
  81. " \"port\": 45678" +
  82. " }" +
  83. " ]," +
  84. " \"status\": null" +
  85. " }" + //keys
  86. " }" +
  87. " }," +
  88. " \"minExpireTimeMillis\": 1538586018532," +
  89. " \"maxExpireTimeMillis\": 1540734764078" +
  90. "}");
  91. }
  92. }
Success #stdin #stdout 0.07s 32472KB
stdin
Standard input is empty
stdout
{    "partitionMap": {      "{\"keys\":[\"AAAAAAAAAAAAAAAAAAAAAA==\",\"AA==\",\"AAAAAAAAAAAAAAAAAAAAAA==\"]}": {        "tableId": "TABLE_ID",        "partitionId": "partition1",        "lowerBound": {          "keys": [            "AAAAAAAAAAAAAAAAAAAAAA==",            "AA==",            "AAAAAAAAAAAAAAAAAAAAAA=="          ]        },        "upperBound": {          "keys": []        },        "metadataVersion": 38,        "members": [          {            "type": "NodeEndpoint",            "id": "NodeEndpoint1",            "host": "10.58.107.119",            "port": 45678          },          {            "type": "NodeEndpoint",            "id": "NodeEndpoint2",            "host": "10.150.152.230",            "port": 45678          },          {            "type": "NodeEndpoint",            "id": "NodeEndpoint3",            "host": "10.166.153.250",            "port": 45678          }        ],        "status": null      },      "{\"keys\":[\"BBBBBBBBBBBBBBBBBBBBBB==\",\"BB==\",\"BBBBBBBBBBBBBBBBBBBBBB==\"]}": {        "tableId": "TABLE_ID",        "partitionId": "partition2",        "lowerBound": {          "keys": [            "BBBBBBBBBBBBBBBBBBBBBB==",            "BB==",            "BBBBBBBBBBBBBBBBBBBBBB=="          ]        },        "upperBound": {          "keys": []        },        "metadataVersion": 39,        "members": [          {            "type": "NodeEndpoint",            "id": "NodeEndpoint1",            "host": "10.58.107.119",            "port": 45678          },          {            "type": "NodeEndpoint",            "id": "NodeEndpoint2",            "host": "10.150.152.230",            "port": 45678          },          {            "type": "NodeEndpoint",            "id": "NodeEndpoint3",            "host": "10.166.153.250",            "port": 45678          }        ],        "status": null      }    }  },  "minExpireTimeMillis": 1538586018532,  "maxExpireTimeMillis": 1540734764078}