Package org.apache.parquet.avro
Class LogicalTypesTest.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<LogicalTypesTest>
-
- org.apache.parquet.avro.LogicalTypesTest.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<LogicalTypesTest>
- Enclosing class:
- LogicalTypesTest
public static class LogicalTypesTest.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<LogicalTypesTest> implements org.apache.avro.data.RecordBuilder<LogicalTypesTest>
RecordBuilder for LogicalTypesTest instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicalTypesTestbuild()LogicalTypesTest.BuilderclearTimestamp()Clears the value of the 'timestamp' field.InstantgetTimestamp()Gets the value of the 'timestamp' field.booleanhasTimestamp()Checks whether the 'timestamp' field has been set.LogicalTypesTest.BuildersetTimestamp(Instant value)Sets the value of the 'timestamp' field.
-
-
-
Method Detail
-
getTimestamp
public Instant getTimestamp()
Gets the value of the 'timestamp' field.- Returns:
- The value.
-
setTimestamp
public LogicalTypesTest.Builder setTimestamp(Instant value)
Sets the value of the 'timestamp' field.- Parameters:
value- The value of 'timestamp'.- Returns:
- This builder.
-
hasTimestamp
public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set.- Returns:
- True if the 'timestamp' field has been set, false otherwise.
-
clearTimestamp
public LogicalTypesTest.Builder clearTimestamp()
Clears the value of the 'timestamp' field.- Returns:
- This builder.
-
build
public LogicalTypesTest build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<LogicalTypesTest>
-
-