Class NameMapImpl
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.NameMapImpl
-
- All Implemented Interfaces:
NameMap,Iterable<NameMap.Record>
- Direct Known Subclasses:
QueryNameMapImpl,TableNameMapImpl
public abstract class NameMapImpl extends Object implements NameMap
Reads and writes a name map, which tables and queries share. The encoding isThe name is null terminated. The trailing zero is left off the last record, and there is no record count, so a reader stops at the end of the data. The payload is a date and 8 bytes of writer state for a table record, the table guid for a column or a reference record, and the writer tag for the end record. A query which tracks no names, such as a union or a pass-through query, has the magic alone.NameMap := magic [u32 reserved record*] record := guid own, u32 type, byte[16] payload, utf16 name, u32 zero
- Author:
- James Ahlborn
- Usage:
- Advanced: This class is for advanced/internal use.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.NameMap
NameMap.Mismatch, NameMap.MismatchType, NameMap.Record, NameMap.RecordType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NameMap.Record>getColumnRecords()NameMap.RecordgetRecord(String guid)List<NameMap.Record>getTableRecords()IntegergetWriterTag()Iterator<NameMap.Record>iterator()byte[]toBytes()StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.healthmarketscience.jackcess.NameMap
findMismatches, stream
-
-
-
-
Method Detail
-
iterator
public Iterator<NameMap.Record> iterator()
- Specified by:
iteratorin interfaceIterable<NameMap.Record>
-
getTableRecords
public List<NameMap.Record> getTableRecords()
- Specified by:
getTableRecordsin interfaceNameMap- Returns:
- the table records, in the order of the name map
-
getColumnRecords
public List<NameMap.Record> getColumnRecords()
- Specified by:
getColumnRecordsin interfaceNameMap- Returns:
- the column records, in the order of the name map
-
getRecord
public NameMap.Record getRecord(String guid)
-
getWriterTag
public Integer getWriterTag()
- Specified by:
getWriterTagin interfaceNameMap- Returns:
- the tag in the end record, which is a value of the ms access
build which wrote the name map, or
nullif the name map has no end record
-
toBytes
public byte[] toBytes()
- Returns:
- the name map encoded as it is stored in the property
-
-