|
|
|
@ -424,7 +424,7 @@ impl SessionTx {
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn restore_bottom_value(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
vld: Validity,
|
|
|
|
@ -437,7 +437,7 @@ impl SessionTx {
|
|
|
|
|
decode_value(&res.as_ref()[1..])
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_ea_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
) -> impl Iterator<Item = Result<(EntityId, AttrId, DataValue, Validity, StoreOp)>> {
|
|
|
|
@ -446,7 +446,7 @@ impl SessionTx {
|
|
|
|
|
TripleEntityAttrIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_ea_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
before: Validity,
|
|
|
|
@ -456,7 +456,7 @@ impl SessionTx {
|
|
|
|
|
TripleEntityAttrBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_ae_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
) -> impl Iterator<Item = Result<(AttrId, EntityId, DataValue, Validity, StoreOp)>> {
|
|
|
|
@ -465,7 +465,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrEntityIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_ae_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
before: Validity,
|
|
|
|
@ -475,7 +475,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrEntityBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_av_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
v: &DataValue,
|
|
|
|
|
) -> impl Iterator<Item = Result<(AttrId, DataValue, EntityId, Validity, StoreOp)>> {
|
|
|
|
@ -484,7 +484,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrValueIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_av_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
v: &DataValue,
|
|
|
|
|
before: Validity,
|
|
|
|
@ -494,7 +494,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrValueBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_av_after_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
v: &DataValue,
|
|
|
|
|
after: Validity,
|
|
|
|
@ -504,7 +504,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrValueAfterIter::new(self.tx.iterator(), lower, upper, after)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_vref_a_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
v_eid: EntityId,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
) -> impl Iterator<Item = Result<(EntityId, AttrId, EntityId, Validity, StoreOp)>> {
|
|
|
|
@ -513,7 +513,7 @@ impl SessionTx {
|
|
|
|
|
TripleValueRefAttrIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_vref_a_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
v_eid: EntityId,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
before: Validity,
|
|
|
|
@ -523,7 +523,7 @@ impl SessionTx {
|
|
|
|
|
TripleValueRefAttrBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_e_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
) -> impl Iterator<Item = Result<(EntityId, AttrId, DataValue, Validity, StoreOp)>> {
|
|
|
|
|
let lower = encode_eav_key(eid, AttrId::MIN_PERM, &DataValue::Null, Validity::MAX);
|
|
|
|
@ -531,7 +531,7 @@ impl SessionTx {
|
|
|
|
|
TripleEntityAttrIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_e_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
eid: EntityId,
|
|
|
|
|
before: Validity,
|
|
|
|
|
) -> impl Iterator<Item = Result<(EntityId, AttrId, DataValue)>> {
|
|
|
|
@ -540,7 +540,7 @@ impl SessionTx {
|
|
|
|
|
TripleEntityAttrBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_a_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
) -> impl Iterator<Item = Result<(AttrId, EntityId, DataValue, Validity, StoreOp)>> {
|
|
|
|
|
let lower = encode_aev_key(aid, EntityId::MIN_PERM, &DataValue::Null, Validity::MAX);
|
|
|
|
@ -548,7 +548,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrEntityIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_a_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
aid: AttrId,
|
|
|
|
|
before: Validity,
|
|
|
|
|
) -> impl Iterator<Item = Result<(AttrId, EntityId, DataValue)>> {
|
|
|
|
@ -557,7 +557,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrEntityBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_a_scan_all(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
) -> impl Iterator<Item = Result<(AttrId, EntityId, DataValue, Validity, StoreOp)>> {
|
|
|
|
|
let lower = encode_aev_key(
|
|
|
|
|
AttrId::MIN_PERM,
|
|
|
|
@ -574,7 +574,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrEntityIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_a_before_scan_all(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
before: Validity,
|
|
|
|
|
) -> impl Iterator<Item = Result<(AttrId, EntityId, DataValue)>> {
|
|
|
|
|
let lower = encode_aev_key(
|
|
|
|
@ -592,7 +592,7 @@ impl SessionTx {
|
|
|
|
|
TripleAttrEntityBeforeIter::new(self.tx.iterator(), lower, upper, before)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_vref_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
v_eid: EntityId,
|
|
|
|
|
) -> impl Iterator<Item = Result<(EntityId, AttrId, EntityId, Validity, StoreOp)>> {
|
|
|
|
|
let lower = encode_vae_key(v_eid, AttrId::MIN_PERM, EntityId::MIN_PERM, Validity::MAX);
|
|
|
|
@ -600,7 +600,7 @@ impl SessionTx {
|
|
|
|
|
TripleValueRefAttrIter::new(self.tx.iterator(), lower, upper)
|
|
|
|
|
}
|
|
|
|
|
pub(crate) fn triple_vref_before_scan(
|
|
|
|
|
&mut self,
|
|
|
|
|
&self,
|
|
|
|
|
v_eid: EntityId,
|
|
|
|
|
before: Validity,
|
|
|
|
|
) -> impl Iterator<Item = Result<(EntityId, AttrId, EntityId)>> {
|
|
|
|
|