Package com._1c.g5.v8.internal.derived
Class DerivedDataInfo
java.lang.Object
com._1c.g5.v8.internal.derived.DerivedDataInfo
In-memory descriptor of the derived data associated with the object.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSegmentContextData
(String segmentId, long timestamp, byte[] serializedContext) Adds a context data for a given segment of a data infovoid
confirmComputedSegment
(String segmentId) Confirms a segment computationGets identifiers of DD segments which being registered for this object and not yet computed.Gets an object identifiergetSegmentContextData
(String segmentId) Gets segment context data, if anyGets segments of this infoboolean
Checks if all DD segments of the object are computed.boolean
isBroken()
Checks if the data wasn't computed and must be re-build in case of data change and/or restartboolean
isComputed
(String segmentd) Checks if a given DD segment is computed a given object.boolean
isComputed
(Collection<String> segmentIds) Checks if given segments are computedvoid
Marks this derived data info as brokenvoid
Marks this derived data info as not brokentoString()
-
Constructor Details
-
DerivedDataInfo
Constructs an instance- Parameters:
objectId
- The object identifier. May not benull
-
-
Method Details
-
addSegmentContextData
Adds a context data for a given segment of a data info- Parameters:
segmentId
- The identifier of a segment. May not benull
timestamp
- The timestamp of a data. May not be 0 or negativeserializedContext
- The serialized context data. May not benull
-
confirmComputedSegment
Confirms a segment computation- Parameters:
segmentId
- The segment to confirm. May not benull
-
getNotComputedSegmentIds
Gets identifiers of DD segments which being registered for this object and not yet computed.- Returns:
- The collection of not computed DD segment identifiers.
-
getObjectId
Gets an object identifier- Returns:
- The identifier of matching object. May not be
null
-
getSegmentContextData
Gets segment context data, if any- Parameters:
segmentId
- The identifier of a segment. May not benull
- Returns:
- The segment context data if any. May be
null
-
getSegments
Gets segments of this info- Returns:
- The map of segment data being mapped to identifiers of segments. May not be
null
-
isAllComputed
public boolean isAllComputed()Checks if all DD segments of the object are computed.- Returns:
- True if all DD segments are computed; false otherwise.
-
isBroken
public boolean isBroken()Checks if the data wasn't computed and must be re-build in case of data change and/or restart- Returns:
- True if the data is broken
-
isComputed
Checks if given segments are computed- Parameters:
segmentIds
- Identifiers of target segments. May not benull
- Returns:
- True if all provided segments are computed
-
isComputed
Checks if a given DD segment is computed a given object.- Parameters:
segmentd
- The segment identifier. May not benull
- Returns:
- True if the segment is computed
-
markAsBroken
public void markAsBroken()Marks this derived data info as broken -
markAsNotBroken
public void markAsNotBroken()Marks this derived data info as not broken -
toString
-