Examples of ByteArrayList


Examples of net.sf.xbus.base.bytearraylist.ByteArrayList

      fileLength = new Long(fileLengthLong).intValue();
    }

    if (fileLength < 1)
    {
      return new ByteArrayList();
    }

    /**
     * 2. Read the complete file
     */
 
View Full Code Here

Examples of net.sf.xbus.base.bytearraylist.ByteArrayList

    else
    {
      try
      // for casting to XException
      {
        ByteArrayList bal = (ByteArrayList) obj;
        if (bal.length() == 0)
          setRequestDocument(null, source);
        else
          setRequestDocument(parseRecordsFromByteArrayList(bal,
              source), source);
      } // try
View Full Code Here

Examples of net.sf.xbus.base.bytearraylist.ByteArrayList

    else
    {
      try
      // for casting to XException
      {
        ByteArrayList bal = (ByteArrayList) obj;
        if (bal.length() == 0)
          setRequestDocument(null, destination);
        else
          setResponseDocument(parseRecordsFromByteArrayList(bal,
              destination), destination);
      } // try
View Full Code Here

Examples of net.sf.xbus.base.bytearraylist.ByteArrayList

   *         <code>null</code> for an empty <code>doc</code>
   */
  private ByteArrayList serializeRecordsToByteArrayList(Document doc,
      XBUSSystem system) throws XException
  {
    ByteArrayList records = null;
    try
    {
      records = (ByteArrayList) serializeRecords(doc, system,
          Constants.IFCONTENTCLASS_BYTEARRAYLIST);
    } // try
View Full Code Here

Examples of net.sf.xbus.base.bytearraylist.ByteArrayList

    {
      result = "";
    }
    else if (interfaceContentClass == Constants.IFCONTENTCLASS_BYTEARRAYLIST)
    {
      result = new ByteArrayList();
    }
    else
    {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_PROTOCOL,
View Full Code Here

Examples of net.sf.xbus.base.bytearraylist.ByteArrayList

    } // if (tag == null || !tag.equals("Records"))
    Object result = null;
    if (interfaceContentClass == Constants.IFCONTENTCLASS_STRING)
      result = "";
    else
      result = new ByteArrayList();
    Node recordGroup = recordsNode.getFirstChild();
    while (recordGroup != null)
    { // Loop over the record groups or just a dummy loop
      // Two possibilities: directly first record or first record group
      Node record = recordGroup;
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.idx.support.arrays.ByteArrayList

        break;
      case DOUBLE:
        keyStore = new DoubleArrayList();
        break;
      case BYTE:
        keyStore = new ByteArrayList();
        break;
      case CHAR:
        keyStore = new CharArrayList();
        break;
      case SHORT:
View Full Code Here

Examples of org.apache.mahout.math.list.ByteArrayList

   * #forEachKey(ByteProcedure)}. <p> This method can be used to iterate over the keys of the receiver.
   *
   * @return the keys.
   */
  public ByteArrayList keys() {
    ByteArrayList list = new ByteArrayList(size());
    keys(list);
    return list;
  }
View Full Code Here

Examples of org.apache.mahout.math.list.ByteArrayList

  /**
   * Returns a string representation of the receiver, containing the String representation of each key-value pair,
   * sorted ascending by key.
   */
  public String toString() {
    ByteArrayList theKeys = keys();
    //theKeys.sort();

    StringBuilder buf = new StringBuilder();
    buf.append('[');
    int maxIndex = theKeys.size() - 1;
    for (int i = 0; i <= maxIndex; i++) {
      byte key = theKeys.get(i);
      buf.append(String.valueOf(key));
      if (i < maxIndex) {
        buf.append(", ");
      }
    }
View Full Code Here

Examples of org.apache.mahout.math.list.ByteArrayList

   * #forEachKey(ByteProcedure)}. <p> This method can be used to iterate over the keys of the receiver.
   *
   * @return the keys.
   */
  public ByteArrayList keys() {
    ByteArrayList list = new ByteArrayList(size());
    keys(list);
    return list;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.