Skip to content

Commit 57b1d08

Browse files
authored
Extract non-template function members from TComputationValueBase (#6701)
1 parent 013ae84 commit 57b1d08

File tree

2 files changed

+283
-218
lines changed

2 files changed

+283
-218
lines changed

ydb/library/yql/minikql/computation/mkql_computation_node_impl.cpp

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,227 @@ void TExternalComputationNode::InvalidateValue(TComputationContext& ctx) const {
367367
}
368368
}
369369

370+
bool TComputationValueBaseNotSupportedStub::HasFastListLength() const {
371+
ThrowNotSupported(__func__);
372+
return false;
373+
}
374+
375+
ui64 TComputationValueBaseNotSupportedStub::GetListLength() const {
376+
ThrowNotSupported(__func__);
377+
return 0;
378+
}
379+
380+
ui64 TComputationValueBaseNotSupportedStub::GetEstimatedListLength() const {
381+
ThrowNotSupported(__func__);
382+
return 0;
383+
}
384+
385+
bool TComputationValueBaseNotSupportedStub::HasListItems() const {
386+
ThrowNotSupported(__func__);
387+
return false;
388+
}
389+
390+
const NUdf::TOpaqueListRepresentation* TComputationValueBaseNotSupportedStub::GetListRepresentation() const {
391+
return nullptr;
392+
}
393+
394+
NUdf::IBoxedValuePtr TComputationValueBaseNotSupportedStub::ReverseListImpl(const NUdf::IValueBuilder& builder) const {
395+
Y_UNUSED(builder);
396+
return nullptr;
397+
}
398+
399+
NUdf::IBoxedValuePtr TComputationValueBaseNotSupportedStub::SkipListImpl(const NUdf::IValueBuilder& builder, ui64 count) const {
400+
Y_UNUSED(builder);
401+
Y_UNUSED(count);
402+
return nullptr;
403+
}
404+
405+
NUdf::IBoxedValuePtr TComputationValueBaseNotSupportedStub::TakeListImpl(const NUdf::IValueBuilder& builder, ui64 count) const {
406+
Y_UNUSED(builder);
407+
Y_UNUSED(count);
408+
return nullptr;
409+
}
410+
411+
NUdf::IBoxedValuePtr TComputationValueBaseNotSupportedStub::ToIndexDictImpl(const NUdf::IValueBuilder& builder) const {
412+
Y_UNUSED(builder);
413+
return nullptr;
414+
}
415+
416+
ui64 TComputationValueBaseNotSupportedStub::GetDictLength() const {
417+
ThrowNotSupported(__func__);
418+
return 0;
419+
}
420+
421+
bool TComputationValueBaseNotSupportedStub::HasDictItems() const {
422+
ThrowNotSupported(__func__);
423+
return false;
424+
}
425+
426+
NUdf::TStringRef TComputationValueBaseNotSupportedStub::GetResourceTag() const {
427+
ThrowNotSupported(__func__);
428+
return NUdf::TStringRef();
429+
}
430+
431+
void* TComputationValueBaseNotSupportedStub::GetResource() {
432+
ThrowNotSupported(__func__);
433+
return nullptr;
434+
}
435+
436+
void TComputationValueBaseNotSupportedStub::Apply(NUdf::IApplyContext& applyCtx) const {
437+
Y_UNUSED(applyCtx);
438+
}
439+
440+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetListIterator() const {
441+
ThrowNotSupported(__func__);
442+
return {};
443+
}
444+
445+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetDictIterator() const {
446+
ThrowNotSupported(__func__);
447+
return {};
448+
}
449+
450+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetKeysIterator() const {
451+
ThrowNotSupported(__func__);
452+
return {};
453+
}
454+
455+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetPayloadsIterator() const {
456+
ThrowNotSupported(__func__);
457+
return {};
458+
}
459+
460+
bool TComputationValueBaseNotSupportedStub::Contains(const NUdf::TUnboxedValuePod& key) const {
461+
Y_UNUSED(key);
462+
ThrowNotSupported(__func__);
463+
return false;
464+
}
465+
466+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::Lookup(const NUdf::TUnboxedValuePod& key) const {
467+
Y_UNUSED(key);
468+
ThrowNotSupported(__func__);
469+
return NUdf::TUnboxedValuePod();
470+
}
471+
472+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetElement(ui32 index) const {
473+
Y_UNUSED(index);
474+
ThrowNotSupported(__func__);
475+
return {};
476+
}
477+
478+
const NUdf::TUnboxedValue* TComputationValueBaseNotSupportedStub::GetElements() const {
479+
return nullptr;
480+
}
481+
482+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::Run(
483+
const NUdf::IValueBuilder* valueBuilder,
484+
const NUdf::TUnboxedValuePod* args) const
485+
{
486+
Y_UNUSED(valueBuilder);
487+
Y_UNUSED(args);
488+
ThrowNotSupported(__func__);
489+
return {};
490+
}
491+
492+
bool TComputationValueBaseNotSupportedStub::Skip() {
493+
NUdf::TUnboxedValue stub;
494+
return Next(stub);
495+
}
496+
497+
bool TComputationValueBaseNotSupportedStub::Next(NUdf::TUnboxedValue&) {
498+
ThrowNotSupported(__func__);
499+
return false;
500+
}
501+
502+
bool TComputationValueBaseNotSupportedStub::NextPair(NUdf::TUnboxedValue&, NUdf::TUnboxedValue&) {
503+
ThrowNotSupported(__func__);
504+
return false;
505+
}
506+
507+
ui32 TComputationValueBaseNotSupportedStub::GetVariantIndex() const {
508+
ThrowNotSupported(__func__);
509+
return 0;
510+
}
511+
512+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetVariantItem() const {
513+
ThrowNotSupported(__func__);
514+
return {};
515+
}
516+
517+
NUdf::EFetchStatus TComputationValueBaseNotSupportedStub::Fetch(NUdf::TUnboxedValue& result) {
518+
Y_UNUSED(result);
519+
ThrowNotSupported(__func__);
520+
return NUdf::EFetchStatus::Finish;
521+
}
522+
523+
ui32 TComputationValueBaseNotSupportedStub::GetTraverseCount() const {
524+
ThrowNotSupported(__func__);
525+
return 0;
526+
}
527+
528+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::GetTraverseItem(ui32 index) const {
529+
Y_UNUSED(index);
530+
ThrowNotSupported(__func__);
531+
return {};
532+
}
533+
534+
NUdf::TUnboxedValue TComputationValueBaseNotSupportedStub::Save() const {
535+
ThrowNotSupported(__func__);
536+
return NUdf::TUnboxedValue::Zero();
537+
}
538+
539+
void TComputationValueBaseNotSupportedStub::Load(const NUdf::TStringRef& state) {
540+
Y_UNUSED(state);
541+
ThrowNotSupported(__func__);
542+
}
543+
544+
bool TComputationValueBaseNotSupportedStub::Load2(const NUdf::TUnboxedValue& state) {
545+
Y_UNUSED(state);
546+
ThrowNotSupported(__func__);
547+
return false;
548+
}
549+
550+
void TComputationValueBaseNotSupportedStub::Push(const NUdf::TUnboxedValuePod& value) {
551+
Y_UNUSED(value);
552+
ThrowNotSupported(__func__);
553+
}
554+
555+
bool TComputationValueBaseNotSupportedStub::IsSortedDict() const {
556+
ThrowNotSupported(__func__);
557+
return false;
558+
}
559+
560+
void TComputationValueBaseNotSupportedStub::Unused1() {
561+
ThrowNotSupported(__func__);
562+
}
563+
564+
void TComputationValueBaseNotSupportedStub::Unused2() {
565+
ThrowNotSupported(__func__);
566+
}
567+
568+
void TComputationValueBaseNotSupportedStub::Unused3() {
569+
ThrowNotSupported(__func__);
570+
}
571+
572+
void TComputationValueBaseNotSupportedStub::Unused4() {
573+
ThrowNotSupported(__func__);
574+
}
575+
576+
void TComputationValueBaseNotSupportedStub::Unused5() {
577+
ThrowNotSupported(__func__);
578+
}
579+
580+
void TComputationValueBaseNotSupportedStub::Unused6() {
581+
ThrowNotSupported(__func__);
582+
}
583+
584+
NUdf::EFetchStatus TComputationValueBaseNotSupportedStub::WideFetch(NUdf::TUnboxedValue* result, ui32 width) {
585+
Y_UNUSED(result);
586+
Y_UNUSED(width);
587+
ThrowNotSupported(__func__);
588+
return NUdf::EFetchStatus::Finish;
589+
}
590+
370591
TString TWideFlowProxyComputationNode::DebugString() const { return "WideFlowArg"; }
371592

372593
EValueRepresentation TWideFlowProxyComputationNode::GetRepresentation() const {

0 commit comments

Comments
 (0)