Package generalDatabase
Class CreateMapInfo
java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
generalDatabase.CreateMapInfo
simple class for passing information about data map making
from swing worker to dialog.
-
Field Summary
FieldsFields inherited from class pamViewFX.pamTask.PamTaskUpdate
STATUS_ANALYSING_FILES, STATUS_COUNTING_FILES, STATUS_DESERIALIZING, STATUS_DONE, STATUS_DONE_ERROR, STATUS_IDLE, STATUS_SERIALIZING, STATUS_SORTING -
Constructor Summary
ConstructorsConstructorDescriptionCreateMapInfo(int status) CreateMapInfo(int numBlocks, String databaseName) CreateMapInfo(int tableNum, PamDataBlock dataBlock, String tableName) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the load thread.intdoubleGet the progress of the load thread.intMethods inherited from class pamViewFX.pamTask.PamTaskUpdate
getProgress2, getProgressString, getProgressString2, getStatus, isDualProgressUpdate, setDualProgressUpdate, setStatus
-
Field Details
-
BLOCK_COUNT
public static final int BLOCK_COUNT- See Also:
-
START_TABLE
public static final int START_TABLE- See Also:
-
-
Constructor Details
-
CreateMapInfo
-
CreateMapInfo
-
CreateMapInfo
public CreateMapInfo(int status)
-
-
Method Details
-
getNumBlocks
public int getNumBlocks()- Returns:
- the numBlocks
-
getDatabaseName
- Returns:
- the databaseName
-
getTableNum
public int getTableNum()- Returns:
- the tableNum
-
getTableName
- Returns:
- the tableName
-
getDataBlock
- Returns:
- the dataBlock
-
getName
Description copied from class:PamTaskUpdateGet the name of the load thread. Note the name is also the unique identifier for the running thread so cannot be the same between two different threads.- Specified by:
getNamein classPamTaskUpdate- Returns:
- the name of the thread.
-
getProgress
public double getProgress()Description copied from class:PamTaskUpdateGet the progress of the load thread. This is a value between 0 and 1 were 1 is equivalent to 100% or the thread having finished.Note that ProgressIndicator.INTERMEDIATE can be used as an update value to set progress to intermediate.
- Specified by:
getProgressin classPamTaskUpdate- Returns:
- the progress of the thread, between 0 and 1.
-