lib/marshal/index.js
function parseTypeString(type){
  if (type.indexOf('CompositeType') > -1){
    return getCompositeTypes(type);
  } else if(type.indexOf('ReversedType') > -1){
    return getType(getInnerType(type));
  }
  else if(type.indexOf('org.apache.cassandra.db.marshal.SetType') > -1){
    return getSetType(type);
  }
  else if(type.indexOf('org.apache.cassandra.db.marshal.ListType') > -1){
    return getListType(type);
  }
  else if(type.indexOf('org.apache.cassandra.db.marshal.MapType') > -1){
    return getMapType(type);
  }
  else if(type === null || type === undefined) {
    return 'BytesType';
  } else {
    return getType(type);
  }
}
function parseTypeString(type){
  if (type.indexOf('CompositeType') > -1){
    return getCompositeTypes(type);
  } else if(type.indexOf('ReversedType') > -1){
    return getType(getInnerType(type));
  }
  else if(type.indexOf('org.apache.cassandra.db.marshal.SetType') > -1){
    return getSetType(type);
  }
  else if(type.indexOf('org.apache.cassandra.db.marshal.ListType') > -1){
    return getListType(type);
  }
  else if(type.indexOf('org.apache.cassandra.db.marshal.MapType') > -1){
    return getMapType(type);
  }
  else if(type === null || type === undefined) {
    return 'BytesType';
  } else {
    return getType(type);
  }
}
function parseTypeString ( type ) { if ( type . indexOf ( 'CompositeType' ) > - 1 ) { return getCompositeTypes ( type ) ; } else if ( type . indexOf ( 'ReversedType' ) > - 1 ) { return getType ( getInnerType ( type ) ) ; } else if ( type . indexOf ( 'org.apache.cassandra.db.marshal.SetType' ) > - 1 ) { return getSetType ( type ) ; } else if ( type . indexOf ( 'org.apache.cassandra.db.marshal.ListType' ) > - 1 ) { return getListType ( type ) ; } else if ( type . indexOf ( 'org.apache.cassandra.db.marshal.MapType' ) > - 1 ) { return getMapType ( type ) ; } else if ( type === null || type === undefined ) { return 'BytesType' ; } else { return getType ( type ) ; } }
Parses the type string and decides what types to return
@private
@memberOf Marshal
Parses the type string and decides what types to return