|
37 | 37 | import org.apache.arrow.vector.types.pojo.ArrowType.Int; |
38 | 38 | import org.apache.arrow.vector.types.pojo.ArrowType.Interval; |
39 | 39 | import org.apache.arrow.vector.types.pojo.ArrowType.LargeBinary; |
40 | | -import org.apache.arrow.vector.types.pojo.ArrowType.LargeList; |
41 | | -import org.apache.arrow.vector.types.pojo.ArrowType.LargeListView; |
42 | 40 | import org.apache.arrow.vector.types.pojo.ArrowType.LargeUtf8; |
43 | | -import org.apache.arrow.vector.types.pojo.ArrowType.ListView; |
44 | 41 | import org.apache.arrow.vector.types.pojo.ArrowType.Map; |
45 | 42 | import org.apache.arrow.vector.types.pojo.ArrowType.Null; |
46 | 43 | import org.apache.arrow.vector.types.pojo.ArrowType.RunEndEncoded; |
@@ -461,142 +458,6 @@ public Integer visit(RunEndEncoded type) { |
461 | 458 | }); |
462 | 459 | } |
463 | 460 |
|
464 | | - public static boolean isVariableBuffer(final ArrowType arrowType) { |
465 | | - return arrowType.accept( |
466 | | - new ArrowTypeVisitor<>() { |
467 | | - |
468 | | - @Override |
469 | | - public Boolean visit(Null type) { |
470 | | - return false; |
471 | | - } |
472 | | - |
473 | | - @Override |
474 | | - public Boolean visit(Struct type) { |
475 | | - return false; |
476 | | - } |
477 | | - |
478 | | - @Override |
479 | | - public Boolean visit(ArrowType.List type) { |
480 | | - return false; |
481 | | - } |
482 | | - |
483 | | - @Override |
484 | | - public Boolean visit(LargeList type) { |
485 | | - return false; |
486 | | - } |
487 | | - |
488 | | - @Override |
489 | | - public Boolean visit(FixedSizeList type) { |
490 | | - return false; |
491 | | - } |
492 | | - |
493 | | - @Override |
494 | | - public Boolean visit(Union type) { |
495 | | - return false; |
496 | | - } |
497 | | - |
498 | | - @Override |
499 | | - public Boolean visit(Map type) { |
500 | | - return false; |
501 | | - } |
502 | | - |
503 | | - @Override |
504 | | - public Boolean visit(Int type) { |
505 | | - return false; |
506 | | - } |
507 | | - |
508 | | - @Override |
509 | | - public Boolean visit(FloatingPoint type) { |
510 | | - return false; |
511 | | - } |
512 | | - |
513 | | - @Override |
514 | | - public Boolean visit(Utf8 type) { |
515 | | - return false; |
516 | | - } |
517 | | - |
518 | | - @Override |
519 | | - public Boolean visit(Utf8View type) { |
520 | | - return true; |
521 | | - } |
522 | | - |
523 | | - @Override |
524 | | - public Boolean visit(LargeUtf8 type) { |
525 | | - return false; |
526 | | - } |
527 | | - |
528 | | - @Override |
529 | | - public Boolean visit(Binary type) { |
530 | | - return false; |
531 | | - } |
532 | | - |
533 | | - @Override |
534 | | - public Boolean visit(BinaryView type) { |
535 | | - return true; |
536 | | - } |
537 | | - |
538 | | - @Override |
539 | | - public Boolean visit(LargeBinary type) { |
540 | | - return false; |
541 | | - } |
542 | | - |
543 | | - @Override |
544 | | - public Boolean visit(FixedSizeBinary type) { |
545 | | - return false; |
546 | | - } |
547 | | - |
548 | | - @Override |
549 | | - public Boolean visit(Bool type) { |
550 | | - return false; |
551 | | - } |
552 | | - |
553 | | - @Override |
554 | | - public Boolean visit(Decimal type) { |
555 | | - return false; |
556 | | - } |
557 | | - |
558 | | - @Override |
559 | | - public Boolean visit(Date type) { |
560 | | - return false; |
561 | | - } |
562 | | - |
563 | | - @Override |
564 | | - public Boolean visit(Time type) { |
565 | | - return false; |
566 | | - } |
567 | | - |
568 | | - @Override |
569 | | - public Boolean visit(Timestamp type) { |
570 | | - return false; |
571 | | - } |
572 | | - |
573 | | - @Override |
574 | | - public Boolean visit(Interval type) { |
575 | | - return false; |
576 | | - } |
577 | | - |
578 | | - @Override |
579 | | - public Boolean visit(Duration type) { |
580 | | - return false; |
581 | | - } |
582 | | - |
583 | | - @Override |
584 | | - public Boolean visit(ListView type) { |
585 | | - return false; |
586 | | - } |
587 | | - |
588 | | - @Override |
589 | | - public Boolean visit(LargeListView type) { |
590 | | - return false; |
591 | | - } |
592 | | - |
593 | | - @Override |
594 | | - public Boolean visit(RunEndEncoded type) { |
595 | | - return false; |
596 | | - } |
597 | | - }); |
598 | | - } |
599 | | - |
600 | 461 | private final List<BufferLayout> bufferLayouts; |
601 | 462 |
|
602 | 463 | private final boolean isFixedBufferCount; |
|
0 commit comments