.setMessage("Node: " + node).build().buildException();
}
LiteralExpression expression = (LiteralExpression)node.accept(expressionCompiler);
splits[i] = expression.getBytes();
}
final MetaDataClient client = new MetaDataClient(connection);
return new MutationPlan() {
@Override
public ParameterMetaData getParameterMetaData() {
return context.getBindManager().getParameterMetaData();
}
@Override
public PhoenixConnection getConnection() {
return connection;
}
@Override
public MutationState execute() throws SQLException {
return client.createIndex(create, splits);
}
@Override
public ExplainPlan getExplainPlan() throws SQLException {
return new ExplainPlan(Collections.singletonList("CREATE INDEX"));