pub enum IndexPermutation {
Spog,
Sopg,
Psog,
Posg,
Opsg,
Tsg,
}Expand description
Hexastore index key permutation.
Variants§
Spog
Subject-first named-graph index (SPOG).
Sopg
Subject-first object swap (SOPG) — Waratah S-axis.
Psog
Predicate-first subject swap (PSOG) — Waratah P-axis.
Posg
Predicate-first (POSG).
Opsg
Object-first predicate swap (OPSG) — Waratah O-axis.
Tsg
Type→Subject→Graph (TSG) — O-axis, rdf:type quads only (P omitted from key).
Implementations§
Source§impl IndexPermutation
impl IndexPermutation
Sourcepub const fn for_axis(axis: PartitionAxis) -> [Self; 2]
pub const fn for_axis(axis: PartitionAxis) -> [Self; 2]
Index permutations owned by a partition axis.
Sourcepub const fn axis(self) -> PartitionAxis
pub const fn axis(self) -> PartitionAxis
The partition axis that owns this permutation’s CF.
Sourcepub const fn is_stats_canonical(self) -> bool
pub const fn is_stats_canonical(self) -> bool
Canonical stats CF for an axis (for_axis [0]: SPOG / PSOG / OPSG).
Table-properties collectors attach only here so each logical write is counted once (the second index CF would double-count).
Sourcepub fn slot_order(self) -> &'static [QuadSlot]
pub fn slot_order(self) -> &'static [QuadSlot]
Slot order for this permutation (TSG has three slots; others have four).
Trait Implementations§
Source§impl Clone for IndexPermutation
impl Clone for IndexPermutation
Source§fn clone(&self) -> IndexPermutation
fn clone(&self) -> IndexPermutation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexPermutation
impl Debug for IndexPermutation
Source§impl From<IndexPermutation> for PartitionAxis
impl From<IndexPermutation> for PartitionAxis
Source§fn from(permutation: IndexPermutation) -> Self
fn from(permutation: IndexPermutation) -> Self
Converts to this type from the input type.
Source§impl Hash for IndexPermutation
impl Hash for IndexPermutation
Source§impl PartialEq for IndexPermutation
impl PartialEq for IndexPermutation
impl Copy for IndexPermutation
impl Eq for IndexPermutation
impl StructuralPartialEq for IndexPermutation
Auto Trait Implementations§
impl Freeze for IndexPermutation
impl RefUnwindSafe for IndexPermutation
impl Send for IndexPermutation
impl Sync for IndexPermutation
impl Unpin for IndexPermutation
impl UnsafeUnpin for IndexPermutation
impl UnwindSafe for IndexPermutation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more