Package com.netflix.astyanax.model

Examples of com.netflix.astyanax.model.Composite.serialize()


            // ComponentEquality.GREATER_THAN_EQUAL);
            Composite end = makeStringEqualityComposite(new String[] { "fyy" },
                    new ComponentEquality[] { ComponentEquality.GREATER_THAN_EQUAL });

            ColumnList<Composite> results = query.getKey("mykey")
                    .withColumnRange(start.serialize(), end.serialize(), false, 100).execute().getResult();
            LOG.debug("Query matched {} results.", results.size());
            for (Composite columnKey : results.getColumnNames()) {
                LOG.debug("Component(0): {}", columnKey.getComponent(0).getValue(StringSerializer.get()));
                LOG.debug("Component(1): {}", columnKey.getComponent(1).getValue(StringSerializer.get()));
                LOG.debug("Value: {}", results.getValue(columnKey, StringSerializer.get(), ""));
View Full Code Here


            Composite end = makeStringEqualityComposite(new String[] { "a", "a", "b"}, new ComponentEquality[] {
                    ComponentEquality.EQUAL,ComponentEquality.EQUAL, ComponentEquality.EQUAL });

            ColumnFamilyQuery<String, Composite> query = ks.prepareQuery(cf);
            ColumnList<Composite> results = query.getKey(rowkey)
                    .withColumnRange(start.serialize(), end.serialize(), false, 100).execute().getResult();
            LOG.debug("Query matched {} results.", results.size());
            for (Composite columnKey : results.getColumnNames()) {
//                LOG.debug("Component(0): {}", columnKey.getComponent(0).getValue(StringSerializer.get()));
//                LOG.debug("Component(1): {}", columnKey.getComponent(1).getValue(StringSerializer.get()));
//                LOG.debug("Component(2): {}", columnKey.getComponent(2).getValue(StringSerializer.get()));
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.