// NewValueIterator creates a new generic ValueIterator.
NewValueIterator creates a new generic ValueIterator.
// NewValueIterator creates a new generic ValueIterator .
func NewValueIterator(column *array.Column) ValueIterator {
	field := column.Field()
	switch field.Type.(type) {
	case *arrow.BooleanType:
		return NewBooleanValueIterator(column)
	case *arrow.Date32Type:
		return NewDate32ValueIterator(column)
	case *arrow.Date64Type:
		return NewDate64ValueIterator(column)
	case *arrow.DayTimeIntervalType:
		return NewDayTimeIntervalValueIterator(column)
	case *arrow.Decimal128Type:
		return NewDecimal128ValueIterator(column)
	case *arrow.DurationType:
		return NewDurationValueIterator(column)
	case *arrow.Float16Type:
		return NewFloat16ValueIterator(column)
	case *arrow.Float32Type:
		return NewFloat32ValueIterator(column)
	case *arrow.Float64Type:
		return NewFloat64ValueIterator(column)
	case *arrow.Int16Type:
		return NewInt16ValueIterator(column)
	case *arrow.Int32Type:
		return NewInt32ValueIterator(column)
	case *arrow.Int64Type:
		return NewInt64ValueIterator(column)
	case *arrow.Int8Type:
		return NewInt8ValueIterator(column)
	case *arrow.MonthIntervalType:
		return NewMonthIntervalValueIterator(column)
	case *arrow.StringType:
		return NewStringValueIterator(column)
	case *arrow.Time32Type:
		return NewTime32ValueIterator(column)
	case *arrow.Time64Type:
		return NewTime64ValueIterator(column)
	case *arrow.TimestampType:
		return NewTimestampValueIterator(column)
	case *arrow.Uint16Type:
		return NewUint16ValueIterator(column)
	case *arrow.Uint32Type:
		return NewUint32ValueIterator(column)
	case *arrow.Uint64Type:
		return NewUint64ValueIterator(column)
	case *arrow.Uint8Type:
		return NewUint8ValueIterator(column)
	case *arrow.ListType:
		return NewListValueIterator(column)
	case *arrow.StructType:
		return NewStructValueIterator(column)
	default:
		panic(fmt.Errorf("dataframe/valueiterator: unhandled field type %T", field.Type))
	}
}
func NewValueIterator ( column * array . Column ) ValueIterator { field := column . Field ( ) switch field . Type . ( type ) { case * arrow . BooleanType : return NewBooleanValueIterator ( column ) case * arrow . Date32Type : return NewDate32ValueIterator ( column ) case * arrow . Date64Type : return NewDate64ValueIterator ( column ) case * arrow . DayTimeIntervalType : return NewDayTimeIntervalValueIterator ( column ) case * arrow . Decimal128Type : return NewDecimal128ValueIterator ( column ) case * arrow . DurationType : return NewDurationValueIterator ( column ) case * arrow . Float16Type : return NewFloat16ValueIterator ( column ) case * arrow . Float32Type : return NewFloat32ValueIterator ( column ) case * arrow . Float64Type : return NewFloat64ValueIterator ( column ) case * arrow . Int16Type : return NewInt16ValueIterator ( column ) case * arrow . Int32Type : return NewInt32ValueIterator ( column ) case * arrow . Int64Type : return NewInt64ValueIterator ( column ) case * arrow . Int8Type : return NewInt8ValueIterator ( column ) case * arrow . MonthIntervalType : return NewMonthIntervalValueIterator ( column ) case * arrow . StringType : return NewStringValueIterator ( column ) case * arrow . Time32Type : return NewTime32ValueIterator ( column ) case * arrow . Time64Type : return NewTime64ValueIterator ( column ) case * arrow . TimestampType : return NewTimestampValueIterator ( column ) case * arrow . Uint16Type : return NewUint16ValueIterator ( column ) case * arrow . Uint32Type : return NewUint32ValueIterator ( column ) case * arrow . Uint64Type : return NewUint64ValueIterator ( column ) case * arrow . Uint8Type : return NewUint8ValueIterator ( column ) case * arrow . ListType : return NewListValueIterator ( column ) case * arrow . StructType : return NewStructValueIterator ( column ) default : panic ( fmt . Errorf ( " " , field . Type ) ) } }
NewValueIterator creates a new generic ValueIterator.
NewValueIterator creates a new generic ValueIterator .