DIRECTORY DBCommon USING [Segment, CacheHandle, TID], DBStorage USING [TupleHandle]; DBStorageTuple: CEDAR DEFINITIONS = BEGIN InitSegmentTuples: PUBLIC PROC [segment: DBCommon.Segment]; ConsTupleObject: PROC [tid: DBCommon.TID, cacheHint: DBCommon.CacheHandle _ NIL] RETURNS [DBStorage.TupleHandle]; TIDOfTuple: PROC [x: DBStorage.TupleHandle] RETURNS [DBCommon.TID]; EqualTuple: PROC [x, y: DBStorage.TupleHandle] RETURNS [BOOLEAN]; NullTupleHandle: PROC [] RETURNS [DBStorage.TupleHandle]; InvalidateMatchingTuples: PROC [x: DBStorage.TupleHandle]; IsValidTuple: PROC [x: DBStorage.TupleHandle] RETURNS [valid: BOOL]; InvalidateTuple: PROC [x: DBStorage.TupleHandle]; CallAfterFinishTransaction: PROC [s: DBCommon.Segment]; PrintTupleObject: PROC [t: DBStorage.TupleHandle]; CheckState: PROC [segment: DBCommon.Segment, doPrinting: BOOLEAN _ FALSE]; END.--DBStorageTuple ΄File DBStorageTuple.mesa Copyright c 1985 by Xerox Corporation. All rights reserved. Last edited by MBrown on December 3, 1982 9:14 pm Cattell on November 4, 1983 2:27 am Willie-Sue, February 15, 1985 11:18:15 am PST Widom, September 3, 1985 6:26:15 pm PDT Donahue, May 22, 1986 11:34:09 am PDT This interface defines a collection of operations on DBStorage.TupleObjects that may be used by storage-level modules that don't export DBStorage.TupleObject. Some modules export DBStorage.TupleObject simply to get read access to the TID without the cost of a procedure call, and use these procedures for other accesses. Called from DBStorage.AttachSegment to set up the tuple management for the segment. Returns a handle for a new tuple object with the given tid and cacheHint. Returns the TID of x. Returns TIDOfTuple[x] = TIDOfTuple[y]. Returns a TupleHandle x such that TIDOfTuple[x] = NullTID. No caller should modify the contents of this TupleObject in any way!!! For all tuple handles y on active list such that y.tid = x.tid, makes y.tid=NullTID. IF DBSegment.IsValidTID[x.tid] THEN RETURN [valid: TRUE] ELSE { x.tid _ NullTID; RETURN [valid: FALSE] } x.tid _ NullTID Invalidates (by setting tid = NullTID, cacheHint = NIL) all TupleObjects on the active list that reference segment s. Prints t to debug stream, without a terminating CR. Checks internal state of tuple manager; if doPrinting, also prints contents of tuple manager to debug stream. Κρ˜šœ™Jšœ Οmœ1™<—Jšœ™Jšœ"™"šœ#™#J™-J™'Icode™%—J˜šΟk ˜ Jšœ žœžœ˜+Jšœ žœ˜J˜—šœžœž œž˜)Jšœΐ™ΐJ˜šΟnœžœžœ˜;JšœS™S—J˜šŸœžœžœ$žœ˜Pšžœ˜ JšœI™IJ˜——šŸ œžœžœ žœ˜CJšœ™J˜—šŸ œžœžœžœ˜AJšœ&™&J˜—šŸœžœžœ˜9Jšœ:™:JšœF™FJ˜—šŸœžœ˜:JšœT™TJ˜—šŸ œžœžœ žœ˜DJšœi™iJ˜—šŸœžœ˜1Jšœ™J˜—šŸœžœ˜7Jšœu™uJ˜—šŸœžœ˜2Jšœ3™3J˜—šŸ œžœ)žœžœ˜JJšœn™nJ˜——JšžœΟc˜J˜—…—z