Package com.basho.riak.client.http

Examples of com.basho.riak.client.http.IntIndex


                String value = p.getValue().toStringUtf8();

                if (name.endsWith(BinIndex.SUFFIX)) {
                    indexes.add(new BinIndex(name, value));
                } else if (name.endsWith(IntIndex.SUFFIX)) {
                    indexes.add(new IntIndex(name, Integer.parseInt(value)));
                } else {
                    throw new RuntimeException("unkown index type " + name);
                }
            }
View Full Code Here


     *            the value to add to the index
     * @return this
     */
    public RiakObject addIndex(String name, int value) {
        synchronized (indexLock) {
            indexes.add(new IntIndex(name, value));
        }
        return this;
    }
View Full Code Here

                        while (st.hasMoreTokens()) {
                            indexes.add(new BinIndex(name, st.nextToken().trim()));
                        }
                    } else if (name.endsWith(IntIndex.SUFFIX)) {
                        while (st.hasMoreElements()) {
                            indexes.add(new IntIndex(name, Integer.parseInt(st.nextToken().trim())));
                        }
                    }
                }
            }
        }
View Full Code Here

                String value = p.getValue().toStringUtf8();

                if (name.endsWith(BinIndex.SUFFIX)) {
                    indexes.add(new BinIndex(name, value));
                } else if (name.endsWith(IntIndex.SUFFIX)) {
                    indexes.add(new IntIndex(name, Integer.parseInt(value)));
                } else {
                    throw new RuntimeException("unkown index type " + name);
                }
            }
View Full Code Here

     *            the value to add to the index
     * @return this
     */
    public RiakObject addIndex(String name, int value) {
        synchronized (indexLock) {
            indexes.add(new IntIndex(name, value));
        }
        return this;
    }
View Full Code Here

                        while (st.hasMoreTokens()) {
                            indexes.add(new BinIndex(name, st.nextToken().trim()));
                        }
                    } else if (name.endsWith(IntIndex.SUFFIX)) {
                        while (st.hasMoreElements()) {
                            indexes.add(new IntIndex(name, Integer.parseInt(st.nextToken().trim())));
                        }
                    }
                }
            }
        }
View Full Code Here

                String value = p.getValue().toStringUtf8();

                if (name.endsWith(BinIndex.SUFFIX)) {
                    indexes.add(new BinIndex(name, value));
                } else if (name.endsWith(IntIndex.SUFFIX)) {
                    indexes.add(new IntIndex(name, Long.parseLong(value)));
                } else {
                    throw new RuntimeException("unkown index type " + name);
                }
            }
View Full Code Here

     *            the value to add to the index
     * @return this
     */
    public RiakObject addIndex(String name, long value) {
        synchronized (indexLock) {
            indexes.add(new IntIndex(name, value));
        }
        return this;
    }
View Full Code Here

                        while (st.hasMoreTokens()) {
                            indexes.add(new BinIndex(name, st.nextToken().trim()));
                        }
                    } else if (name.endsWith(IntIndex.SUFFIX)) {
                        while (st.hasMoreElements()) {
                            indexes.add(new IntIndex(name, Long.parseLong(st.nextToken().trim())));
                        }
                    }
                }
            }
        }
View Full Code Here

                        while (st.hasMoreTokens()) {
                            indexes.add(new BinIndex(name, st.nextToken().trim()));
                        }
                    } else if (name.endsWith(IntIndex.SUFFIX)) {
                        while (st.hasMoreElements()) {
                            indexes.add(new IntIndex(name, Integer.parseInt(st.nextToken().trim())));
                        }
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.http.IntIndex

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.