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

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


      //want indexes of /entityCF/account/security/<securityid>
      //           and /entityCF/security/account/<accountid> 
      // It would not be useful at all to have /entityCF/account/account/<accountid> since all the account ids in that index row would be the same!!!!
      if(part.getColMeta() == this)
        continue; //skip indexing if this IS the partition. 
      IndexData data = createAddIndexData(info.getColumnFamily(), oldIndexedVal, storageType, pk, part);
      indexList.add(data);
    }
  }
View Full Code Here


   
    return true;
  }
  private IndexData createAddIndexData(String columnFamily,
      byte[] byteVal, StorageTypeEnum storageType, byte[] pk, PartitionTypeInfo info) {
    IndexData data = new IndexData();
    String colFamily = getMetaDbo().getIndexTableName();
    data.setColumnFamilyName(colFamily);
    String indexRowKey = getMetaDbo().getIndexRowKey(info.getPartitionBy(), info.getPartitionId());
    data.setRowKey(indexRowKey);
    data.getIndexColumn().setIndexedValue(byteVal);
    data.getIndexColumn().setPrimaryKey(pk);
    data.getIndexColumn().setColumnName(getColumnName());
    return data;
  }
View Full Code Here

      //want indexes of /entityCF/account/security/<securityid>
      //           and /entityCF/security/account/<accountid> 
      // It would not be useful at all to have /entityCF/account/account/<accountid> since all the account ids in that index row would be the same!!!!
      if(part.getColMeta() == this)
        continue; //skip indexing if this IS the partition. 
      IndexData data = createAddIndexData(info.getColumnFamily(), oldIndexedVal, storageType, pk, part);
      indexList.add(data);
    }
  }
View Full Code Here

   
    return true;
  }
  private IndexData createAddIndexData(String columnFamily,
      byte[] byteVal, StorageTypeEnum storageType, byte[] pk, PartitionTypeInfo info) {
    IndexData data = new IndexData();
    String colFamily = getMetaDbo().getIndexTableName();
    data.setColumnFamilyName(colFamily);
    String indexRowKey = getMetaDbo().getIndexRowKey(info.getPartitionBy(), info.getPartitionId());
    data.setRowKey(indexRowKey);
    data.getIndexColumn().setIndexedValue(byteVal);
    data.getIndexColumn().setPrimaryKey(pk);
    data.getIndexColumn().setColumnName(getColumnName());
    return data;
  }
View Full Code Here

      translateToColumn(info, p);
    }
   
    for(PROXY p : elementsToRemove) {
      RowToPersist row = info.getRow();
      IndexData data = fetchIndexData(info, p);
      row.addIndexToRemove(data);
    }
  }
View Full Code Here

    }
  }

  private void translateToColumn(InfoForIndex<OWNER> info, PROXY value) {
    RowToPersist row = info.getRow();
    IndexData data = fetchIndexData(info, value);
    row.addIndexToPersist(data);
  }
View Full Code Here

              "\nmethod #2 is used for when you have a bi-directional relationship where each is a child of the other");
    }
   
    byte[] key = info.getRow().getKey();
   
    IndexData data = new IndexData();
    String colFamily = getMetaDbo().getIndexTableName();
    String rowKey = formRowKey(row.getKey());
   
    data.setColumnFamilyName(colFamily);
    data.setRowKey(rowKey);
    IndexColumn indCol = data.getIndexColumn();
    indCol.setIndexedValue(byteVal);
    indCol.setPrimaryKey(key);
    return data;
  }
View Full Code Here

      //want indexes of /entityCF/account/security/<securityid>
      //           and /entityCF/security/account/<accountid> 
      // It would not be useful at all to have /entityCF/account/account/<accountid> since all the account ids in that index row would be the same!!!!
      if(part.getColMeta() == this)
        continue; //skip indexing if this IS the partition. 
      IndexData data = createAddIndexData(info.getColumnFamily(), oldIndexedVal, storageType, pk, part);
      indexList.add(data);
    }
  }
View Full Code Here

   
    return true;
  }
  private IndexData createAddIndexData(String columnFamily,
      byte[] byteVal, StorageTypeEnum storageType, byte[] pk, PartitionTypeInfo info) {
    IndexData data = new IndexData();
    String colFamily = getMetaDbo().getIndexTableName();
    data.setColumnFamilyName(colFamily);
    String indexRowKey = getMetaDbo().getIndexRowKey(info.getPartitionBy(), info.getPartitionId());
    data.setRowKey(indexRowKey);
    data.getIndexColumn().setIndexedValue(byteVal);
    data.getIndexColumn().setPrimaryKey(pk);
    data.getIndexColumn().setColumnName(getColumnName());
    return data;
  }
View Full Code Here

    }
    elementsToAdd.clear();
   
    for(PROXY p : elementsToRemove) {
      RowToPersist row = info.getRow();
      IndexData data = fetchIndexData(info, p);
      row.addIndexToRemove(data);
    }
    elementsToRemove.clear();
  }
View Full Code Here

TOP

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

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.