Package com.netflix.astyanax

Examples of com.netflix.astyanax.ColumnListMutation.deleteColumn()


  private void removeColumns(Remove action, ColumnFamily cf, MutationBatch m) {
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
   
    for(byte[] name : action.getColumns()) {
      row.deleteColumn(name);
    }
  }

  private void removeColumn(RemoveColumn action, MetaLookup mgr, MutationBatch m) {
    Info info = columnFamilies.fetchColumnFamilyInfo(action.getColFamily().getColumnFamily(), mgr);
View Full Code Here


    ColumnFamily cf = info.getColumnFamilyObj();
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
    if(row == null)
      return;
    byte[] name = action.getColumn();
      row.deleteColumn(name);
  }

  private void persistIndex(PersistIndex action, MetaLookup mgr, MutationBatch m) {
    String indexCfName = action.getIndexCfName();
    Info info = columnFamilies.lookupOrCreate2(indexCfName, mgr);
View Full Code Here

   
    ColumnFamily cf = info.getColumnFamilyObj();
    ColumnListMutation colMutation = m.withRow(cf, action.getRowKey());
    Object toRemove = createObjectToUse(action, info);
   
    colMutation.deleteColumn(toRemove);
  }
 
  private Object createObjectToUse(RemoveIndex action, Info info) {
    byte[] indexedValue = action.getColumn().getIndexedValue();
    byte[] pk = action.getColumn().getPrimaryKey();
View Full Code Here

  private void removeColumns(Remove action, ColumnFamily cf, MutationBatch m) {
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
   
    for(byte[] name : action.getColumns()) {
      row.deleteColumn(name);
    }
  }

  private void removeColumn(RemoveColumn action, MetaLookup mgr, MutationBatch m) {
    Info info = columnFamilies.fetchColumnFamilyInfo(action.getColFamily().getColumnFamily(), mgr);
View Full Code Here

    ColumnFamily cf = info.getColumnFamilyObj();
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
    if(row == null)
      return;
    byte[] name = action.getColumn();
      row.deleteColumn(name);
  }

  private void persistIndex(PersistIndex action, MetaLookup mgr, MutationBatch m) {
    String indexCfName = action.getIndexCfName();
    Info info = columnFamilies.lookupOrCreate2(indexCfName, mgr);
View Full Code Here

   
    ColumnFamily cf = info.getColumnFamilyObj();
    ColumnListMutation colMutation = m.withRow(cf, action.getRowKey());
    Object toRemove = createObjectToUse(action, info);
   
    colMutation.deleteColumn(toRemove);
  }
 
  private Object createObjectToUse(RemoveIndex action, Info info) {
    byte[] indexedValue = action.getColumn().getIndexedValue();
    byte[] pk = action.getColumn().getPrimaryKey();
View Full Code Here

  private void removeColumns(Remove action, ColumnFamily cf, MutationBatch m) {
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
   
    for(byte[] name : action.getColumns()) {
      row.deleteColumn(name);
    }
  }

  private void persistIndex(PersistIndex action, MetaLookup mgr, MutationBatch m) {
    String indexCfName = action.getIndexCfName();
View Full Code Here

   
    ColumnFamily cf = info.getColumnFamilyObj();
    ColumnListMutation colMutation = m.withRow(cf, action.getRowKey());
    Object toRemove = createObjectToUse(action, info);
   
    colMutation.deleteColumn(toRemove);
  }
 
  private Object createObjectToUse(RemoveIndex action, Info info) {
    byte[] indexedValue = action.getColumn().getIndexedValue();
    byte[] pk = action.getColumn().getPrimaryKey();
View Full Code Here

  private void removeColumns(Remove action, ColumnFamily cf, MutationBatch m) {
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
   
    for(byte[] name : action.getColumns()) {
      row.deleteColumn(name);
    }
  }

  private void persistIndex(PersistIndex action, MetaLookup mgr, MutationBatch m) {
    String indexCfName = action.getIndexCfName();
View Full Code Here

   
    ColumnFamily cf = info.getColumnFamilyObj();
    ColumnListMutation colMutation = m.withRow(cf, action.getRowKey());
    Object toRemove = createObjectToUse(action, info);
   
    colMutation.deleteColumn(toRemove);
  }
 
  private Object createObjectToUse(RemoveIndex action, Info info) {
    byte[] indexedValue = action.getColumn().getIndexedValue();
    byte[] pk = action.getColumn().getPrimaryKey();
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.