Package com.salesforce.phoenix.schema.tuple

Examples of com.salesforce.phoenix.schema.tuple.Tuple


        this.sequenceManager = sequenceManager;
    }
   
    @Override
    public Tuple next() throws SQLException {
        Tuple next = super.next();
        if (next == null) {
            return null;
        }
        sequenceManager.incrementSequenceValues();
        return next;
View Full Code Here


                return 0;
            return totalResultSize;
        }

        private List<KeyValue> toKeyValues(ResultEntry entry) {
            Tuple result = entry.getResult();
            int size = result.size();
            List<KeyValue> kvs = new ArrayList<KeyValue>(size);
            for (int i = 0; i < size; i++) {
                kvs.add(result.getValue(i));
            }
            return kvs;
        }
View Full Code Here

        super(resultIterator, aggregators);
    }
   
    @Override
    public Tuple next() throws SQLException {
        Tuple result = super.next();
        // Ensure ungrouped aggregregation always returns a row, even if the underlying iterator doesn't.
        if (result == null && !hasRows) {
            // Generate value using unused ClientAggregators
            byte[] value = aggregators.toBytes(aggregators.getAggregators());
            result = new SingleKeyValueTuple(
View Full Code Here

    }
   
    @Override
    public Tuple next() throws SQLException {
        init();
        Tuple next = this.next;
        this.next = advance();
        return next;
    }
View Full Code Here

        }
    }

    @Override
    public Tuple next() throws SQLException {
        Tuple next;
        do {
            next = delegate.next();
        } while (next != null && expression.evaluate(next, ptr) && Boolean.FALSE.equals(expression.getDataType().toObject(ptr)));
        return next;
    }
View Full Code Here

        }
    }

    @Override
    protected Tuple advance() throws SQLException {
        Tuple next;
        do {
            next = delegate.next();
        } while (next != null && expression.evaluate(next, ptr) && Boolean.FALSE.equals(expression.getDataType().toObject(ptr)));
        return next;
    }
View Full Code Here

            }
            int resultSize = ByteUtil.vintFromBytes(bytes, offset);
            offset += WritableUtils.getVIntSize(resultSize);
            ImmutableBytesWritable value = new ImmutableBytesWritable(bytes,offset,resultSize);
            offset += resultSize;
            Tuple result = new ResultTuple(new Result(value));
            return next = result;
        }
View Full Code Here

            return next;
        }

        @Override
        public Tuple next() throws SQLException {
            Tuple current = next;
            advance();
            return current;
        }
View Full Code Here

   
        @Override
        public synchronized Tuple next() throws SQLException {
            try {
                init();
                Tuple current = next;
                advance();
                return current;
            } catch (IOException e) {
                throw ServerUtil.parseServerException(e);
            }
View Full Code Here

        return (AggregatingResultIterator)super.getDelegate();
    }
   
    @Override
    public Tuple next() throws SQLException {
        Tuple tuple = super.next();
        if (tuple != null) {
            aggregate(tuple);
        }
        return tuple;
    }
View Full Code Here

TOP

Related Classes of com.salesforce.phoenix.schema.tuple.Tuple

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.