Package com.alvazan.orm.api.z8spi.meta

Examples of com.alvazan.orm.api.z8spi.meta.TypedRow


      ViewInfo view = views.get(i);
      Holder<KeyValue<TypedRow>> next = cursor.nextImpl();
      if(next != null) {
        atLeastOneCursorHasNext = true;
        KeyValue<TypedRow> kv = next.getValue();
        TypedRow row = kv.getValue();
        if(row != null)
          row.setView(view);
        rows.add(row);
      } else {
        TypedRow row = new TypedRow(view, view.getTableMeta());
        rows.add(row);
      }
    }

    if(atLeastOneCursorHasNext)
View Full Code Here


  public void remove(String colFamily, TypedRow row) {
    DboTableMeta metaDbo = cachedMeta.getMeta(colFamily);
    if(metaDbo == null)
      throw new IllegalArgumentException("DboTableMeta for colFamily="+colFamily+" was not found");
   
    TypedRow proxy = row;
    Object rowKey = row.getRowKey();
    DboColumnIdMeta idMeta = metaDbo.getIdColumnMeta();
    byte[] byteKey = idMeta.convertToStorage2(rowKey);
    byte[] virtualKey = idMeta.formVirtRowKey(byteKey);
    if(!metaDbo.hasIndexedField()) {
View Full Code Here

  public TypedRow createTypedRow(String colFamily) {
    DboTableMeta metaClass = cachedMeta.getMeta(colFamily);
    if(metaClass == null)
      throw new IllegalArgumentException("DboTableMeta for colFamily="+colFamily+" was not found");
   
    TypedRow r = new TypedRow(null, metaClass);
    return r;
  }
View Full Code Here

      return null;
   
    byte[] theKey = keyIter.next();
    if(theKey == null) {
      KeyValue<TypedRow> kv = new KeyValue<TypedRow>();
      TypedRow row = new TypedRow(view, view.getTableMeta());
      kv.setValue(row);
      return new Holder<KeyValue<TypedRow>>(kv);
    }

    return cursor.nextImpl();
View Full Code Here

      return null;
   
    byte[] theKey = keyIter.next();
    if(theKey == null) {
      KeyValue<TypedRow> kv = new KeyValue<TypedRow>();
      TypedRow row = new TypedRow(view, view.getTableMeta());
      kv.setValue(row);
      return new Holder<KeyValue<TypedRow>>(kv);
    }

    return cursor.nextImpl();
View Full Code Here

  public void remove(String colFamily, TypedRow row) {
    DboTableMeta metaDbo = cachedMeta.getMeta(colFamily);
    if(metaDbo == null)
      throw new IllegalArgumentException("DboTableMeta for colFamily="+colFamily+" was not found");
   
    TypedRow proxy = row;
    Object rowKey = row.getRowKey();
    DboColumnIdMeta idMeta = metaDbo.getIdColumnMeta();
    byte[] byteKey = idMeta.convertToStorage2(rowKey);
    byte[] virtualKey = idMeta.formVirtRowKey(byteKey);
    if(!metaDbo.hasIndexedField()) {
View Full Code Here

  public TypedRow createTypedRow(String colFamily) {
    DboTableMeta metaClass = cachedMeta.getMeta(colFamily);
    if(metaClass == null)
      throw new IllegalArgumentException("DboTableMeta for colFamily="+colFamily+" was not found");
   
    TypedRow r = new TypedRow(null, metaClass);
    return r;
  }
View Full Code Here

      ViewInfo view = views.get(i);
      Holder<KeyValue<TypedRow>> next = cursor.nextImpl();
      if(next != null) {
        atLeastOneCursorHasNext = true;
        KeyValue<TypedRow> kv = next.getValue();
        TypedRow row = kv.getValue();
        if(row != null)
          row.setView(view);
        rows.add(row);
      } else {
        TypedRow row = new TypedRow(view, view.getTableMeta());
        rows.add(row);
      }
    }

    if(atLeastOneCursorHasNext)
View Full Code Here

      ViewInfo view = views.get(i);
      Holder<KeyValue<TypedRow>> next = cursor.previousImpl();
      if(next != null) {
        atLeastOneCursorHasNext = true;
        KeyValue<TypedRow> kv = next.getValue();
        TypedRow row = kv.getValue();
        if(row != null)
          row.setView(view);
        rows.add(row);
      } else {
        TypedRow row = new TypedRow(view, view.getTableMeta());
        rows.add(row);
      }
    }

    if(atLeastOneCursorHasNext)
View Full Code Here

      if(row.getException() != null) {
        System.out.println("Entity with rowkey="+pt.getKeyAsString()+" does not exist, WILL remove from index");
        s.removeIndexPoint(pt, data.getPartitionBy(), data.getPartitionBy());
        changedCounter++;
      } else {
        TypedRow val = row.getValue();
       
        TypedColumn column = val.getColumn(colName);
        if (column == null) {
          //It means column was deleted by user. Doing nothing as of now
          changedCounter++;
          continue;
        }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.meta.TypedRow

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.