| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | PropertyMaps.
Utility class for reading/writing property blocks. |
| private static class | PropertyMaps.
The name and block type which together identify a PropertyMap within one group. |
| pack-priv static interface | PropertyMaps.
Utility interface for the object which owns the PropertyMaps |
| Modifier and Type | Field and Description |
|---|---|
| private static final short | |
| public static final String | DEFAULT_NAME
the name of the "default" properties for a PropertyMaps instance |
| private static final short | |
| private final PropertyMaps. | |
| private static final short | |
| private final Map | maps
maps the PropertyMap name (case-insensitive) and block type to the PropertyMap instance. |
| private final int | |
| private final PropertyMaps. | |
| private static final short | |
| private final RowIdImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PropertyMapImpl | |
| private PropertyMapImpl | |
| public PropertyMapImpl | Returns: the unnamed "default" PropertyMap in this group, creating if necessary.Returns the unnamed "default" PropertyMap in this group, creating if necessary. |
| public PropertyMapImpl | Returns: the PropertyMap for the index with the given name in this group, creating if necessary. An index has its own block, and access names an index after its column by default, so this is a separate map from the oneget returns for the same name.Returns the PropertyMap for the index with the given name in this group, creating if necessary. |
| public int | |
| public int | |
| public static String | |
| public boolean | |
| public Iterator | |
| public void | |
| public String | |
| public byte[] |
| COLUMN_PROPERTY_VALUE_LIST | back to summary |
|---|---|
| private static final short COLUMN_PROPERTY_VALUE_LIST | |
| DEFAULT_NAME | back to summary |
|---|---|
| public static final String DEFAULT_NAME the name of the "default" properties for a PropertyMaps instance | |
| DEFAULT_PROPERTY_VALUE_LIST | back to summary |
|---|---|
| private static final short DEFAULT_PROPERTY_VALUE_LIST | |
| handler | back to summary |
|---|---|
| private final PropertyMaps. | |
| INDEX_PROPERTY_VALUE_LIST | back to summary |
|---|---|
| private static final short INDEX_PROPERTY_VALUE_LIST | |
| maps | back to summary |
|---|---|
| private final Map<PropertyMaps. maps the PropertyMap name (case-insensitive) and block type to the PropertyMap instance. The type belongs in the key because a block of type 0x02 holds the properties of an index, and access names an index after its column by default, so a table can hold a column block and an index block with the same name | |
| objectId | back to summary |
|---|---|
| private final int objectId | |
| owner | back to summary |
|---|---|
| private final PropertyMaps. | |
| PROPERTY_NAME_LIST | back to summary |
|---|---|
| private static final short PROPERTY_NAME_LIST | |
| rowId | back to summary |
|---|---|
| private final RowIdImpl rowId | |
| PropertyMaps | back to summary |
|---|---|
| public PropertyMaps(int objectId, RowIdImpl rowId, PropertyMaps. | |
| get | back to summary |
|---|---|
| public PropertyMapImpl get(String name) Returns the PropertyMap with the given name in this group, creating if necessary.
| |
| get | back to summary |
|---|---|
private PropertyMapImpl get(String name, short type)
| |
| getDefault | back to summary |
|---|---|
| public PropertyMapImpl getDefault() Returns the unnamed "default" PropertyMap in this group, creating if necessary.
| |
| getIndex | back to summary |
|---|---|
| public PropertyMapImpl getIndex(String name) Returns the PropertyMap for the index with the given name in this group, creating if necessary. An index has its
own block, and access names an index after its column by default, so this is a separate map from the one
| |
| getObjectId | back to summary |
|---|---|
| public int getObjectId() | |
| getSize | back to summary |
|---|---|
| public int getSize() | |
| getTrimmedStringProperty | back to summary |
|---|---|
| public static String getTrimmedStringProperty(PropertyMap props, String propName) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| save | back to summary |
|---|---|
| public void save() throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| write | back to summary |
|---|---|
| public byte[] write() throws IOException | |
| Modifier and Type | Class and Description |
|---|---|
| private class | PropertyMaps.
Normal boolean columns do not write into the actual row data, so we need to do a little extra work. |
| private class | PropertyMaps.
Column adapted to work w/out a Table. |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | columns
cache of PropColumns used to read/write property values |
| private final DatabaseImpl | database
the current database |
| private static final byte[] | NO_PROPS
read() treats a null byte[] and an empty one identically, so write() can safely use this for "nothing to write". |
| private final ColumnImpl | propCol
the system table "property" column |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private PropertyMaps. | |
| private static boolean | |
| public PropertyMaps | Returns: a PropertyMaps instance decoded from the given bytes (always returns non-null result).Returns a PropertyMaps instance decoded from the given bytes (always returns non- |
| private List | |
| private PropertyMapImpl | readPropertyValues(ByteBuffer bbBlock, List<String> propNames, short blockType, PropertyMaps maps)
Returns: the PropertyMap created from the values parsed from the given data chunk combined with the given property names |
| private String | |
| public void | |
| public byte[] | Returns: a byte[] encoded from the given PropertyMaps instanceReturns a byte[] encoded from the given PropertyMaps instance. |
| private void | |
| private void | |
| private void | |
| private void |
| columns | back to summary |
|---|---|
| private final Map<DataType, PropertyMaps. cache of PropColumns used to read/write property values | |
| database | back to summary |
|---|---|
| private final DatabaseImpl database the current database | |
| NO_PROPS | back to summary |
|---|---|
| private static final byte[] NO_PROPS read() treats a null byte[] and an empty one identically, so write() can safely use this for "nothing to write". | |
| propCol | back to summary |
|---|---|
| private final ColumnImpl propCol the system table "property" column | |
| Handler | back to summary |
|---|---|
| pack-priv Handler(DatabaseImpl database) | |
| getColumn | back to summary |
|---|---|
| private PropertyMaps. Gets a PropColumn capable of reading/writing a property of the given DataType | |
| isPseudoGuidColumn | back to summary |
|---|---|
| private static boolean isPseudoGuidColumn(DataType dataType, String propName, int dataSize, Object value) throws IOException | |
| read | back to summary |
|---|---|
| public PropertyMaps read(byte[] propBytes, int objectId, RowIdImpl rowId, PropertyMaps. Returns a PropertyMaps instance decoded from the given bytes (always returns non-
| |
| readPropertyNames | back to summary |
|---|---|
| private List | |
| readPropertyValues | back to summary |
|---|---|
private PropertyMapImpl readPropertyValues(ByteBuffer bbBlock, List<String> propNames, short blockType, PropertyMaps maps) throws IOException
| |
| readPropName | back to summary |
|---|---|
| private String readPropName(ByteBuffer buffer) Reads a property name from the given data block | |
| save | back to summary |
|---|---|
| public void save(PropertyMaps maps) throws IOException Saves PropertyMaps instance to the db. | |
| write | back to summary |
|---|---|
| public byte[] write(PropertyMaps maps) throws IOException Returns a byte[] encoded from the given PropertyMaps instance.
| |
| writeBlock | back to summary |
|---|---|
| private void writeBlock(PropertyMapImpl propMap, Set<String> propNames, short blockType, ByteArrayBuilder bab) throws IOException | |
| writePropertyNames | back to summary |
|---|---|
| private void writePropertyNames(Set<String> propNames, ByteArrayBuilder bab) | |
| writePropertyValues | back to summary |
|---|---|
| private void writePropertyValues(PropertyMapImpl propMap, Set<String> propNames, ByteArrayBuilder bab) throws IOException | |
| writePropName | back to summary |
|---|---|
| private void writePropName(String propName, ByteArrayBuilder bab) Writes a property name to the given data block | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | read(byte[] data)
Overrides io. Deserialize a raw byte value for this column into an Object |
| public ByteBuffer | write(Object obj, int remainingRowLength)
Overrides io. Serialize an Object into a raw byte value for this column in little endian order |
| BooleanPropColumn | back to summary |
|---|---|
| private BooleanPropColumn() | |
| read | back to summary |
|---|---|
| public Object read(byte[] data) Overrides io. Doc from io. Deserialize a raw byte value for this column into an Object
| |
| write | back to summary |
|---|---|
| public ByteBuffer write(Object obj, int remainingRowLength) Overrides io. Doc from io. Serialize an Object into a raw byte value for this column in little endian order
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DatabaseImpl | getDatabase()
Overrides io. Implements io. Returns the database to which this column's table belongs. |
| PropColumn | back to summary |
|---|---|
| private PropColumn(DataType type) | |
| getDatabase | back to summary |
|---|---|
| public DatabaseImpl getDatabase() Overrides io. Implements io. Doc from io. Returns the database to which this column's table belongs.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final short |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| lookupName | back to summary |
|---|---|
| private final String lookupName | |
| type | back to summary |
|---|---|
| private final short type | |
| Key | back to summary |
|---|---|
| private Key(String name, short type) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| propertiesUpdated | back to summary |
|---|---|
| public void propertiesUpdated() throws IOException Invoked when new properties are saved. | |