TableEnv (embedded) defines the way a table should be created. This is a very important type and should be used carefully and in the right manner to create a table.

C++
Java

To create TableEnv (embedded) object

TableEnv();

To get PersistType

PersistType getDbType();

To set PersistType

void setDbType(PersistType db_type);

To get index type for the table

IndexType getIdxType();

To set index type for a table

void setIdxType(IndexType idx_type);

To get LogType for a table

LogType getTableLogType();

To set LogType for a table

void setTableLogType(LogType table_log_type);

To get the table type

TableType getTableType();

To set the table type

void setTableType(TableType table_type);

To get the key type

KeyType getKeyType();

To set the key type for a table

void setKeyType(KeyType key_type);

To get the sorting method for a table

SortMethod getSortMethod();

To set the sorting method for a table

void setSortMethod(SortMethod sort_method);

To get the sorting direction set for a table

SortDirection getSortDirection();

To set the sprint direction for a table

void setSortDirection(SortDirection sort_direction);

To get table subtype

TableSubType getTblSubType();

To set table subtype

void setTblSubType(TableSubType tbl_sub_type);

To get PrimitiveDataType for a table

PrimitiveDataType getPrimDataType();

To set value for Primitive data type for a table

void setPrimDataType(PrimitiveDataType prim_data_type);

To get the version

VersionType getVersionType();

To set the version

void setVersionType(VersionType version_type);

To get the sizehint of a table

TableSizeHint getTableSizeHint();

To set the sizehint of a table

void setTableSizeHint(TableSizeHint table_sz_hint);

To get key size for a table

int getKeySize();

To set key size for a table

void setKeySize(int key_sz);

To get LogSize in Mb

int getLogSizeMb();

To set Log Size in Mb

void setLogSizeMb(int log_sz_mb);

To get status of WalEnabled

bool getWalEnabled();

To set WalEnabled

void setWalEnabled(bool wal_enabled);

To get status for auto commit

bool getAutocommit();

To enable auto commit for single operation

void setAutocommit(bool autocommit);

To check whether Duplicate keys are allowed

bool getAllowDuplicate();

To set whether Duplicate keys are allowed in a table

void setAllowDuplicate(bool allow_duplicate);

To check if RevIdx is enable

bool getAllowRevIdx();

To set whether RevIdx is allowed or not

void setAllowRevIdx(bool allow_rev_idx);

To get value for Ttlsec

int getTtlsec();

To set value for Ttlsec

void setTtlsec(int ttlsec);

To delete TableEnv (Embedded) object

virtual ~TableEnv();

Creating TableEnv object

public TableEnv()

To get the PersistType set

public PersistType getDbType()

To set the PersistType for DB

public void setDbType(PersistType db_type)

This set type of db, in-memory or persistent. Default is persistent.

To get the IndexType set

public IndexType getIdxType()

To set the IndexType for a table

public void setIdxType(IndexType idx_type)

To get LogType set

public LogType getTableLogType()

To set LogType

public void setTableLogType(LogType table_log_type)

BangDB can create write ahead log in shared and in private mode.

To get TableType for a table

public TableType getTableType()

To set TableType

public void setTableType(TableType table_type)

To get KeyType set for a table

public KeyType getKeyType()

To set KeyType set for a table

public void setKeyType(KeyType key_type)

To get the Sorting method set for a table

public SortMethod getSortMethod()

To set the Sorting method set for a table

public void setSortMethod(SortMethod sort_method)

To get Sorting Direction set for a table

public SortDirection getSortDirection()

To set Sorting Direction set for a table

public void setSortDirection(SortDirection sort_direction)

To get the Table subtype

public TableSubType getTblSubType()

To set the subtype for a table

public void setTblSubType(TableSubType tbl_sub_type)

To get the Primitive Data Type set

public PrimitiveDataType getPrimDataType()

To set the Primitive Data Type set

public void setPrimDataType(PrimitiveDataType prim_data_type)

To get Version type set

public VersionType getVersionType()

To set Version type

public void setVersionType(VersionType version_type)

To get Table Size hint set select for a table

public TableSizeHint getTableSizeHint()

To set the TableSizeHint for a table

public void setTableSizeHint(TableSizeHint table_sz_hint)

To get the size of key value

public int getKeySize()

To set the size of a key

public void setKeySize(int key_sz)

To get the value for Log size in Mb

public int getLogSizeMb()

To set the Log size in Mb

public void setLogSizeMb(int log_sz_mb)

To check WalEnabled status

public int getWalEnabled()

To set WalEnabled

public void setWalEnabled(int wal_enabled)

To check if Duplicates are allowed or not for a table

public int getAllowDuplicate()

To set whether duplicates should be allowed or not for a table

public void setAllowDuplicate(int allow_duplicate)

To check whether RevIdx is enabled or not

public int getAllowRevIdx()

To set whether RevIdx is allowed or not

public void setAllowRevIdx(int allow_rev_idx)

To allow reverse indexing

public int getTtlsec()

To set the Ttlsec

public void setTtlsec(int ttlsec)

This is to set whether to use SSL/TLS based secure channel or not.