Documentation ¶
Index ¶
- type NoRevisionsFound
- type TileDB
- func (d *TileDB) Init() error
- func (d *TileDB) LatestRevision() (rev int, logroot []byte, count int64, err error)
- func (d *TileDB) NextWriteRevision() (int, error)
- func (d *TileDB) Tile(revision int, path []byte) (*batchmap.Tile, error)
- func (d *TileDB) Versions(revision int, module string) ([]string, error)
- func (d *TileDB) WriteRevision(rev int, logCheckpoint []byte, count int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoRevisionsFound ¶
type NoRevisionsFound = error
NoRevisionsFound is returned when the DB appears valid but has no revisions in it.
type TileDB ¶
type TileDB struct {
// contains filtered or unexported fields
}
TileDB provides read/write access to the generated Map tiles.
func NewTileDB ¶
NewTileDB creates a TileDB using a file at the given location. If the file doesn't exist it will be created.
func (*TileDB) LatestRevision ¶
LatestRevision gets the metadata for the last completed write.
func (*TileDB) NextWriteRevision ¶
NextWriteRevision gets the revision that the next generation of the map should be written at.
func (*TileDB) Versions ¶
Versions gets the log of versions for the given module in the given map revision.
func (*TileDB) WriteRevision ¶
WriteRevision writes the metadata for a completed run into the database. If this method isn't called then the tiles may be written but this revision will be skipped by sensible readers because the provenance information isn't available.