public static void announceTypeUpdate(UserType updatedType, boolean announceLocally) { announceNewType(updatedType, announceLocally); }
public static void announceNewType(UserType newType) { announceNewType(newType, false); }
public static void announceTypeUpdate(UserType updatedType, boolean announceLocally) { logger.info("Update type '{}.{}' to {}", updatedType.keyspace, updatedType.getNameAsString(), updatedType); announceNewType(updatedType, announceLocally); }
public static void announceTypeUpdate(UserType updatedType, boolean announceLocally) { logger.info("Update type '{}.{}' to {}", updatedType.keyspace, updatedType.getNameAsString(), updatedType); announceNewType(updatedType, announceLocally); }
public static void announceTypeUpdate(UserType updatedType, boolean announceLocally) { logger.info("Update type '{}.{}' to {}", updatedType.keyspace, updatedType.getNameAsString(), updatedType); announceNewType(updatedType, announceLocally); }
public boolean announceMigration(boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { KSMetaData ksm = Schema.instance.getKSMetaData(name.getKeyspace()); assert ksm != null; // should haven't validate otherwise // Can happen with ifNotExists if (ksm.userTypes.getType(name.getUserTypeName()) != null) return false; UserType type = createType(); checkForDuplicateNames(type); MigrationManager.announceNewType(type, isLocalOnly); return true; } }
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { KeyspaceMetadata ksm = Schema.instance.getKSMetaData(name.getKeyspace()); assert ksm != null; // should haven't validate otherwise // Can happen with ifNotExists if (ksm.types.get(name.getUserTypeName()).isPresent()) return null; UserType type = createType(); checkForDuplicateNames(type); MigrationManager.announceNewType(type, isLocalOnly); return new Event.SchemaChange(Event.SchemaChange.Change.CREATED, Event.SchemaChange.Target.TYPE, keyspace(), name.getStringTypeName()); } }
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { KeyspaceMetadata ksm = Schema.instance.getKSMetaData(name.getKeyspace()); assert ksm != null; // should haven't validate otherwise // Can happen with ifNotExists if (ksm.types.get(name.getUserTypeName()).isPresent()) return null; UserType type = createType(); checkForDuplicateNames(type); MigrationManager.announceNewType(type, isLocalOnly); return new Event.SchemaChange(Event.SchemaChange.Change.CREATED, Event.SchemaChange.Target.TYPE, keyspace(), name.getStringTypeName()); } }
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { KeyspaceMetadata ksm = Schema.instance.getKSMetaData(name.getKeyspace()); assert ksm != null; // should haven't validate otherwise // Can happen with ifNotExists if (ksm.types.get(name.getUserTypeName()).isPresent()) return null; UserType type = createType(); checkForDuplicateNames(type); MigrationManager.announceNewType(type, isLocalOnly); return new Event.SchemaChange(Event.SchemaChange.Change.CREATED, Event.SchemaChange.Target.TYPE, keyspace(), name.getStringTypeName()); } }