| Modifier and Type | Class and Description |
|---|---|
| private class | LongValueColumnImpl.
Manages a common, shared extra page for long values. |
| private abstract class | LongValueColumnImpl.
Manages secondary page buffers for long value writing. |
| private class | LongValueColumnImpl.
Manages the column usage maps for long values. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | LONG_VALUE_TYPE_MASK
Mask to apply the long length in order to get the flag bits (only the first 2 bits are type flags). |
| private static final byte | LONG_VALUE_TYPE_OTHER_PAGE
Long value (LVAL) type that indicates that the value is stored on another page |
| private static final byte | LONG_VALUE_TYPE_OTHER_PAGES
Long value (LVAL) type that indicates that the value is stored on multiple other pages |
| private static final byte | LONG_VALUE_TYPE_THIS_PAGE
Long value (LVAL) type that indicates that the value is stored on the same page |
| private LongValueColumnImpl. | lvalBufferH
Holds additional info for writing long values |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| pack-priv void | |
| protected final int | |
| public int | getOwnedPageCount()
Overrides io. Returns the number of database pages owned by this column. |
| pack-priv void | postTableLoadInit()
Overrides io. Secondary column initialization after the table is fully loaded. |
| public Object | read(byte[] data, ByteOrder order)
Overrides io. Deserialize a raw byte value for this column into an Object |
| private String | readLongStringValue(byte[]
Column value that points to an LVAL record lvalDefinition)Returns: The LVAL data |
| protected byte[] | Returns: The LVAL dataColumn value that points to an LVAL record lvalDefinition)Returns the LVAL data. |
| pack-priv void | setUsageMaps(UsageMap ownedPages, UsageMap freeSpacePages)
Overrides io. Sets the usage maps for this column. |
| protected ByteBuffer | Returns: A buffer containing the LVAL definition and (possibly) the column value (unless written to other pages)Value of the LVAL column value, int remainingRowLength)Write an LVAL column into a ByteBuffer inline if it fits, otherwise in other data page(s). |
| protected ByteBuffer | writeRealData(Object obj, int remainingRowLength, ByteOrder order)
Overrides io.
|
| LONG_VALUE_TYPE_MASK | back to summary |
|---|---|
| private static final int LONG_VALUE_TYPE_MASK Mask to apply the long length in order to get the flag bits (only the first 2 bits are type flags). | |
| LONG_VALUE_TYPE_OTHER_PAGE | back to summary |
|---|---|
| private static final byte LONG_VALUE_TYPE_OTHER_PAGE Long value (LVAL) type that indicates that the value is stored on another page | |
| LONG_VALUE_TYPE_OTHER_PAGES | back to summary |
|---|---|
| private static final byte LONG_VALUE_TYPE_OTHER_PAGES Long value (LVAL) type that indicates that the value is stored on multiple other pages | |
| LONG_VALUE_TYPE_THIS_PAGE | back to summary |
|---|---|
| private static final byte LONG_VALUE_TYPE_THIS_PAGE Long value (LVAL) type that indicates that the value is stored on the same page | |
| lvalBufferH | back to summary |
|---|---|
| private LongValueColumnImpl. Holds additional info for writing long values | |
| maxLenInUnits | back to summary |
|---|---|
| private int maxLenInUnits | |
| LongValueColumnImpl | back to summary |
|---|---|
| pack-priv LongValueColumnImpl(ColumnImpl. | |
| calcMaxLengthInUnits | back to summary |
|---|---|
| protected int calcMaxLengthInUnits() | |
| collectUsageMapPages | back to summary |
|---|---|
| pack-priv void collectUsageMapPages(Collection<Integer> pages) Overrides io.
| |
| getMaxLengthInUnits | back to summary |
|---|---|
| protected final int getMaxLengthInUnits() | |
| getOwnedPageCount | back to summary |
|---|---|
| public int getOwnedPageCount() Overrides io. Doc from io. Returns the number of database pages owned by this column.
| |
| postTableLoadInit | back to summary |
|---|---|
| pack-priv void postTableLoadInit() throws IOException Overrides io. Doc from io. Secondary column initialization after the table is fully loaded.
| |
| read | back to summary |
|---|---|
| public Object read(byte[] data, ByteOrder order) throws IOException Overrides io. Doc from io. Deserialize a raw byte value for this column into an Object
| |
| readLongStringValue | back to summary |
|---|---|
private String readLongStringValue(byte[] lvalDefinition) throws IOException
| |
| readLongValue | back to summary |
|---|---|
| protected byte[] readLongValue(byte[] lvalDefinition) throws IOException Returns the LVAL data.
| |
| setUsageMaps | back to summary |
|---|---|
| pack-priv void setUsageMaps(UsageMap ownedPages, UsageMap freeSpacePages) Overrides io. Doc from io. Sets the usage maps for this column.
| |
| writeLongValue | back to summary |
|---|---|
| protected ByteBuffer writeLongValue(byte[] value, int remainingRowLength) throws IOException Write an LVAL column into a ByteBuffer inline if it fits, otherwise in other data page(s).
| |
| writeRealData | back to summary |
|---|---|
| protected ByteBuffer writeRealData(Object obj, int remainingRowLength, ByteOrder order) throws IOException Overrides io.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected TempPageHolder |
| LegacyLongValueBufferHolder | back to summary |
|---|---|
| private LegacyLongValueBufferHolder() | |
| getBufferHolder | back to summary |
|---|---|
| protected TempPageHolder getBufferHolder() Implements abstract io.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected ByteBuffer | |
| protected abstract TempPageHolder | |
| public ByteBuffer | getLongValuePage(int dataLength)
Returns a long value data page with space for data of the given length. |
| public int | |
| public int | |
| private void |
| LongValueBufferHolder | back to summary |
|---|---|
| private LongValueBufferHolder() | |
| clear | back to summary |
|---|---|
| public void clear() throws IOException Discards the current the current long value data page. | |
| collectUsageMapPages | back to summary |
|---|---|
| public void collectUsageMapPages(Collection<Integer> pages) | |
| findNewPage | back to summary |
|---|---|
| protected ByteBuffer findNewPage(int dataLength) throws IOException | |
| getBufferHolder | back to summary |
|---|---|
| protected abstract TempPageHolder getBufferHolder() | |
| getLongValuePage | back to summary |
|---|---|
| public ByteBuffer getLongValuePage(int dataLength) throws IOException Returns a long value data page with space for data of the given length. | |
| getOwnedPageCount | back to summary |
|---|---|
| public int getOwnedPageCount() | |
| getPageNumber | back to summary |
|---|---|
| public int getPageNumber() Returns the page number of the current long value data page. | |
| writeLongValueHeader | back to summary |
|---|---|
| private void writeLongValueHeader(ByteBuffer lvalPage) Writes the header info for a long value page. | |
| Modifier and Type | Field and Description |
|---|---|
| private final UsageMap | freeSpacePages
Usage map of pages that this column owns with free space on them |
| private final TempPageHolder | longValueBufferH
page buffer used to write "long value" data |
| private final UsageMap | ownedPages
Usage map of pages that this column owns |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides io. Discards the current the current long value data page. |
| public void | |
| protected ByteBuffer | findNewPage(int dataLength)
Overrides io.
|
| protected TempPageHolder | |
| public int |
| freeSpacePages | back to summary |
|---|---|
| private final UsageMap freeSpacePages Usage map of pages that this column owns with free space on them | |
| longValueBufferH | back to summary |
|---|---|
| private final TempPageHolder longValueBufferH page buffer used to write "long value" data | |
| ownedPages | back to summary |
|---|---|
| private final UsageMap ownedPages Usage map of pages that this column owns | |
| UmapLongValueBufferHolder | back to summary |
|---|---|
| private UmapLongValueBufferHolder(UsageMap ownedPages, UsageMap freeSpacePages) | |
| clear | back to summary |
|---|---|
| public void clear() throws IOException Overrides io. Doc from io. Discards the current the current long value data page.
| |
| collectUsageMapPages | back to summary |
|---|---|
| public void collectUsageMapPages(Collection<Integer> pages) Overrides io.
| |
| findNewPage | back to summary |
|---|---|
| protected ByteBuffer findNewPage(int dataLength) throws IOException Overrides io.
| |
| getBufferHolder | back to summary |
|---|---|
| protected TempPageHolder getBufferHolder() Implements abstract io.
| |
| getOwnedPageCount | back to summary |
|---|---|
| public int getOwnedPageCount() Overrides io.
| |