Package com.netflix.paas.meta.entity

Examples of com.netflix.paas.meta.entity.PaasTableEntity$Builder


            }
           
        //}
        if (entity instanceof PaasTableEntity) {
            //first create/check if schema db exists
            PaasTableEntity tableEnt = (PaasTableEntity)entity;
            try {
                String schemaName = tableEnt.getSchemaName();
                session.execute(String.format(PaasUtils.CREATE_KEYSPACE_SIMPLE_FORMAT, schemaName, 1));
            } catch (AlreadyExistsException e) {
                // It's ok, ignore
            }
            //if schema/db already exists now create the table
View Full Code Here


    @Override
    public void createTable(@PathParam("schema") String schemaName, String payLoad) {
        // TODO Auto-generated method stub
        if (payLoad!=null) {
            JsonObject jsonPayLoad =  new JsonObject(payLoad);
            PaasTableEntity ptbe = PaasTableEntity.builder().withJsonPayLoad(jsonPayLoad, schemaName).build();
            metadao.writeMetaEntity(ptbe);
            //create new ks
            //create new cf
        }      
    }
View Full Code Here

TOP

Related Classes of com.netflix.paas.meta.entity.PaasTableEntity$Builder

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.