Package com.impetus.kundera.configure.schema

Examples of com.impetus.kundera.configure.schema.SchemaGenerationException


                log.warn("Error while opening socket for host {}, skipping for next available node ", host);
            }
            catch (Exception e)
            {
                log.error("Error during creating schema in cassandra, Caused by: .", e);
                throw new SchemaGenerationException(e, "Cassandra");
            }
        }
        throw new SchemaGenerationException("Error while opening socket, Caused by: .", message, "Cassandra");
    }
View Full Code Here


                if (ire.getWhy() != null && !ire.getWhy().equals("Index already exists")
                        && operation.equalsIgnoreCase(SchemaOperationType.update.name()))
                {
                    log.error("Error occurred while creating indexes on column{} of table {}, , Caused by: .",
                            indexInfo.getColumnName(), tableInfo.getTableName(), ire);
                    throw new SchemaGenerationException("Error occurred while creating indexes on column "
                            + indexInfo.getColumnName() + " of table " + tableInfo.getTableName(), ire, "Cassandra",
                            databaseName);
                }
            }
        }
View Full Code Here

            }
            else
            {
                log.error("Error occurred while altering column type of  table {}, Caused by: .",
                        tableInfo.getTableName(), ireforAddColumn);
                throw new SchemaGenerationException("Error occurred while adding column into table "
                        + tableInfo.getTableName(), ireforAddColumn, "Cassandra", databaseName);
            }
        }

    }
View Full Code Here

                    genericTypesBuilder.append(translator.getCQLType(valueDataType));
                    genericTypesBuilder.append(">");
                }
                else
                {
                    throw new SchemaGenerationException("Incorrect collection field definition for "
                            + cci.getCollectionColumnName() + ". Genric Types must be defined correctly.");
                }
            }

            if (genericTypesBuilder != null)
View Full Code Here

                int compareResult = originalMetadata.compareTo(metadata);
                if (compareResult > 0)
                {
                    onLog(tableInfo, metadata, value_types, originalMetadata);
                    throw new SchemaGenerationException(
                            "Schema mismatch!, validation failed. see above table for mismatch");
                }
            }
            else
            {
View Full Code Here

                }
            }
        }
        if (!tablefound)
        {
            throw new SchemaGenerationException("Column family " + tableInfo.getTableName()
                    + " does not exist in keyspace " + databaseName + "", "Cassandra", databaseName,
                    tableInfo.getTableName());
        }
    }
View Full Code Here

                break;
            }
        }
        if (!columnfound)
        {
            throw new SchemaGenerationException("Column " + columnInfo.getColumnName()
                    + " does not exist in column family " + tableInfo.getTableName() + "", "Cassandra", databaseName,
                    tableInfo.getTableName());
        }
    }
View Full Code Here

                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("READ_REPAIR_CHANCE should be double type, Caused by: {}.", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
    }
View Full Code Here

                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("READ_REPAIR_CHANCE should be double type, Caused by: .", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
    }
View Full Code Here

                }
            }
            catch (NumberFormatException nfe)
            {
                log.error("BLOOM_FILTER_FP_CHANCE should be double type, Caused by: .", nfe);
                throw new SchemaGenerationException(nfe);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.configure.schema.SchemaGenerationException

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.