Package com.apple.foundationdb.record
Class PlanSerializationContext
java.lang.Object
com.apple.foundationdb.record.PlanSerializationContext
Context class defining the state of serialization/deserialization currently in-flight. An object of this class is
stateful and mutable and not to be considered thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionPlanSerializationContext
(PlanSerializationRegistry registry, PlanHashable.PlanHashMode mode, IdentityBiMap<RecordQueryPlan, Integer> knownPlansMap, com.google.common.collect.BiMap<com.google.common.base.Equivalence.Wrapper<Type.Record>, Integer> knownRecordTypesMap) -
Method Summary
Modifier and TypeMethodDescriptionfromPlanReferenceProto
(com.apple.foundationdb.record.planprotos.PPlanReference planReferenceProto) getMode()
lookupRecordTypeForReferenceId
(int referenceId) static PlanSerializationContext
static PlanSerializationContext
newForCurrentMode
(PlanSerializationRegistry registry) int
registerReferenceIdForRecordType
(Type.Record recordType) int
registerReferenceIdForRecordType
(Type.Record recordType, int referenceId) com.apple.foundationdb.record.planprotos.PPlanReference
toPlanReferenceProto
(RecordQueryPlan recordQueryPlan)
-
Constructor Details
-
PlanSerializationContext
public PlanSerializationContext(@Nonnull PlanSerializationRegistry registry, @Nonnull PlanHashable.PlanHashMode mode) -
PlanSerializationContext
public PlanSerializationContext(@Nonnull PlanSerializationRegistry registry, @Nonnull PlanHashable.PlanHashMode mode, @Nonnull IdentityBiMap<RecordQueryPlan, Integer> knownPlansMap, @Nonnull com.google.common.collect.BiMap<com.google.common.base.Equivalence.Wrapper<Type.Record>, Integer> knownRecordTypesMap)
-
-
Method Details
-
getRegistry
-
getMode
-
newForCurrentMode
-
newForCurrentMode
@Nonnull public static PlanSerializationContext newForCurrentMode(@Nonnull PlanSerializationRegistry registry) -
toPlanReferenceProto
@Nonnull public com.apple.foundationdb.record.planprotos.PPlanReference toPlanReferenceProto(@Nonnull RecordQueryPlan recordQueryPlan) -
fromPlanReferenceProto
@Nonnull public RecordQueryPlan fromPlanReferenceProto(@Nonnull com.apple.foundationdb.record.planprotos.PPlanReference planReferenceProto) -
registerReferenceIdForRecordType
-
registerReferenceIdForRecordType
-
lookupReferenceIdForRecordType
-
lookupRecordTypeForReferenceId
-