Package io.airlift.slice

Examples of io.airlift.slice.InputStreamSliceInput


                log.debug("Expected %s response from server but got %s: uri=%s, response=%s", PRESTO_PAGES_TYPE, contentType, request.getUri(), response);
                return PagesResponse.createEmptyPagesResponse(token, nextToken);
            }

            try {
                InputStreamSliceInput sliceInput = new InputStreamSliceInput(response.getInputStream());
                return PagesResponse.createPagesResponse(token, nextToken, ImmutableList.copyOf(PagesSerde.readPages(sliceInput)));
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
            }
View Full Code Here


            }

            long token = getToken(response);
            long nextToken = getNextToken(response);

            try (SliceInput input = new InputStreamSliceInput(response.getInputStream())) {
                List<Page> pages = ImmutableList.copyOf(readPages(blockEncodingSerde, input));
                return createPagesResponse(token, nextToken, pages);
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
View Full Code Here

                log.debug("Expected %s response from server but got %s: uri=%s, response=%s", PRESTO_PAGES_TYPE, contentType, request.getUri(), response);
                return PagesResponse.createEmptyPagesResponse(startingSequenceId);
            }

            try {
                InputStreamSliceInput sliceInput = new InputStreamSliceInput(response.getInputStream());
                return PagesResponse.createPagesResponse(startingSequenceId, ImmutableList.copyOf(PagesSerde.readPages(sliceInput)));
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
            }
View Full Code Here

            }

            long token = getToken(response);
            long nextToken = getNextToken(response);

            try (SliceInput input = new InputStreamSliceInput(response.getInputStream())) {
                List<Page> pages = ImmutableList.copyOf(readPages(blockEncodingSerde, input));
                return createPagesResponse(token, nextToken, pages);
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
View Full Code Here

                log.debug("Expected %s response from server but got %s: uri=%s, response=%s", PRESTO_PAGES_TYPE, contentType, request.getUri(), response);
                return PagesResponse.createEmptyPagesResponse(token, nextToken);
            }

            try {
                InputStreamSliceInput sliceInput = new InputStreamSliceInput(response.getInputStream());
                return PagesResponse.createPagesResponse(token, nextToken, ImmutableList.copyOf(PagesSerde.readPages(sliceInput)));
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
            }
View Full Code Here

            }

            long token = getToken(response);
            long nextToken = getNextToken(response);

            try (SliceInput input = new InputStreamSliceInput(response.getInputStream())) {
                List<Page> pages = ImmutableList.copyOf(readPages(blockEncodingSerde, input));
                return createPagesResponse(token, nextToken, pages);
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
View Full Code Here

                log.debug("Expected %s response from server but got %s: uri=%s, response=%s", PRESTO_PAGES_TYPE, contentType, request.getUri(), response);
                return PagesResponse.createEmptyPagesResponse(token, nextToken);
            }

            try {
                InputStreamSliceInput sliceInput = new InputStreamSliceInput(response.getInputStream());
                return PagesResponse.createPagesResponse(token, nextToken, ImmutableList.copyOf(PagesSerde.readPages(sliceInput)));
            }
            catch (IOException e) {
                throw Throwables.propagate(e);
            }
View Full Code Here

            MediaType mediaType,
            MultivaluedMap<String, String> httpHeaders,
            InputStream input)
            throws IOException, WebApplicationException
    {
        return ImmutableList.copyOf(PagesSerde.readPages(new InputStreamSliceInput(input)));
    }
View Full Code Here

TOP

Related Classes of io.airlift.slice.InputStreamSliceInput

Copyright © 2018 www.massapicom. 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.