C# 클래스 Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileFormats.DesiredColumnsReader

Input should be a csv list of (CENSUS_TABLE_ID, Name) pairs, where: CENSUS_TABLE_ID: is a foreign key into columnMappings.CENSUS_TABLE_ID Name: is an optional alias
상속: CommaSeparatedValueReader
파일 보기 프로젝트 열기: azavea/acs-alchemist 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
tempTableName string

공개 메소드들

메소드 설명
ImportDesiredVariables ( DbConnection conn, IDataClient client, string filename, string tablename ) : bool

RemoveTemporaryTable ( DbConnection conn, IDataClient client ) : void

보호된 메소드들

메소드 설명
ReadVariablesFile ( string filename, DataTable dt ) : DataTable
SaveTable ( DbConnection conn, IDataClient client, DataTable dt ) : bool
SetupTable ( DbConnection conn, IDataClient client, string tablename ) : DataTable

비공개 메소드들

메소드 설명
AddIntToDict ( Dictionary dict, int line ) : void

Helper function for ImportDesiredVariables

CheckForDuplicates ( DataTable dt ) : string
CheckForMOEDuplicates ( DataTable dt ) : string

Generates an error if a generated column conflicts with another generated column, or a real column.

CheckForMaxColumns ( DataTable dt ) : string

To keep things simple, lets say the max # of columns in a shapefile is 256, so 100 vars * 2 (var + error margin) == 200 columns, we don't need to test for room for the extra "AREA/PERIMETER/CENTROID" mode, unless we change our max from 100 columns. The extra room is to try and avoid running out of memory during an export.

CheckForMinColumns ( DataTable dt ) : string
CheckForReserved ( DataTable dt ) : string
IfSetAddIntToDict ( HashSet set, Dictionary dict, int line ) : void

Helper function for ImportDesiredVariables

메소드 상세

ImportDesiredVariables() 공개 메소드

public ImportDesiredVariables ( DbConnection conn, IDataClient client, string filename, string tablename ) : bool
conn System.Data.Common.DbConnection
client IDataClient
filename string
tablename string
리턴 bool

ReadVariablesFile() 보호된 메소드

protected ReadVariablesFile ( string filename, DataTable dt ) : DataTable
filename string
dt System.Data.DataTable
리턴 System.Data.DataTable

RemoveTemporaryTable() 공개 메소드

public RemoveTemporaryTable ( DbConnection conn, IDataClient client ) : void
conn System.Data.Common.DbConnection
client IDataClient
리턴 void

SaveTable() 보호된 메소드

protected SaveTable ( DbConnection conn, IDataClient client, DataTable dt ) : bool
conn System.Data.Common.DbConnection
client IDataClient
dt System.Data.DataTable
리턴 bool

SetupTable() 보호된 메소드

protected SetupTable ( DbConnection conn, IDataClient client, string tablename ) : DataTable
conn System.Data.Common.DbConnection
client IDataClient
tablename string
리턴 System.Data.DataTable

프로퍼티 상세

tempTableName 공개적으로 프로퍼티

Holds onto the name for the variables table
public string tempTableName
리턴 string