Examples of skip()


Examples of org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.skip()

        status = TransportStatus.setResponse(status);

        ReleasableBytesStreamOutput bStream = new ReleasableBytesStreamOutput(transport.bigArrays);
        boolean addedReleaseListener = false;
        try {
            bStream.skip(NettyHeader.HEADER_SIZE);
            StreamOutput stream = bStream;
            if (options.compress()) {
                status = TransportStatus.setCompress(status);
                stream = CompressorFactory.defaultCompressor().streamOutput(stream);
            }
View Full Code Here

Examples of org.exist.storage.io.VariableByteArrayInput.skip()

                                    if (!storedOccurencesList.contains(nodeId)) {
                                        for (int n = 0; n < freq; n++) {
                                            newOccurencesList.add(nodeId, is.readInt());
                                        }
                                    } else {
                                        is.skip(freq);
                                    }
                                }
                            }
                        }
                        //append the data from the new list
View Full Code Here

Examples of org.exist.storage.io.VariableByteInput.skip()

                                    } else {
                                        storedNode.addMatch(match);
                                        result.add(storedNode, sizeHint);
                                    }
                                } else
                                    {is.skip(freq);}
                            } else {
                                final Match match = new FTMatch(-1, nodeId, word.toString(), freq);
                                readOccurrences(freq, is, match, word.length());
                                storedNode.addMatch(match);
                                result.add(storedNode, Constants.NO_SIZE_HINT);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.TwoWayRangeIterator.skip()

            public TwoWayRangeIterator execute(Query query) throws RepositoryException
            {
               QueryResult result = query.execute();
               TwoWayRangeIterator iterator = (TwoWayRangeIterator)result.getNodes();
               iterator.skip(skip);
               return iterator;
            }

         };
         checkPosition(tester, skip);
View Full Code Here

Examples of org.fusesource.hawtbuf.DataByteArrayOutputStream.skip()

            }

            // Now we can fill in the batch control record properly.
            Buffer sequence = buffer.toBuffer();
            buffer.reset();
            buffer.skip(Journal.HEADER_SIZE);
            buffer.writeInt(sequence.getLength() - Journal.HEADER_SIZE - Journal.BATCH_SIZE);
            buffer.skip(Journal.BATCH_CONTROL_RECORD_MAGIC.length);
            if (checksum) {
                Checksum adler32 = new Adler32();
                adler32.update(sequence.getData(), sequence.getOffset() + Journal.BATCH_CONTROL_RECORD_SIZE, sequence.getLength() - Journal.BATCH_CONTROL_RECORD_SIZE);
View Full Code Here

Examples of org.geotools.data.complex.DataAccessMappingFeatureIterator.skip()

        instance.nestedSourceExpressions.put(featureTypeName, nestedSourceExpression);

        for (Instance.Skip toSkip : instance.skipped) {
            while (daFeatureIterator.hasNext()
                    && daFeatureIterator.checkForeignIdValues(toSkip.idValues)) {
                daFeatureIterator.skip();
            }
        }

        return daFeatureIterator;
View Full Code Here

Examples of org.htmlparser.lexer.Source.skip()

        reference = part1 + part2 + part3;
        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);
        buffer = new StringBuffer (reference.length ());
        for (int i = 0; i < part1.length (); i++)
            buffer.append ((char)source.read ());
        source.skip (part2.length ());
        while (-1 != (c = source.read ()))
            buffer.append ((char)c);
        assertTrue ("string incorrect", (part1 + part3).equals (buffer.toString ()));
        source.close ();
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.tms.client.TempoClient.skip()

        _log.info("do the optional call.");

        // skip needs to be called on TMP first.
        if (optionalCall.equals("skip"))
            tempoClient.skip(id);
        else if (optionalCall.equals("fail"))
          tempoClient.fail(id, "0", "Error message");
        else if (optionalCall.equals("delete"))
          tempoClient.delete(new String[] { id });
        else if (optionalCall.equals("deleteAll"))
View Full Code Here

Examples of org.jacorb.orb.CDRInputStream.skip()

            int header_padding = MulticastUtil.BOUNDARY - (pos % MulticastUtil.BOUNDARY);
            header_padding = (header_padding == MulticastUtil.BOUNDARY) ? 0 : header_padding;

            // skip header_padding bytes anyway, because if no body is
            // present, nobody will try to read it
            in.skip (header_padding);

            // read the GIOP data
            byte data[] = new byte[header.packet_length];
            if (in.available () < data.length)
            {
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.skip()

            byte[] result_buf = out.getBody();

            // ... and insert it
            _out.setBuffer( result_buf  );
            // important: set the _out buffer's position to the end of the contents!
            _out.skip( result_buf.length );
            return any;
        }
        return result;
    }
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.