/[Apache-SVN]
ViewVC logotype

Revision 1690131


Jump to revision: Previous Next
Author: blue
Date: Thu Jul 9 17:51:59 2015 UTC (8 years, 8 months ago)
Changed paths: 6
Log Message:
AVRO-1672: Add time logical types and conversions.

This uses Joda classes to represent the new logical types:
* date => LocalDate
* time-millis => LocalTime
* time-micros => LocalTime
* timestamp-millis => DateTime
* timestamp-micros => DateTime

Joda is an optional dependency and will only be loaded if the
conversions in org.apache.avro.data.TimeConversions are referenced. By
default, no logical type conversions are enabled so there is no
additional runtime dependency for existing applications.

Microsecond types use Joda objects with millisecond precision. Because
this representation loses the microseconds, there are two conversions
for both microsecond types: a read-only conversion that will throw an
exception if used to write, and a "lossy" conversion that will write a
millisecond value as microseconds by convertsion. This is called "lossy"
because reading a microsecond value and writing it back out will lose
the microseconds.

Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/java/avro/pom.xml modified , text changed
Directoryavro/trunk/lang/java/avro/src/main/java/org/apache/avro/LogicalTypes.java modified , text changed
Directoryavro/trunk/lang/java/avro/src/main/java/org/apache/avro/data/TimeConversions.java added
Directoryavro/trunk/lang/java/avro/src/test/java/org/apache/avro/data/TestTimeConversions.java added
Directoryavro/trunk/lang/java/pom.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26