예제 #1
0
  /**
   * Returns string representation of this class instance.
   *
   * @return string representation of this class instance.
   */
  public String toString() {
    String[] items =
        new String[] {
          m_hostname,
          Boolean.toString(m_mmode),
          m_mstart == null ? "" : Long.toString(m_mstart.getTime()),
          m_mstop == null ? "" : Long.toString(m_mstop.getTime())
        };

    return StringSet.join(items, ",");
  }
예제 #2
0
 public void parseChunkHint(
     String chunkHint, MutableInt chunkPartition, MutableLong chunkSeekChar) {
   List<String> strings = new ArrayList<String>();
   StringSet.split(strings, chunkHint, "_");
   if (StringUtils.isEmptyOrNull(chunkHint)) {
     chunkPartition.setValue(-1);
     chunkSeekChar.setValue(0);
   } else {
     chunkPartition.setValue(Integer.parseInt(strings.get(0)));
     chunkSeekChar.setValue(Integer.parseInt(strings.get(1)));
   }
 }