Package com.alvazan.orm.api.z8spi.conv

Examples of com.alvazan.orm.api.z8spi.conv.ByteArray


    this.columnSortType = sortType;
    this.columnFamilyName = columnFamily;
  }

  public Row findOrCreateRow(byte[] key) {
    ByteArray array = new ByteArray(key);
    Row row = keyToRow.get(array);
    if(row == null) {
      row = createSortedMap();
      row.setKey(key);
      keyToRow.put(new ByteArray(key), row);
    }
    return row;
  }
View Full Code Here


   
    return row;
  }

  public void removeRow(byte[] rowKey) {
    ByteArray key = new ByteArray(rowKey);
    keyToRow.remove(key);
  }
View Full Code Here

    ByteArray key = new ByteArray(rowKey);
    keyToRow.remove(key);
  }

  public Row getRow(byte[] rowKey) {
    ByteArray key = new ByteArray(rowKey);
    Row row = keyToRow.get(key);
    return row;
  }
View Full Code Here

  @Override
  public String toString() {
    String t = "";
    t += "columnFamilyName="+columnFamilyName+" columnSortType="+columnSortType;
    for(Row r : keyToRow.values()) {
      ByteArray b = new ByteArray(r.getKey());
      t += "\nrowkey="+b.asString()+" row="+r;
    }
    return t;
  }
View Full Code Here

    private String colFamily;
    private ByteArray key;
   
    public TheKey(String cf, byte[] key) {
      colFamily = cf;
      this.key = new ByteArray(key);
    }
View Full Code Here

 
  public TypedRow(int i) {}

  public void addColumn(DboColumnToManyMeta colMeta, byte[] fullName, byte[] namePrefix, byte[] fk, byte[] value, Long timestamp) {
    TypedColumn c = new TypedColumn(colMeta, fullName, namePrefix, value, timestamp);
    ByteArray b = new ByteArray(fullName);
    columns.put(b, c);
  }
View Full Code Here

  }
 
  public void addColumn(DboColumnMeta colMeta,
      byte[] columnName, byte[] value, Long timestamp) {
    TypedColumn c = new TypedColumn(colMeta, columnName, value, timestamp);
    ByteArray b = new ByteArray(columnName);
    columns.put(b, c);
  }
View Full Code Here

    ByteArray b = new ByteArray(columnName);
    columns.put(b, c);
  }
 
  public void addColumn(byte[] name, byte[] value, Long timestamp) {
    ByteArray b = new ByteArray(name);
    TypedColumn c = new TypedColumn(null, name, value, timestamp);
    columns.put(b, c);
  }
View Full Code Here

  }
 
  public void addColumn(String name, Object obj) {
    DboColumnMeta columnMeta = metaClass.getColumnMeta(name);
    byte[] nameBytes = StandardConverters.convertToBytes(name);
    ByteArray b = new ByteArray(nameBytes);
    if(columnMeta != null) {
      byte[] value = columnMeta.convertToStorage2(obj);
      TypedColumn c = new TypedColumn(columnMeta, nameBytes, value, null);
      columns.put(b, c);
      return;
View Full Code Here

  public void setRowKeyString(String key) {
    rowKey = metaClass.getIdColumnMeta().convertStringToType(key);
  }
 
  public TypedColumn getColumn(byte[] colName) {
    ByteArray b = new ByteArray(colName);
    return columns.get(b);
  }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.conv.ByteArray

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.