public class FixedWidthDataContext extends QueryPostprocessDataContext
INFORMATION_SCHEMA_NAME
Constructor and Description |
---|
FixedWidthDataContext(File file,
FixedWidthConfiguration configuration) |
FixedWidthDataContext(File file,
String fileEncoding,
int fixedValueWidth,
int headerLineNumber)
Deprecated.
|
FixedWidthDataContext(Resource resource,
FixedWidthConfiguration configuration) |
FixedWidthDataContext(String filename,
String fileEncoding,
int fixedValueWidth)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FixedWidthConfiguration |
getConfiguration()
Gets the Fixed width value configuration used.
|
File |
getFile()
Deprecated.
use
getResource() instead. |
protected Schema |
getMainSchema() |
protected String |
getMainSchemaName() |
Resource |
getResource()
Gets the resource being read
|
DataSet |
materializeMainSchemaTable(Table table,
Column[] columns,
int maxRows)
Executes a simple one-table query against a table in the main schema of
the subclasses of this class.
|
addConverter, executeCountQuery, executePrimaryKeyLookupQuery, executeQuery, getDefaultSchemaName, getMainSchemaInternal, getSchemaByNameInternal, getSchemaNamesInternal, isMainSchemaTable, materializeFromItem, materializeMainSchemaTable, materializeMainSchemaTable, materializeTable
compileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, parseQuery, query, refreshSchemas
@Deprecated public FixedWidthDataContext(String filename, String fileEncoding, int fixedValueWidth)
FixedWidthDataContext(File, FixedWidthConfiguration)
instead@Deprecated public FixedWidthDataContext(File file, String fileEncoding, int fixedValueWidth, int headerLineNumber)
FixedWidthDataContext(File, FixedWidthConfiguration)
insteadpublic FixedWidthDataContext(File file, FixedWidthConfiguration configuration)
public FixedWidthDataContext(Resource resource, FixedWidthConfiguration configuration)
public FixedWidthConfiguration getConfiguration()
@Deprecated public File getFile()
getResource()
instead.public Resource getResource()
protected Schema getMainSchema() throws MetaModelException
getMainSchema
in class QueryPostprocessDataContext
MetaModelException
protected String getMainSchemaName() throws MetaModelException
getMainSchemaName
in class QueryPostprocessDataContext
MetaModelException
public DataSet materializeMainSchemaTable(Table table, Column[] columns, int maxRows)
QueryPostprocessDataContext
materializeMainSchemaTable
in class QueryPostprocessDataContext
table
- the table to querycolumns
- the columns of the table to querymaxRows
- the maximum amount of rows needed or -1 if all rows are
wanted.Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.