Package me.prettyprint.hector.api

Examples of me.prettyprint.hector.api.Keyspace


    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      RangeSlicesQuery<UUID, String, byte[]> query = HFactory.createRangeSlicesQuery(keyspace,
          UUIDSerializer.get(), StringSerializer.get(), BytesArraySerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName");
      query.setRange(null, null, false, Integer.MAX_VALUE);
      QueryResult<OrderedRows<UUID, String, byte[]>> result = query.execute();
View Full Code Here


    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      RangeSlicesQuery<Long, Integer, byte[]> query = HFactory.createRangeSlicesQuery(keyspace,
          LongSerializer.get(), IntegerSerializer.get(), BytesArraySerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName2");
      query.setRange(null, null, false, Integer.MAX_VALUE);
      QueryResult<OrderedRows<Long, Integer, byte[]>> result = query.execute();
View Full Code Here

    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      RangeSlicesQuery<UUID, UUID, byte[]> query = HFactory.createRangeSlicesQuery(keyspace,
          UUIDSerializer.get(), UUIDSerializer.get(), BytesArraySerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName3");
      query.setRange(null, null, false, Integer.MAX_VALUE);
      QueryResult<OrderedRows<UUID, UUID, byte[]>> result = query.execute();
View Full Code Here

    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      RangeSlicesQuery<byte[], byte[], Long> query = HFactory.createRangeSlicesQuery(keyspace,
          BytesArraySerializer.get(), BytesArraySerializer.get(), LongSerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName4");
      query.setRange(null, null, false, Integer.MAX_VALUE);
      QueryResult<OrderedRows<byte[], byte[], Long>> result = query.execute();
View Full Code Here

    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      RangeSlicesQuery<byte[], byte[], Long> query = HFactory.createRangeSlicesQuery(keyspace,
          BytesArraySerializer.get(), BytesArraySerializer.get(), LongSerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName5");
      query.setRange(null, null, false, Integer.MAX_VALUE);
      QueryResult<OrderedRows<byte[], byte[], Long>> result = query.execute();
View Full Code Here

    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      SliceCounterQuery<Long, String> query = HFactory.createCounterSliceQuery(keyspace, LongSerializer.get(),
          StringSerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName6");
      query.setKey(10L);
      query.setRange(null, null, false, 100);
View Full Code Here

    try {
      dataLoader.load(MockDataSetHelper.getMockDataSetWithDefinedValuesSimple());

      /* verify */
      Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
      Keyspace keyspace = HFactory.createKeyspace("otherKeyspaceName", cluster);
      SuperSliceCounterQuery<Long, String, String> query = HFactory.createSuperSliceCounterQuery(keyspace,
          LongSerializer.get(), StringSerializer.get(), StringSerializer.get());
      query.setColumnFamily("beautifulColumnFamilyName7").setKey(10L);
      query.setRange(null, null, false, 100);
      QueryResult<CounterSuperSlice<String, String>> result = query.execute();
View Full Code Here

        try {
            dataLoader.load(MockDataSetHelper.getMockDataSetWithReversedComparatorOnSimpleType());

      /* verify */
            Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
            Keyspace keyspace = HFactory.createKeyspace("reversedKeyspace", cluster);
            RangeSlicesQuery<String, String, String> query = HFactory.createRangeSlicesQuery(keyspace, StringSerializer.get(), StringSerializer.get(),
                    StringSerializer.get());
            query.setColumnFamily("columnFamilyWithReversedComparatorOnSimpleType");
            query.setRange(null, null, false, Integer.MAX_VALUE);
            QueryResult<OrderedRows<String, String, String>> result = query.execute();
View Full Code Here

        try {
            dataLoader.load(MockDataSetHelper.getMockDataSetWithReversedComparatorOnCompositeTypes());

      /* verify */
            Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
            Keyspace keyspace = HFactory.createKeyspace("reversedKeyspace", cluster);
            RangeSlicesQuery<String, Composite, String> query = HFactory.createRangeSlicesQuery(keyspace, StringSerializer.get(), CompositeSerializer.get(),
                    StringSerializer.get());
            query.setColumnFamily("columnFamilyWithReversedCompOnCompositeTypes");
            query.setRange(null, null, false, Integer.MAX_VALUE);
            QueryResult<OrderedRows<String, Composite, String>> result = query.execute();
View Full Code Here

        try {
            dataLoader.load(MockDataSetHelper.getMockDataSetWithBinaryData());

      /* verify */
            Cluster cluster = HFactory.getOrCreateCluster(clusterName, host);
            Keyspace keyspace = HFactory.createKeyspace("binaryKeyspace", cluster);
            RangeSlicesQuery<String, String, byte[]> query = HFactory.createRangeSlicesQuery(keyspace, StringSerializer.get(), StringSerializer.get(),
                    BytesArraySerializer.get());
            query.setColumnFamily("columnFamilyWithBinaryData");
            query.setRange(null, null, false, Integer.MAX_VALUE);
            QueryResult<OrderedRows<String, String, byte[]>> result = query.execute();
View Full Code Here

TOP

Related Classes of me.prettyprint.hector.api.Keyspace

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.