public class FeatureClassInfo extends DcwRecordFile implements TerminatingRunnable, Closable
Modifier and Type | Field and Description |
---|---|
protected char |
featureType
the type of feature this table represents
|
protected DcwThematicIndex |
thematicIndex
the thematic index for the tile_id column
|
static java.lang.String |
TILE_ID_COLUMN_NAME
the name of the column where tiling information lives
|
protected java.lang.String |
tileFileColName
the name of the column with the primitive id
|
protected java.lang.String |
tileFileName
the name of the primitive file: edg, fac, end, cnd
|
byteorder, columnInfo, documentationFileName, filename, ID_COLUMN_NAME, inputFile, MSBFirst, recordLength, tableDescription, tablename, vli
Constructor and Description |
---|
FeatureClassInfo(CoverageTable cthis,
java.lang.String colname,
java.lang.String tablepath,
java.lang.String ftname)
Construct a FeatureClassInfo.
|
FeatureClassInfo(CoverageTable cthis,
java.lang.String colname,
java.lang.String tablepath,
java.lang.String ftname,
java.lang.String tileDirFile,
java.lang.String tileDirFileColName)
Construct a FeatureClassInfo that can be used for feature search
|
Modifier and Type | Method and Description |
---|---|
void |
checkInit()
Check to see if the file has been fully initialized, call run() to do
that if needed.
|
boolean |
close(boolean done)
Implement the Closable interface
|
java.lang.String |
columnNameString() |
void |
findYourself(DcwRecordFile rf)
Probe the DcwRecordFile looking for what column we are in.
|
protected java.lang.String |
getAttribute(DcwColumnInfo dci,
java.lang.Object colObj,
MutableInt type) |
java.lang.String |
getAttribute(int ftid,
int colIndex,
MutableInt type)
Given a row from the primitive table, this function returns a full string
description of the row
|
java.lang.String |
getDescription(java.util.List<java.lang.Object> l,
MutableInt type)
Given a row from the primitive table, this function returns a full string
description of the row
|
int |
getFaccIndex()
Returns the column position of the f_code column.
|
char |
getFeatureType()
Return the type of feature this table is for.
|
DcwThematicIndex |
getThematicIndex()
Returns the thematic index for the tile_id column, if it has been
initialized.
|
int |
getTileIdIndex()
Returns the column position of the tile_id column.
|
int |
getTilePrimitiveIdColIndex()
Returns the column position of the primitive id column.
|
java.lang.String |
getTileThematicFileName()
Returns the file name (no path info) of the thematic index for the
tile_id column.
|
TilingAdapter |
getTilingAdapter()
Returns a TilingAdapter suitable for retrieving primitive ids from
records in this feature table.
|
boolean |
initThematicIndex(java.lang.String path)
Causes the thematic index for the tile_id column to be initialized.
|
void |
run()
Complete the initialization of the FeatureClassInfo.
|
close, finalize, finishInitialization, getColumnCount, getColumnInfo, getColumnName, getDescription, getDocumentationFilename, getRecordCount, getRecordLength, getRow, getRow, getTableFile, getTableName, getTilingAdapter, getTilingAdapter, getTilingAdapter, lookupSchema, lookupSchema, main, parseAllRowsAndPrintSome, parseRow, parseRow, parseSomeRowsAndPrint, printSchema, reopen, seekToRow, whatColumn
protected java.lang.String tileFileName
protected java.lang.String tileFileColName
protected char featureType
public static final java.lang.String TILE_ID_COLUMN_NAME
protected DcwThematicIndex thematicIndex
public FeatureClassInfo(CoverageTable cthis, java.lang.String colname, java.lang.String tablepath, java.lang.String ftname) throws FormatException
cthis
- the CoverageTable to use for vdt lookupscolname
- the column name from the primitive tabletablepath
- the directory of the feature tableftname
- the name of the feature typeFormatException
- some error was encounteredpublic FeatureClassInfo(CoverageTable cthis, java.lang.String colname, java.lang.String tablepath, java.lang.String ftname, java.lang.String tileDirFile, java.lang.String tileDirFileColName) throws FormatException
cthis
- the CoverageTable to use for vdt lookupscolname
- the column name from the primitive tabletablepath
- the directory of the feature tableftname
- the name of the feature typetileDirFile
- the name of the primitive filetileDirFileColName
- the name of the primitive id columnFormatException
- some error was encounteredpublic TilingAdapter getTilingAdapter()
public java.lang.String getTileThematicFileName()
public boolean initThematicIndex(java.lang.String path)
path
- the path to the directory where the index livespublic DcwThematicIndex getThematicIndex()
public int getTileIdIndex()
DcwRecordFile.whatColumn(String)
public int getFaccIndex()
DcwRecordFile.whatColumn(String)
public int getTilePrimitiveIdColIndex()
DcwRecordFile.whatColumn(String)
public char getFeatureType()
CoverageTable.AREA_FEATURETYPE
public void run()
run
in interface java.lang.Runnable
public boolean close(boolean done)
close
in interface Closable
done
- true
indicates that this is a
permanent closure. false
indicates that
the object may be used again later, as this is only an
attempt to temporarily reclaim resourcestrue
indicates the object is still
usable. false
indicates that the object
is now unusable, and any references to it should be
released so the garbage collector can do its job.public void findYourself(DcwRecordFile rf)
rf
- the primitive data table we'll get rows frompublic java.lang.String getDescription(java.util.List<java.lang.Object> l, MutableInt type)
l
- the record list from the primitive tabletype
- the first integral typepublic java.lang.String getAttribute(int ftid, int colIndex, MutableInt type)
ftid
- the record list from the primitive tablecolIndex
- column index for attribute to returntype
- the first integral typepublic void checkInit()
protected java.lang.String getAttribute(DcwColumnInfo dci, java.lang.Object colObj, MutableInt type)
public java.lang.String columnNameString()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details