APISonar


org.apache.arrow.vector.types.pojo.ArrowType.ArrowType.Time

> org > apache > arrow > vector > types > pojo > ArrowType > ArrowType > Time
org APIs apache APIs arrow APIs vector APIs types APIs pojo APIs ArrowType APIs ArrowType APIs Time APIs

Example 1
public void testArrowTimeSecondToParquet() {
    converter.fromArrow(new Schema(asList(
      field("a", new ArrowType.Time(TimeUnit.SECOND, 32))
    ))).getParquetSchema();
  }
Example 2
public void testArrowTimeMillisecondToParquet() {
    MessageType expected = converter.fromArrow(new Schema(asList(
      field("a", new ArrowType.Time(TimeUnit.MILLISECOND, 32))
    ))).getParquetSchema();
    Assert.assertEquals(expected,
      Types.buildMessage().addField(Types.optional(INT32).as(timeType(false, MILLIS)).named("a")).named("root"));
  }