Examples of convertTypeToString()


Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertTypeToString()

  }

  private String formRowKey(byte[] byteKey) {
    Converter converter = ownerMeta.getIdField().getConverter();
    Object objKey = converter.convertFromNoSql(byteKey);
    String keyAsStr = converter.convertTypeToString(objKey);
   
    //We ALWAYS ignore partition in this case since this index row is ALWAYS tied to this row period...moving it all
    //would be a pain and be useless...
    String rowKey = getMetaDbo().getIndexRowKey(null, null)+"/"+keyAsStr;
    return rowKey;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertTypeToString()

  }

  private String formRowKey(byte[] byteKey) {
    Converter converter = ownerMeta.getIdField().getConverter();
    Object objKey = converter.convertFromNoSql(byteKey);
    String keyAsStr = converter.convertTypeToString(objKey);
   
    //We ALWAYS ignore partition in this case since this index row is ALWAYS tied to this row period...moving it all
    //would be a pain and be useless...
    String rowKey = getMetaDbo().getIndexRowKey(null, null)+"/"+keyAsStr;
    return rowKey;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertTypeToString()

  }

  private String formRowKey(byte[] byteKey) {
    Converter converter = ownerMeta.getIdField().getConverter();
    Object objKey = converter.convertFromNoSql(byteKey);
    String keyAsStr = converter.convertTypeToString(objKey);
   
    //We ALWAYS ignore partition in this case since this index row is ALWAYS tied to this row period...moving it all
    //would be a pain and be useless...
    String rowKey = getMetaDbo().getIndexRowKey(null, null)+"/"+keyAsStr;
    return rowKey;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnIdMeta.convertTypeToString()

    hasValue = true;
  }
  private void setKeyAsStr(byte[] idData) {
    DboColumnIdMeta idMeta = metaClass.getIdField().getMetaIdDbo();
    Object obj = idMeta.convertFromStorage2(idData);
    keyAsStr = idMeta.convertTypeToString(obj);
  }
  public synchronized T getValue() {
    if(!hasValue) {
      //otherwise, we need to create and cache the value
      Tuple<T> tuple =  metaClass.convertIdToProxy(null, session, key.getKey(), cacheLoadCallback);
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnMeta.convertTypeToString()

    if(partitionMeta != null) {
      DboColumnMeta colMeta = partitionMeta.getPartitionColumn();
      partitionBy = colMeta.getColumnName();
      byte[] partId = retrieveValue(colMeta, (ExpressionNode) partitionMeta.getNode());
      Object partIdObj = colMeta.convertFromStorage2(partId);
      partitionId = colMeta.convertTypeToString(partIdObj);
    }

    ScanInfo scanInfo = ScanInfo.createScanInfo(metaCol, partitionBy, partitionId);
    return scanInfo;
  }
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnMeta.convertTypeToString()

      byte[] indexedValue = r.getColumn().getIndexedValue();
      byte[] pk = r.getColumn().getPrimaryKey();
      Object theId = meta.getIdColumnMeta().convertFromStorage2(pk);
      String idStr = meta.getIdColumnMeta().convertTypeToString(theId);
      Object valObj = colMeta.convertFromStorage2(indexedValue);
      String valStr = colMeta.convertTypeToString(valObj);
     
      return msg+"[indexval="+valStr+",to pk="+idStr+"]";
    } catch(Exception e) {
      if(log.isTraceEnabled())
        log.trace("excpetion logging", e);
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnMeta.convertTypeToString()

      return msg + " (CF meta found but columnMeta not found)";
   
    List<String> strVals = new ArrayList<String>();
    for(byte[] val : values) {
      Object fromObj = colMeta.convertFromStorage2(val);
      String str = colMeta.convertTypeToString(fromObj);
      strVals.add(str);
    }
    if (log.isInfoEnabled()) {
      msg+=" finding non-contiguous keys index rowkey="+rowKey+" for keys:"+strVals;
      log.info("[rawlogger]"+msg);
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnMeta.convertTypeToString()

      return msg + " (CF meta found but columnMeta not found)";
   
    String range = "";
    if(from != null) {
      Object fromObj = colMeta.convertFromStorage2(from.getKey());
      range += colMeta.convertTypeToString(fromObj);
      String firstSign = " < ";
      if(from.isInclusive())
        firstSign = " <= ";
      range += firstSign;
    }
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnMeta.convertTypeToString()

      if(to.isInclusive())
        secondSign = " <= ";
      range += secondSign;
     
      Object toObj = colMeta.convertFromStorage2(to.getKey());
      String toStr = colMeta.convertTypeToString(toObj);
      range += toStr;
    }
   
    if (log.isInfoEnabled()) {
      msg+=" scanning index for value in range:"+range+" with batchSize="+batchSize;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.meta.DboColumnMeta.convertTypeToString()

      byte[] indexedValue = r.getColumn().getIndexedValue();
      byte[] pk = r.getColumn().getPrimaryKey();
      Object theId = meta.getIdColumnMeta().convertFromStorage2(pk);
      String idStr = meta.getIdColumnMeta().convertTypeToString(theId);
      Object valObj = colMeta.convertFromStorage2(indexedValue);
      String valStr = colMeta.convertTypeToString(valObj);
     
      return msg+"[indexval="+valStr+",to pk="+idStr+"]";
    } catch(Exception e) {
      if(log.isTraceEnabled())
        log.trace("excpetion logging", e);
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.