java.lang.Object
com.maxmind.db.Metadata
Metadata
holds data associated with the database itself.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Metadata
public Metadata(int binaryFormatMajorVersion, int binaryFormatMinorVersion, BigInteger buildEpoch, String databaseType, List<String> languages, Map<String, String> description, int ipVersion, long nodeCount, int recordSize) Constructs aMetadata
object.- Parameters:
binaryFormatMajorVersion
- The major version number for the database's binary format.binaryFormatMinorVersion
- The minor version number for the database's binary format.buildEpoch
- The date of the database build.databaseType
- A string that indicates the structure of each data record associated with an IP address. The actual definition of these structures is left up to the database creator.languages
- List of languages supported by the database.description
- Map from language code to description in that language.ipVersion
- Whether the database contains IPv4 or IPv6 address data. The only possible values are 4 and 6.nodeCount
- The number of nodes in the search tree.recordSize
- The number of bits in a record in the search tree. Note that each node consists of two records.
-
-
Method Details
-
getBinaryFormatMajorVersion
public int getBinaryFormatMajorVersion()- Returns:
- the major version number for the database's binary format.
-
getBinaryFormatMinorVersion
public int getBinaryFormatMinorVersion()- Returns:
- the minor version number for the database's binary format.
-
getBuildDate
- Returns:
- the date of the database build.
-
getDatabaseType
- Returns:
- a string that indicates the structure of each data record associated with an IP address. The actual definition of these structures is left up to the database creator.
-
getDescription
- Returns:
- map from language code to description in that language.
-
getIpVersion
public int getIpVersion()- Returns:
- whether the database contains IPv4 or IPv6 address data. The only possible values are 4 and 6.
-
getLanguages
- Returns:
- list of languages supported by the database.
-
toString
-