@Override public Schema getSchema() { return SchemaBuilder.builder().longBuilder().prop(SchemaConstants.JAVA_CLASS_FLAG, getDatumClass().getCanonicalName()) .endLong(); }
if (useLogicalTypes) { return field.longBuilder().prop("logicalType", "timestamp-millis") .endLong().endUnion().nullDefault(); } else { return field.longType().endUnion().nullDefault();
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final LongDefault<R> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final R longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public UnionAccumulator<LongDefault<R>> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public UnionAccumulator<LongDefault<R>> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final LongDefault<R> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final R longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final LongDefault<R> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public UnionAccumulator<LongDefault<R>> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final R longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public UnionAccumulator<LongDefault<R>> longType() { return longBuilder().endLong(); }
@Test public void testLong() { Schema.Type type = Schema.Type.LONG; Schema simple = SchemaBuilder.builder().longType(); Schema expected = primitive(type, simple); Schema built1 = SchemaBuilder.builder() .longBuilder().prop("p", "v").endLong(); Assert.assertEquals(expected, built1); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final LongDefault<R> longType() { return longBuilder().endLong(); }
/** * A plain long type without custom properties. This is equivalent to: * <pre> * longBuilder().endLong(); * </pre> */ public final R longType() { return longBuilder().endLong(); }