Package com.netflix.astyanax

Examples of com.netflix.astyanax.MutationBatch.execute()


        removeIndex((RemoveIndex)action, ormSession, m);
      }
    }
   
    long time = System.currentTimeMillis();
    m.execute();
   
    if(log.isTraceEnabled()) {
      long total = System.currentTimeMillis()-time;
      log.trace("astyanx save took="+total+" ms");
    }
View Full Code Here


        removeIndex((RemoveIndex)action, ormSession, m);
      }
    }
   
    long time = System.currentTimeMillis();
    m.execute();
   
    if(log.isTraceEnabled()) {
      long total = System.currentTimeMillis()-time;
      log.trace("astyanx save took="+total+" ms");
    }
View Full Code Here

                    } else {
                        throw new IllegalArgumentException("Unsupported object instance type: " + o.getClass().getSimpleName());
                    }
                }
            }
            m.execute();
            return null;
        } catch (ConnectionException e) {
            throw e;
        }
    }
View Full Code Here

        removeColumn((RemoveColumn) action, ormSession, m);
      }
    }
   
    long time = System.currentTimeMillis();
    m.execute();
   
    if(log.isTraceEnabled()) {
      long total = System.currentTimeMillis()-time;
      log.trace("astyanx save took="+total+" ms");
    }
View Full Code Here

        removeColumn((RemoveColumn) action, ormSession, m);
      }
    }
   
    long time = System.currentTimeMillis();
    m.execute();
   
    if(log.isTraceEnabled()) {
      long total = System.currentTimeMillis()-time;
      log.trace("astyanx save took="+total+" ms");
    }
View Full Code Here

        removeIndex((RemoveIndex)action, ormSession, m);
      }
    }
   
    long time = System.currentTimeMillis();
    m.execute();
   
    if(log.isTraceEnabled()) {
      long total = System.currentTimeMillis()-time;
      log.trace("astyanx save took="+total+" ms");
    }
View Full Code Here

      while(it.hasNext()) {
        WideRowValue<Ky, Col, Val> value = it.next();
        putColumn(clm, value);
      }
    }
    m.execute();
  }

  protected void putColumn(ColumnListMutation<Col> clm,  WideRowValue<Ky, Col, Val> value) {
    clm.putColumn(value.getColumn(), value.getValue(), getValueSerializer(), null);
  }
View Full Code Here

    for(Ky kee: values.keySet()) {
      WideRowValue<Ky, Col, Val> value = values.get(kee);
      ColumnListMutation<Col> clm = m.withRow(getColumnFamily(), kee);
      putColumn(clm, value);
    }
    m.execute();
  }
 
 
   
  protected void createColumnFamily() {
View Full Code Here

      MutationBatch m =
          getKeyspace(keyspace).
          prepareMutationBatch();
      m.withRow((ColumnFamily)getColumnFamily(columnFamily), key).
        putColumn(getComposite(column), value, getSerializer(valueSerializer), ttl);
      m.execute();
    } catch (ConnectionException ex) {
      throw new PersistenceException(ex);
    } finally {
      long ts2 = System.currentTimeMillis();
      CMBControllerServlet.valueAccumulator.addToCounter(AccumulatorName.CassandraTime, (ts2 - ts1));
View Full Code Here

      ColumnListMutation<N> clm = m.withRow((ColumnFamily<K, N>)getColumnFamily(columnFamily), rowKey);
      for (N columnName : columnValues.keySet()) {
        clm.putColumn((N)getComposite(columnName), columnValues.get(columnName), getSerializer(valueSerializer), ttl);
        CMBControllerServlet.valueAccumulator.addToCounter(AccumulatorName.CassandraWrite, 1L);
      }
      OperationResult<Void> result = m.execute();
    } catch (ConnectionException ex) {
      throw new PersistenceException(ex);
    } finally {
      long ts2 = System.currentTimeMillis();
      CMBControllerServlet.valueAccumulator.addToCounter(AccumulatorName.CassandraTime, (ts2 - ts1));
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.