Documentation
¶
Overview ¶
Package session owns shared native Lance session lifetimes. The root lance package exposes this type through an alias, and the file package borrows the native handle without exposing it in the public API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheStats ¶
type CacheStats struct {
IndexCacheHits uint64
IndexCacheMisses uint64
IndexCacheEntries uint64
IndexCacheSizeBytes uint64
MetadataCacheHits uint64
MetadataCacheMisses uint64
MetadataCacheEntries uint64
MetadataCacheSizeBytes uint64
}
CacheStats is a snapshot of both session caches.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session owns shared index and metadata caches. Datasets and raw file objects opened with a session keep their cache state after the session is closed.
func New ¶
func New(native *ffi.Session, wrapError func(op, uri string, err error) error, closedError func(op, uri string) error) *Session
New adopts native and uses the supplied error conversion so callers observe the root package error identities.
func (*Session) ApproxNumItems ¶
ApproxNumItems returns the approximate number of cached items.
func (*Session) CacheStats ¶
func (s *Session) CacheStats() (CacheStats, error)
CacheStats returns a snapshot of the session caches.