Package org.yamcs.yarch.streamsql
Class CreateTableStatement
- java.lang.Object
-
- org.yamcs.yarch.streamsql.SimpleStreamSqlStatement
-
- org.yamcs.yarch.streamsql.CreateTableStatement
-
- All Implemented Interfaces:
StreamSqlStatement
public class CreateTableStatement extends SimpleStreamSqlStatement
-
-
Constructor Summary
Constructors Constructor Description CreateTableStatement(boolean ifNotExists, String tableName, TupleDefinition tupleDefinition, List<String> primaryKey, List<String> index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHistogramColumn(String columnName)protected voidexecute(ExecutionContext context, Consumer<Tuple> consumer)voidsetCompressed(boolean c)voidsetEngine(String engine)voidsetPartitioning(PartitioningSpec pspec)voidsetTablespace(String tablespace)-
Methods inherited from class org.yamcs.yarch.streamsql.SimpleStreamSqlStatement
execute, execute, getResultDefinition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.yarch.streamsql.StreamSqlStatement
execute
-
-
-
-
Method Detail
-
setTablespace
public void setTablespace(String tablespace)
-
setPartitioning
public void setPartitioning(PartitioningSpec pspec)
-
setCompressed
public void setCompressed(boolean c)
-
addHistogramColumn
public void addHistogramColumn(String columnName)
-
execute
protected void execute(ExecutionContext context, Consumer<Tuple> consumer) throws StreamSqlException
- Specified by:
executein classSimpleStreamSqlStatement- Throws:
StreamSqlException
-
setEngine
public void setEngine(String engine)
-
-