Java Code Examples for org.apache.arrow.vector.types.pojo.ArrowType#Interval
The following examples show how to use
org.apache.arrow.vector.types.pojo.ArrowType#Interval .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArrowTypeSerDe.java From aws-athena-query-federation with Apache License 2.0 | 5 votes |
@Override protected void doTypedSerialize(ArrowType arrowType, JsonGenerator jgen, SerializerProvider provider) throws IOException { ArrowType.Interval interval = (ArrowType.Interval) arrowType; jgen.writeStringField(UNIT_FIELD, interval.getUnit().toString()); }
Example 2
Source File: ArrowTypeSerDe.java From aws-athena-query-federation with Apache License 2.0 | 5 votes |
@Override protected ArrowType doTypedDeserialize(JsonParser jparser, DeserializationContext ctxt) throws IOException { IntervalUnit unit = IntervalUnit.valueOf(getNextStringField(jparser, UNIT_FIELD)); return new ArrowType.Interval(unit); }
Example 3
Source File: ArrowTypeSerDe.java From aws-athena-query-federation with Apache License 2.0 | 4 votes |
private Serializer() { super(ArrowType.class, ArrowType.Interval.class); }
Example 4
Source File: ArrowTypeSerDe.java From aws-athena-query-federation with Apache License 2.0 | 4 votes |
private Deserializer() { super(ArrowType.class, ArrowType.Interval.class); }
Example 5
Source File: APIFieldDescriber.java From dremio-oss with Apache License 2.0 | 4 votes |
@Override public Void visit(ArrowType.Interval interval) { return writeString(sqlTypeNameVisitor.visit(interval)); }