Package com.alvazan.orm.api.z8spi

Examples of com.alvazan.orm.api.z8spi.ColumnType


    if(info == null) {
      //If there is no column family in cassandra, then we need to return no rows to the user...
      return new CursorReturnsEmptyRows(rowKeys);
    }
   
    ColumnType type = info.getColumnType();
    if(type != ColumnType.ANY_EXCEPT_COMPOSITE) {
      throw new UnsupportedOperationException("Finding on composite type="+colFamily+" not allowed here, you should be using column slice as these rows are HUGE!!!!");
    }
   
    Keyspace keyspace = columnFamilies.getKeyspace();
View Full Code Here


 
  private Object createObjectToUse(RemoveIndex action, Info info) {
    byte[] indexedValue = action.getColumn().getIndexedValue();
    byte[] pk = action.getColumn().getPrimaryKey();
   
    ColumnType type = info.getColumnType();
    Object toPersist;
    switch(type) {
    case COMPOSITE_STRINGPREFIX:
    case COMPOSITE_INTEGERPREFIX:
    case COMPOSITE_DECIMALPREFIX:
View Full Code Here

      if (log.isInfoEnabled())
        log.info("query was run on column family that does not yet exist="+colFamily);
      return new EmptyCursor<IndexColumn>();
    }
   
    ColumnType type = info1.getColumnType();
    if(type == ColumnType.COMPOSITE_INTEGERPREFIX ||
        type == ColumnType.COMPOSITE_DECIMALPREFIX ||
        type == ColumnType.COMPOSITE_STRINGPREFIX) {
      StartQueryListener listener = new StartQueryManyKeys(columnFamilies, info1, info, values, reverse);
      return new CursorOfFutures(listener, batchList);
View Full Code Here

   
    String colName = null;
    if(info.getColumnName() != null)
      colName = info.getColumnName().getColumnName();
   
    ColumnType type = info1.getColumnType();
    if(type == ColumnType.COMPOSITE_INTEGERPREFIX ||
        type == ColumnType.COMPOSITE_DECIMALPREFIX ||
        type == ColumnType.COMPOSITE_STRINGPREFIX) {
      Listener l = new Listener(rowKey, info1, from, to, batchSize);
      return findBasic(IndexColumn.class, rowKey, l, bListener, batchSize, ""+info, colName);
View Full Code Here

    virtualToCfName.put(virtCf, realCf);
  }
 
  private void loadColumnFamilyImpl(ColumnFamilyDefinition def) {
    String comparatorType = def.getComparatorType();
    ColumnType type = ColumnType.ANY_EXCEPT_COMPOSITE;
    if(formName(UTF8Type.class, BytesType.class).equals(comparatorType)) {
      type = ColumnType.COMPOSITE_STRINGPREFIX;
    } else if(formName(IntegerType.class, BytesType.class).equals(comparatorType)) {
      type = ColumnType.COMPOSITE_INTEGERPREFIX;
    } else if(formName(DecimalType.class, BytesType.class).equals(comparatorType)) {
View Full Code Here

          .setKeyspace(keysp);

    if (log.isInfoEnabled())
      log.info("keyspace="+def.getKeyspace()+" col family="+def.getName());
    StorageTypeEnum rowKeyType = meta.getIdColumnMeta().getStorageType();
    ColumnType colType = ColumnType.ANY_EXCEPT_COMPOSITE;
    if(meta.isVirtualCf()) {
      rowKeyType = StorageTypeEnum.BYTES;
    } else {
      StorageTypeEnum type = meta.getColNamePrefixType();
      def = addRowKeyValidation(meta, def);
View Full Code Here

    virtualToCfName.put(virtCf, realCf);
  }
 
  private void loadColumnFamilyImpl(ColumnFamilyDefinition def) {
    String comparatorType = def.getComparatorType();
    ColumnType type = ColumnType.ANY_EXCEPT_COMPOSITE;
    if(formName(UTF8Type.class, BytesType.class).equals(comparatorType)) {
      type = ColumnType.COMPOSITE_STRINGPREFIX;
    } else if(formName(IntegerType.class, BytesType.class).equals(comparatorType)) {
      type = ColumnType.COMPOSITE_INTEGERPREFIX;
    } else if(formName(DecimalType.class, BytesType.class).equals(comparatorType)) {
View Full Code Here

          .setName(colFamily)
          .setKeyspace(keysp);

    log.info("keyspace="+def.getKeyspace()+" col family="+def.getName());
    StorageTypeEnum rowKeyType = meta.getIdColumnMeta().getStorageType();
    ColumnType colType = ColumnType.ANY_EXCEPT_COMPOSITE;
    if(meta.isVirtualCf()) {
      rowKeyType = StorageTypeEnum.BYTES;
    } else {
      StorageTypeEnum type = meta.getColNamePrefixType();
      def = addRowKeyValidation(meta, def);
View Full Code Here

    virtualToCfName.put(virtCf, cfLowercase);
  }
 
  private void loadColumnFamilyImpl(ColumnFamilyDefinition def) {
    String comparatorType = def.getComparatorType();
    ColumnType type = ColumnType.ANY_EXCEPT_COMPOSITE;
    if(formName(UTF8Type.class, BytesType.class).equals(comparatorType)) {
      type = ColumnType.COMPOSITE_STRINGPREFIX;
    } else if(formName(IntegerType.class, BytesType.class).equals(comparatorType)) {
      type = ColumnType.COMPOSITE_INTEGERPREFIX;
    } else if(formName(DecimalType.class, BytesType.class).equals(comparatorType)) {
View Full Code Here

          .setKeyspace(keysp);

    if (log.isInfoEnabled())
      log.info("keyspace="+def.getKeyspace()+" col family="+def.getName());
    StorageTypeEnum rowKeyType = meta.getIdColumnMeta().getStorageType();
    ColumnType colType = ColumnType.ANY_EXCEPT_COMPOSITE;
    if(meta.isVirtualCf()) {
      rowKeyType = StorageTypeEnum.BYTES;
    } else {
      StorageTypeEnum type = meta.getColNamePrefixType();
      def = addRowKeyValidation(meta, def);
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.ColumnType

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.