Package com._1c.g5.v8.xmdb.impl
Class CompactLink
java.lang.Object
com._1c.g5.v8.xmdb.impl.CompactLink
Compact link library. Compact link - link with 8 bytes:
 - 24 bit - allocated space in pages,
 - 36 bit - start page index
 -  4 bit - flags
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final longstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic longcompactLink(byte[] data) Write data into ling (<=7 byte)static longcompactLink(long startPageIndex, int allocatedPages, boolean extended) Compile compact link fromstatic longstatic final intgetAllocatedPages(long compactLink) static final longgetStartPageIndex(long compactLink) static final booleanisDataInLink(long compactLink) static final booleanisEmptyLink(long compactLink) static final booleanisExtendedInLink(long compactLink) static byte[]unpackLinkData(long compactLink) static ByteBufferunpackLinkData2(long compactLink) 
- 
Field Details- 
EMPTY_LINKpublic static final long EMPTY_LINK- See Also:
 
- 
DATA_IN_LINKpublic static final int DATA_IN_LINK- See Also:
 
- 
EXTENDEDpublic static final int EXTENDED- See Also:
 
- 
LINK_SIZEpublic static final int LINK_SIZE- See Also:
 
 
- 
- 
Constructor Details- 
CompactLinkpublic CompactLink()
 
- 
- 
Method Details- 
getStartPageIndexpublic static final long getStartPageIndex(long compactLink) 
- 
getAllocatedPagespublic static final int getAllocatedPages(long compactLink) 
- 
isDataInLinkpublic static final boolean isDataInLink(long compactLink) 
- 
isExtendedInLinkpublic static final boolean isExtendedInLink(long compactLink) 
- 
isEmptyLinkpublic static final boolean isEmptyLink(long compactLink) 
- 
compactLink
- 
compactLinkpublic static long compactLink(byte[] data) Write data into ling (<=7 byte)- Parameters:
- data-
- Returns:
 
- 
unpackLinkDatapublic static byte[] unpackLinkData(long compactLink) 
- 
unpackLinkData2
- 
compactLinkpublic static long compactLink(long startPageIndex, int allocatedPages, boolean extended) Compile compact link from- Parameters:
- startPageIndex- start page index
- allocatedPages- allocated pages
- requiredBytes- required bytes
- extended- flag - has next record of data block
- Returns:
- clink
 
 
-