Documentation ¶
Overview ¶
The MMAPv2 storage engine.
The primary key is always the first column, or, the first column is always the primary key. Also, the primary key is auto_increment and is always overriden by the storage engine (you can't specify an primary key on insert, the table will replace it). The primary key is a uint32 (INTEGER UNSIGNED in mysql).
The storage engine is called 'MMAPv2' in order to prevent confusion with MongoDB's original storage engine called 'MMAPv1'.
Index ¶
- type BAT
- type ENV
- type SqlTable
- func (s *SqlTable) Delete(ctx *sql.Context, row sql.Row) error
- func (s *SqlTable) GetSubsetTable(ctx *sql.Context, hint interface{}, filter eplan.TableRowFilter) (sql.Table, error)
- func (s *SqlTable) Insert(ctx *sql.Context, row sql.Row) error
- func (s *SqlTable) IsPrimaryKey(column string) bool
- func (s *SqlTable) Name() string
- func (s *SqlTable) PartitionRows(ctx *sql.Context, part sql.Partition) (sql.RowIter, error)
- func (s *SqlTable) Partitions(*sql.Context) (sql.PartitionIter, error)
- func (s *SqlTable) Schema() sql.Schema
- func (s *SqlTable) String() string
- func (s *SqlTable) Update(ctx *sql.Context, oldr, newr sql.Row) error
- type Table
- func (t *Table) Lookup(bat *BAT) (*TableIndexLookup, error)
- func (t *Table) RawDelete(bat *BAT, row []interface{}) error
- func (t *Table) RawInsert(bat *BAT, row []interface{}) error
- func (t *Table) RawIterator(bat *BAT) (TableIterator, error)
- func (t *Table) RawUpdate(bat *BAT, oldr, newr []interface{}) error
- func (t *Table) RawUpsert(bat *BAT, row []interface{}) error
- type TableIndexLookup
- func (til *TableIndexLookup) Close() error
- func (til *TableIndexLookup) EndOr()
- func (til *TableIndexLookup) Equals(col uint32, val interface{})
- func (til *TableIndexLookup) GreaterThan(col uint32, val interface{}, orEq bool) (taken bool)
- func (til *TableIndexLookup) OrEquals(col uint32, val interface{})
- func (til *TableIndexLookup) Range(col uint32, fKey, tKey interface{}, fEq, tEq bool) (taken bool)
- func (til *TableIndexLookup) RawIterator() (TableIterator, error)
- type TableIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlTable ¶
func (*SqlTable) GetSubsetTable ¶
func (*SqlTable) IsPrimaryKey ¶
func (*SqlTable) PartitionRows ¶
func (*SqlTable) Partitions ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) RawIterator ¶
func (t *Table) RawIterator(bat *BAT) (TableIterator, error)
type TableIndexLookup ¶
type TableIndexLookup struct {
// contains filtered or unexported fields
}
func (*TableIndexLookup) Close ¶
func (til *TableIndexLookup) Close() error
func (*TableIndexLookup) EndOr ¶
func (til *TableIndexLookup) EndOr()
func (*TableIndexLookup) Equals ¶
func (til *TableIndexLookup) Equals(col uint32, val interface{})
func (*TableIndexLookup) GreaterThan ¶
func (til *TableIndexLookup) GreaterThan(col uint32, val interface{}, orEq bool) (taken bool)
func (*TableIndexLookup) OrEquals ¶
func (til *TableIndexLookup) OrEquals(col uint32, val interface{})
func (*TableIndexLookup) Range ¶
func (til *TableIndexLookup) Range(col uint32, fKey, tKey interface{}, fEq, tEq bool) (taken bool)
func (*TableIndexLookup) RawIterator ¶
func (til *TableIndexLookup) RawIterator() (TableIterator, error)
type TableIterator ¶
Click to show internal directories.
Click to hide internal directories.