Documentation
¶
Overview ¶
Package session owns shared native Lance session lifetimes. The root lance package declares the public Session wrapper and forwards to this package; sibling packages resolve that private state through From without adding a public bridge method.
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 From ¶ added in v0.2.0
From returns the implementation behind owner. It reports false when owner is not a public root Session wrapper.
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.