Package mil.nga.geopackage.tiles.user
Class TileTable
- java.lang.Object
-
- mil.nga.geopackage.user.UserTable<TileColumn>
-
- mil.nga.geopackage.tiles.user.TileTable
-
public class TileTable extends UserTable<TileColumn>
Represents a user tile table- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_ID
Id column name, Requirement 52static String
COLUMN_TILE_COLUMN
Tile column column name, Requirement 54static String
COLUMN_TILE_DATA
Tile ID column name, implied requirementstatic String
COLUMN_TILE_ROW
Tile row column name, Requirement 55static String
COLUMN_ZOOM_LEVEL
Zoom level column name, Requirement 53-
Fields inherited from class mil.nga.geopackage.user.UserTable
DEFAULT_AUTOINCREMENT, DEFAULT_PK_NOT_NULL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TileTable
copy()
Copy the tablestatic List<TileColumn>
createRequiredColumns()
Create the required table columnsstatic List<TileColumn>
createRequiredColumns(boolean autoincrement)
Create the required table columnsstatic List<TileColumn>
createRequiredColumns(int startingIndex)
Create the required table columns, starting at the provided indexstatic List<TileColumn>
createRequiredColumns(int startingIndex, boolean autoincrement)
Create the required table columns, starting at the provided indexTileColumns
createUserColumns(List<TileColumn> columns)
Create user columns for a subset of table columnsString
getDataType()
Get the contents data typeTileColumn
getTileColumnColumn()
Get the tile column columnint
getTileColumnColumnIndex()
Get the tile column column indexTileColumn
getTileDataColumn()
Get the tile data columnint
getTileDataColumnIndex()
Get the tile data column indexTileColumn
getTileRowColumn()
Get the tile row columnint
getTileRowColumnIndex()
Get the tile row column indexTileColumns
getUserColumns()
Get the user columnsTileColumn
getZoomLevelColumn()
Get the zoom level columnint
getZoomLevelColumnIndex()
Get the zoom level column indexprotected void
validateContents(Contents contents)
Validate that the set contents are valid-
Methods inherited from class mil.nga.geopackage.user.UserTable
addColumn, addConstraint, addConstraints, addConstraints, alterColumn, clearConstraints, clearConstraints, columnCount, columnsOfType, createUserColumns, dropColumn, dropColumn, dropColumn, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getColumns, getColumns, getConstraints, getConstraints, getContents, getDataType, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasConstraints, hasConstraints, hasPkColumn, hasSchema, isPkModifiable, isValueValidation, renameColumn, renameColumn, renameColumn, setContents, setPkModifiable, setTableName, setValueValidation
-
-
-
-
Field Detail
-
COLUMN_ID
public static final String COLUMN_ID
Id column name, Requirement 52- See Also:
- Constant Field Values
-
COLUMN_ZOOM_LEVEL
public static final String COLUMN_ZOOM_LEVEL
Zoom level column name, Requirement 53- See Also:
- Constant Field Values
-
COLUMN_TILE_COLUMN
public static final String COLUMN_TILE_COLUMN
Tile column column name, Requirement 54- See Also:
- Constant Field Values
-
COLUMN_TILE_ROW
public static final String COLUMN_TILE_ROW
Tile row column name, Requirement 55- See Also:
- Constant Field Values
-
COLUMN_TILE_DATA
public static final String COLUMN_TILE_DATA
Tile ID column name, implied requirement- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TileTable
public TileTable(String tableName)
Constructor- Parameters:
tableName
- table name- Since:
- 4.0.0
-
TileTable
public TileTable(String tableName, List<TileColumn> columns)
Constructor- Parameters:
tableName
- table namecolumns
- columns
-
TileTable
public TileTable(TileTable tileTable)
Copy Constructor- Parameters:
tileTable
- tile table- Since:
- 3.3.0
-
-
Method Detail
-
copy
public TileTable copy()
Copy the table- Specified by:
copy
in classUserTable<TileColumn>
- Returns:
- copied table
-
getDataType
public String getDataType()
Get the contents data type- Specified by:
getDataType
in classUserTable<TileColumn>
- Returns:
- data type
-
getUserColumns
public TileColumns getUserColumns()
Get the user columns- Overrides:
getUserColumns
in classUserTable<TileColumn>
- Returns:
- user columns
-
createUserColumns
public TileColumns createUserColumns(List<TileColumn> columns)
Create user columns for a subset of table columns- Specified by:
createUserColumns
in classUserTable<TileColumn>
- Parameters:
columns
- columns- Returns:
- user columns
-
getZoomLevelColumnIndex
public int getZoomLevelColumnIndex()
Get the zoom level column index- Returns:
- zoom level index
-
getZoomLevelColumn
public TileColumn getZoomLevelColumn()
Get the zoom level column- Returns:
- tile column
-
getTileColumnColumnIndex
public int getTileColumnColumnIndex()
Get the tile column column index- Returns:
- tile column index
-
getTileColumnColumn
public TileColumn getTileColumnColumn()
Get the tile column column- Returns:
- tile column
-
getTileRowColumnIndex
public int getTileRowColumnIndex()
Get the tile row column index- Returns:
- tile row index
-
getTileRowColumn
public TileColumn getTileRowColumn()
Get the tile row column- Returns:
- tile column
-
getTileDataColumnIndex
public int getTileDataColumnIndex()
Get the tile data column index- Returns:
- tile data index
-
getTileDataColumn
public TileColumn getTileDataColumn()
Get the tile data column- Returns:
- tile column
-
createRequiredColumns
public static List<TileColumn> createRequiredColumns()
Create the required table columns- Returns:
- tile columns
-
createRequiredColumns
public static List<TileColumn> createRequiredColumns(boolean autoincrement)
Create the required table columns- Parameters:
autoincrement
- autoincrement id values- Returns:
- tile columns
- Since:
- 4.0.0
-
createRequiredColumns
public static List<TileColumn> createRequiredColumns(int startingIndex)
Create the required table columns, starting at the provided index- Parameters:
startingIndex
- starting index- Returns:
- tile columns
-
createRequiredColumns
public static List<TileColumn> createRequiredColumns(int startingIndex, boolean autoincrement)
Create the required table columns, starting at the provided index- Parameters:
startingIndex
- starting indexautoincrement
- autoincrement id values- Returns:
- tile columns
- Since:
- 4.0.0
-
validateContents
protected void validateContents(Contents contents)
Validate that the set contents are valid- Overrides:
validateContents
in classUserTable<TileColumn>
- Parameters:
contents
- contents
-
-