aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/bindings/py_iterator.h
blob: 5c5de27b0bcc6a9fb482af15050e0f0fe0c3d71c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "py_ptr.h"
#include "py_ctx.h"

namespace NPython {

extern PyTypeObject PyIteratorType;
extern PyTypeObject PyPairIteratorType;

TPyObjectPtr ToPyIterator(
        const TPyCastContext::TPtr& castCtx,
        const NKikimr::NUdf::TType* itemType,
        const NKikimr::NUdf::TUnboxedValuePod& value);

TPyObjectPtr ToPyIterator(
        const TPyCastContext::TPtr& castCtx,
        const NKikimr::NUdf::TType* keyType,
        const NKikimr::NUdf::TType* payloadType,
        const NKikimr::NUdf::TUnboxedValuePod& value);


} // namspace NPython