Interface ConvertibleTimeSource
- All Known Implementing Classes:
- Immutable2DInstantArraySource,- Immutable2DLongArraySource,- Immutable2DNanosBasedTimeArraySource,- Immutable2DZonedDateTimeArraySource,- ImmutableConstantInstantSource,- ImmutableConstantLongSource,- ImmutableConstantNanosBasedTimeSource,- ImmutableConstantZonedDateTimeSource,- ImmutableInstantArraySource,- ImmutableLongArraySource,- ImmutableNanosBasedTimeArraySource,- ImmutableZonedDateTimeArraySource,- InstantArraySource,- InstantSparseArraySource,- LongArraySource,- LongAsInstantColumnSource,- LongAsLocalDateColumnSource,- LongAsLocalTimeColumnSource,- LongAsTimeSource,- LongAsZonedDateTimeColumnSource,- LongSparseArraySource,- NanosBasedTimeArraySource,- NanosBasedTimeSparseArraySource,- RedirectedColumnSource,- ShiftedColumnSource,- WritableRedirectedColumnSource,- ZonedDateTimeArraySource,- ZonedDateTimeSparseArraySource
public interface ConvertibleTimeSource
An interface for 
ColumnSources that indicate that it both represents a time value, and may be converted
 between other common time values efficiently.- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck if this class supports time conversion.Convert this source to alongsource of nanoseconds of epoch.Convert this source to anInstantsource.toLocalDate(ZoneId zone) toLocalTime(ZoneId zone) toZonedDateTime(ZoneId zone) Convert this source to aZonedDateTimesource at the specifiedzone.
- 
Method Details- 
toZonedDateTimeConvert this source to aZonedDateTimesource at the specifiedzone.- Parameters:
- zone- the time zone
- Returns:
- a view of this source as a ZonedDateTime
 
- 
toLocalDate- Parameters:
- zone- the time zone
- Returns:
- a view of this source as a LocalDate
 
- 
toLocalTime- Parameters:
- zone- the time zone
- Returns:
- a view of this source as a LocalTime
 
- 
toInstantColumnSource<Instant> toInstant()Convert this source to anInstantsource.- Returns:
- a view of this source asan Instant
 
- 
toEpochNanoColumnSource<Long> toEpochNano()Convert this source to alongsource of nanoseconds of epoch.- Returns:
- a view of this source as a ZonedDateTime
 
- 
supportsTimeConversionboolean supportsTimeConversion()Check if this class supports time conversion. If false, all other methods will fail.- Returns:
- true if time conversion is supported.
 
 
-