| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final RowDataType. | |
| private final int[] | |
| private final int[] | |
| private final boolean | |
| private final ValueDataType |
| Access | Constructor and Description |
|---|---|
| public | RowDataType(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, int columnCount, boolean storeKeys)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | binarySearch(SearchRow
to search for key, Object to search within (an array of type T) storage, int number of data items in the storage size, int for key position initialGuess)Overrides org. Implements org. Perform binary search for the key within the storage |
| public int | |
| public int | compare(SearchRow
the first key a, SearchRow the second key b)Overrides org. Implements org. Compare two keys. |
| private int | |
| public SearchRow[] | createStorage(int
number of values to hold capacity)Implements org. Create storage object of array type to hold values |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. Implements java. Indicates whether some other object is "equal to" this comparator. |
| public int | |
| public RowDataType. | |
| public int[] | |
| public int | getMemory(SearchRow
the object row)Implements abstract org. Implements org. Calculates the amount of used memory in bytes. |
| public RowFactory | |
| public int | hashCode()
Overrides org. Returns a hash code value for this object. |
| public boolean | |
| public SearchRow | read(ByteBuffer
the source buffer buff)Implements abstract org. Implements org. Read an object. |
| public void | save(WriteBuffer
the target buffer buff, MetaType<Database> the meta type metaType)Implements org. Save the state. |
| public void | |
| public void | write(WriteBuffer
the target buffer buff, SearchRow the value row)Implements abstract org. Implements org. Write an object. |
| private static void |
| columnCount | back to summary |
|---|---|
| private final int columnCount | |
| FACTORY | back to summary |
|---|---|
| private static final RowDataType. | |
| indexes | back to summary |
|---|---|
| private final int[] indexes | |
| sortTypes | back to summary |
|---|---|
| private final int[] sortTypes | |
| storeKeys | back to summary |
|---|---|
| private final boolean storeKeys | |
| valueDataType | back to summary |
|---|---|
| private final ValueDataType valueDataType | |
| RowDataType | back to summary |
|---|---|
| public RowDataType(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, int columnCount, boolean storeKeys) | |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(SearchRow key, Object storage, int size, int initialGuess) Overrides org. Implements org. Doc from org. Perform binary search for the key within the storage | |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(SearchRow key, SearchRow[] keys, int size, int initialGuess) | |
| compare | back to summary |
|---|---|
| public int compare(SearchRow a, SearchRow b) Overrides org. Implements org. Doc from org. Compare two keys. | |
| compareSearchRows | back to summary |
|---|---|
| private int compareSearchRows(SearchRow a, SearchRow b) | |
| createStorage | back to summary |
|---|---|
| public SearchRow[] createStorage(int capacity) Implements org. Doc from org. Create storage object of array type to hold values | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. Implements java. Doc from java. Indicates whether some other object is "equal to"
this comparator. This method must obey the general contract of
Note that it is always safe not to override
| |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() | |
| getFactory | back to summary |
|---|---|
| public RowDataType. Implements org.
| |
| getIndexes | back to summary |
|---|---|
| public int[] getIndexes() | |
| getMemory | back to summary |
|---|---|
| public int getMemory(SearchRow row) Implements abstract org. Implements org. Doc from org. Calculates the amount of used memory in bytes. | |
| getRowFactory | back to summary |
|---|---|
| public RowFactory getRowFactory() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. 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
| |
| isStoreKeys | back to summary |
|---|---|
| public boolean isStoreKeys() | |
| read | back to summary |
|---|---|
| public SearchRow read(ByteBuffer buff) Implements abstract org. Implements org. Doc from org. Read an object.
| |
| save | back to summary |
|---|---|
| public void save(WriteBuffer buff, MetaType<Database> metaType) Implements org. Doc from org. Save the state.
| |
| setRowFactory | back to summary |
|---|---|
| public void setRowFactory(RowFactory rowFactory) | |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, SearchRow row) Implements abstract org. Implements org. Doc from org. Write an object.
| |
| writeIntArray | back to summary |
|---|---|
| private static void writeIntArray(WriteBuffer buff, int[] array) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RowDataType | create(ByteBuffer
the buffer the source buffer buff, MetaType<Database> the type metaDataType, Database the database database)Implements org. Reads the data type. |
| private static int[] |
| Factory | back to summary |
|---|---|
| public Factory() | |
| create | back to summary |
|---|---|
| public RowDataType create(ByteBuffer buff, MetaType<Database> metaDataType, Database database) Implements org. Doc from org. Reads the data type.
| |
| readIntArray | back to summary |
|---|---|
| private static int[] readIntArray(ByteBuffer buff) | |