public final class RecordMap extends Object
RecordMap
is built by invoking one of the newRecordMap
methods. These methods load the
data cache from the record port and index the loaded records by the key fields.
Once loaded, the map can be accessed via an iterator. The iterator can be synchronized with another data source. As the secondary data source is stepped, the record map iterator can then seek to the records in the cache matching the current key fields of the secondary input.
Modifier and Type | Class and Description |
---|---|
static class |
RecordMap.Builder
Factory for creating record maps.
|
class |
RecordMap.RecordMapIterator
An iterator capable of providing access to a subset of records within
the record map's cache.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CAPACITY
Default initial capacity value
|
Modifier and Type | Method and Description |
---|---|
int |
entryCount()
Returns the number of entries in the map
|
RecordTokenType |
getKeyType()
Returns the token type of the keys of the map.
|
RecordTokenType |
getType()
Get the token type of the cached data.
|
RecordValuedIterator |
newEntryIterator()
Create a
RecordValuedIterator over the entries in this map. |
RecordMap.RecordMapIterator |
newIterator(RecordValued value)
Create a
RecordMap.RecordMapIterator that is able to reference key values in the given
record valued data source. |
public static final int DEFAULT_CAPACITY
public RecordTokenType getType()
public RecordTokenType getKeyType()
public RecordMap.RecordMapIterator newIterator(RecordValued value)
RecordMap.RecordMapIterator
that is able to reference key values in the given
record valued data source. As the given data source is stepped, the iterator
must be queried using the seek
method for the source's current key value.value
- record valued data sourcepublic RecordValuedIterator newEntryIterator()
RecordValuedIterator
over the entries in this map.
This iterator will indexed by entry number.public int entryCount()
Copyright © 2024 Actian Corporation. All rights reserved.