Package com.maxmind.db
Class Metadata
java.lang.Object
com.maxmind.db.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
(package private) int
(package private) int
(package private) int
(package private) int
toString()
-
Constructor Details
-
Metadata
Metadata(Map metadata)
-
-
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.
-
getNodeByteSize
int getNodeByteSize()- Returns:
- the nodeByteSize
-
getNodeCount
int getNodeCount()- Returns:
- the number of nodes in the search tree.
-
getRecordSize
int getRecordSize()- Returns:
- the number of bits in a record in the search tree. Note that each node consists of two records.
-
getSearchTreeSize
int getSearchTreeSize()- Returns:
- the searchTreeSize
-
toString
-