//BuildPattern will build pattern for the given tokens
BuildPattern will build pattern for the given tokens
// BuildPattern will build pattern for the given tokens
func BuildPattern(tokens []FastToken) []Type {
	result := []Type{}
	for _, v := range tokens {
		if len(v.Operators) > 0 {
			result = append(result, Operator)
		} else if len(v.Values) > 0 {
			result = append(result, Value)
		} else if len(v.Times) > 0 {
			result = append(result, Time)
		} else if len(v.Columns) > 0 {
			result = append(result, Column)
		} else if len(v.Tables) > 0 {
			result = append(result, Table)
		} else if len(v.Unknowns) > 0 {
			result = append(result, Unknown)
		}
	}
	return result
}
func BuildPattern ( tokens [ ] FastToken ) [ ] Type { result := [ ] Type { } for _ , v := range tokens { if len ( v . Operators ) > 0 { result = append ( result , Operator ) } else if len ( v . Values ) > 0 { result = append ( result , Value ) } else if len ( v . Times ) > 0 { result = append ( result , Time ) } else if len ( v . Columns ) > 0 { result = append ( result , Column ) } else if len ( v . Tables ) > 0 { result = append ( result , Table ) } else if len ( v . Unknowns ) > 0 { result = append ( result , Unknown ) } } return result }
BuildPattern will build pattern for the given tokens
BuildPattern will build pattern for the given tokens
/*
	 * We will iterate through the tokens and retrive the types
	 */ //We will only take the first node in the token in the following order // Operator // Value // Column // Table // Unknown