Examples of array()


Examples of ariba.ui.aribaweb.util.AWArrayManager.array()

            if (otherObject instanceof AWElementIdGenerator) {
                AWElementIdGenerator charArrayElementId = (AWElementIdGenerator)otherObject;
                // note: charArrayElementId._path may have empty capacity on the end,
                // so must use charArrayElementId._pathLength.
                AWArrayManager charArrayManager = charArrayElementId.charArrayManager();
                otherPath = (char[])charArrayManager.array();
                otherPathLength = charArrayManager.size();
            }
            else if (otherObject instanceof AWElementIdPath) {
                AWElementIdPath elementIdPath = (AWElementIdPath)otherObject;
                // here elementIdPath._path has no empty capacity on its end, so can use otherPath.thisPathLength.
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWByteArray.array()

    public String contentString ()
    {
        String contentString = null;
        AWByteArray contentByteArray = contentByteArray();
        byte[] contentBytes = contentByteArray.array();
        try {
            contentString = new String(contentBytes, 0, contentByteArray.inUse, _characterEncoding.name);
        }
        catch (UnsupportedEncodingException unsupportedEncodingException) {
            throw new AWGenericException(unsupportedEncodingException);
View Full Code Here

Examples of ariba.util.core.StringArray.array()

                }
                // aling: I don't not fully understand why for catalog login URL currentFieldIndex
                // could equal to array lenth, for buyer logic url it equals length - 1, which is correct

                if (pathComponentCount > currentFieldIndex) {
                    String[] pathComponentsArray = pathComponents.array();
                    String firstField = pathComponentsArray[currentFieldIndex];
                    // Note: when user types trailing "/" in their URL,
                    // say http://y:8001/Ariba/Buyer/, here we got "", so this if branch
                    // is to solve the trailing "/" problem
                    // Defect 81707 and 79077
View Full Code Here

Examples of cleo.search.util.IntIteratorFromBytes.array()

      byte[] bytes = getBytesFromPool();
     
      try {
        IntIteratorFromBytes elemIdIter = getConnectionIterator(uid, bytes);
        if(elemIdIter != null) {
          bytes = elemIdIter.array();
          int filter = bloomFilter.computeQueryFilter(terms);
          applyFilter(filter, elemIdIter, collector, selector, hitStats, timeoutMillis);
        }
      } catch(Exception e) {
        getLogger().warn(e.getMessage(), e);
View Full Code Here

Examples of cleo.search.util.WeightIteratorFromBytes.array()

      byte[] bytes = getBytesFromPool();
     
      try {
        WeightIteratorFromBytes connStrengthIter = getConnectionStrengthIterator(uid, bytes);
        if(connStrengthIter != null) {
          bytes = connStrengthIter.array();
          int filter = bloomFilter.computeQueryFilter(terms);
          applyFilter(filter, connStrengthIter, collector, selector, hitStats, timeoutMillis);
        }
      } catch(Exception e) {
        getLogger().warn(e.getMessage(), e);
View Full Code Here

Examples of com.alibaba.dubbo.remoting.buffer.ChannelBuffer.array()

                ThriftCodec.getSeqId(), Demo.Iface.class.getName(), "echoString" );
        ThriftCodec.cachedRequest.putIfAbsent( request.getId(), rd );
        codec.encode( channel, bos, response );

        byte[] buf = new byte[bos.writerIndex() - 4];
        System.arraycopy( bos.array(), 4, buf, 0, bos.writerIndex() - 4 );

        ByteArrayInputStream bis = new ByteArrayInputStream( buf );

        if ( bis.markSupported() ) {
            bis.mark( 0 );
View Full Code Here

Examples of com.boundlessgeo.geoserver.json.JSONObj.array()

        JSONObj obj = JSONWrapper.read(result.getResponse().getContentAsString()).toObject();
        assertNotNull(obj.get("message"));
        assertNotNull(obj.get("cause"));
        assertNotNull(obj.get("trace"));

        JSONArr arr = obj.array("errors");
        assertEquals(1, arr.size());

        assertNotNull(arr.object(0).get("problem"));
        assertNotNull(arr.object(0).get("line"));
        assertNotNull(arr.object(0).get("column"));
View Full Code Here

Examples of com.couchbase.client.deps.io.netty.buffer.ByteBuf.array()

            encoded.writeBytes(serialize(content));
        }

        if (encoded.readableBytes() >= compressionThreshold) {
            byte[] compressed = compress(encoded.copy().array());
            if (compressed.length < encoded.array().length) {
                encoded.clear().writeBytes(compressed);
                flags |= COMPRESSED;
            }
        }
View Full Code Here

Examples of com.espertech.esper.client.annotation.EventRepresentation.array()

        // annotation has second priority
        Annotation annotation = AnnotationUtil.findAnnotation(annotations, EventRepresentation.class);
        if (annotation != null) {
            EventRepresentation eventRepresentation = (EventRepresentation) annotation;
            return !eventRepresentation.array();
        }

        // use engine-wide default
        return configs.getEngineDefaults().getEventMeta().getDefaultEventRepresentation() == Configuration.EventRepresentation.MAP;
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.buffer.ChannelBuffer.array()

        final byte[] array;
        final int offset;
        final int length = buf.readableBytes();

        if (buf.hasArray()) {
            array = buf.array();
            offset = buf.arrayOffset() + buf.readerIndex();
        } else {
            array = new byte[length];
            buf.getBytes(buf.readerIndex(), array, 0, length);
            offset = 0;
View Full Code Here
TOP
Copyright © 2015 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.