Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector handles data format detection tasks.
func NewDetector ¶
NewDetector starts a new background processor and returns the newly created Detector instance.
type FieldInfo ¶
type FieldInfo struct { // Header or name of the Field if present Header string // Type of the Field (floats, integers, prefixed integers, text, etc) Type string // Order of the field in the record. Order int }
FieldInfo describes a Field in a Record.
type Result ¶
type Result struct { // Token for retrieving result metadata. Token string `json:"token"` // InputFilename is the source filename (relative to upload directory). InputFilename string `json:"input_file"` // DetectedSources reports, for each field of the input, the detected // data Sources, percentage hit ratio, and other stats. DetectedSources map[string]map[string]*sources.SourceHit `json:"detected"` // Fields reports the detected data types of each field. Fields []*FieldInfo `json:"fields"` // Maps reports the possible direct translation destinations for each // data source that was possibly detected in the input. Maps map[string][]string `json:"maps"` // Sources is the list of sources used for detection. Sources map[string]*sources.Source `json:"sources"` }
Result encodes the results of a detection task on a data file.
Click to show internal directories.
Click to hide internal directories.