Package table
Class DomainsFinder
java.lang.Object
table.DomainsFinder
- All Implemented Interfaces:
util.Executable
Class for table column domain determination.
- Since:
- 2007.05.08
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Abort the execution.void
exec()
Execute the domain finder.void
find()
Execute the domain finder.getTable()
Get the table used for determining the domains.void
Set the format characters.void
Set the table input file.void
setInput
(util.TableReader reader) Set the table reader and read mode.void
setMode
(int mode) Set the read mode.void
setOps
(int ops) Set additional operations.void
Set the output file writer.void
Set the output file.
-
Field Details
-
AUTOTYPE
public static final int AUTOTYPEoperation: determine types automatically- See Also:
-
SORTVALS
public static final int SORTVALSoperation: sort nominal attribute values- See Also:
-
-
Constructor Details
-
DomainsFinder
public DomainsFinder()Create a table domain finder.- Since:
- 2007.05.08 (Christian Borgelt)
-
-
Method Details
-
setInput
public void setInput(util.TableReader reader) Set the table reader and read mode.- Parameters:
reader
- the table reader- Since:
- 2007.05.17 (Christian Borgelt)
-
setInput
Set the table input file.- Parameters:
fn_tab
- the name of the data table file- Since:
- 2007.07.26 (Christian Borgelt)
-
setChars
Set the format characters.- Parameters:
recseps
- the record separatorsfldseps
- the field separatorsblanks
- the blank charactersnullchs
- the null value characterscomment
- the comment characters- Since:
- 2007.07.26 (Christian Borgelt)
-
setMode
public void setMode(int mode) Set the read mode.- Parameters:
mode
- the read mode- Since:
- 2007.07.26 (Christian Borgelt)
-
setOps
public void setOps(int ops) Set additional operations.- Parameters:
ops
- the additional operations- Since:
- 2007.07.25 (Christian Borgelt)
-
setOutput
Set the output file writer.- Parameters:
writer
- the output file writer- Since:
- 2007.05.17 (Christian Borgelt)
-
setOutput
Set the output file.- Parameters:
fn_dom
- the name of the output file- Since:
- 2007.05.17 (Christian Borgelt)
-
getTable
Get the table used for determining the domains.- Returns:
- the table used for determining the domains
- Since:
- 2007.05.08 (Christian Borgelt)
-
find
Execute the domain finder.- Throws:
IOException
- if a read error occurs- Since:
- 2007.05.08 (Christian Borgelt)
-
exec
Execute the domain finder.- Specified by:
exec
in interfaceutil.Executable
- Throws:
Exception
- if a execution error occurs- Since:
- 2007.05.16 (Christian Borgelt)
-
abort
public void abort()Abort the execution.- Specified by:
abort
in interfaceutil.Executable
- Since:
- 2007.05.08 (Christian Borgelt)
-