Documentation
¶
Index ¶
- type CompressionStats
- type CompressionType
- type Row
- type RowBatch
- type Table
- func (t *Table) AddDiskTablet(tablet *Tablet)
- func (t *Table) Backup(backupDir string) error
- func (t *Table) Cleanup() error
- func (t *Table) Close() error
- func (t *Table) CompactAll() error
- func (t *Table) Delete() error
- func (t *Table) Flush() error
- func (t *Table) GetStats() TableStats
- func (t *Table) Insert(row Row) error
- func (t *Table) Merge() error
- func (t *Table) Name() string
- func (t *Table) Query(startTime, endTime time.Time) ([]Row, error)
- func (t *Table) Restore(backupDir string) error
- func (t *Table) SetMaxTabletSize(size int64)
- func (t *Table) SetTTL(ttl time.Duration)
- type TableStats
- type Tablet
- type TabletIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressionStats ¶
type CompressionStats struct { OriginalSize int64 CompressedSize int64 CompressionRatio float64 CompressionType CompressionType }
CompressionStats holds statistics about compression
type CompressionType ¶
type CompressionType int
CompressionType represents the type of compression to use
const ( // NoCompression indicates no compression should be used NoCompression CompressionType = iota // GzipCompression indicates gzip compression should be used GzipCompression // LZWCompression indicates LZW compression should be used LZWCompression )
type Table ¶
type Table struct { MinTS time.Time // Add this field MaxTS time.Time // Add this field // contains filtered or unexported fields }
Table represents a collection of tablets
func (*Table) AddDiskTablet ¶
func (*Table) CompactAll ¶
CompactAll forces compaction of all tablets
func (*Table) GetStats ¶
func (t *Table) GetStats() TableStats
GetStats returns statistics about the table
func (*Table) SetMaxTabletSize ¶
SetMaxTabletSize sets the maximum tablet size
type TableStats ¶
type TableStats struct { Name string DiskTablets int InMemoryRows int TotalDiskRows int64 DiskSize int64 LastMergeTime time.Time LastFlushTime time.Time OldestData time.Time NewestData time.Time }
TableStats holds statistics about a table
type Tablet ¶
type Tablet struct { ID string MinTS time.Time MaxTS time.Time Rows []Row IsOnDisk bool FilePath string BlockSize int64 // contains filtered or unexported fields }
Tablet represents a collection of rows either in memory or on disk.
func (*Tablet) FlushToDisk ¶
FlushToDisk writes the tablet to disk FlushToDisk writes the tablet to disk
func (*Tablet) LoadMetadata ¶
LoadMetadata loads the tablet's metadata from disk
type TabletIndex ¶
type TabletIndex struct { BlockOffsets []int64 // Offset of each block in the file LastKeys [][]byte // Last key in each block BlockCount int // Number of blocks MinTS time.Time // Minimum timestamp in the tablet MaxTS time.Time // Maximum timestamp in the tablet }
TabletIndex represents the index structure for a tablet
Click to show internal directories.
Click to hide internal directories.